of make distcheck. Make sure make unit works.
TESTS += ${check_PROGRAMS}
-check-local: test-no-outputdiff
-
fedora:
rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
tests_memplus_DEPENDENCIES = tests/libtest.la tests/libserver.la libmemcached/libmemcached.la
tests_memplus_LDADD = $(tests_memplus_DEPENDENCIES)
-test: unittests-run test-docs test-mem test-hash memcapable
+test: check
+
+check-local: test-docs test-mem test-hash memcapable
echo "Tests completed"
-test-x: test-docs test-plus test-mem test-hash memcapable test-memcat test-memcp test-memrm test-memerror test-memdump test-memflush test-memstat
+test-x: check-local test-plus test-memcat test-memcp test-memrm test-memerror test-memdump test-memflush test-memstat
echo "Tests completed"
memcapable: clients/memcapable
# All paths should be given relative to the root
if HAVE_LIBGTEST
-UNITTEST_PROGRAM= unittests/unittests
-
-noinst_PROGRAMS += $(UNITTEST_PROGRAM)
+check_PROGRAMS += unittests/unittests
+endif
unittests_unittests_SOURCES= \
- unittests/strings.cc \
- unittests/main.cc
+ unittests/main.cc \
+ unittests/strings.cc
+
unittests_unittests_LDADD= \
tests/libserver.la \
libmemcached/libmemcachedinternal.la \
${TESTS_LDADDS} ${LTLIBGTEST}
-endif
-
# Shorthand
-unit: unittests-run
+unit: check-TESTS
-unittests-run: $(UNITTEST_PROGRAM)
- $(UNITTEST_PROGRAM)