Updating from Monty
authorBrian Aker <brian@gaz>
Wed, 30 Jun 2010 18:57:16 +0000 (11:57 -0700)
committerBrian Aker <brian@gaz>
Wed, 30 Jun 2010 18:57:16 +0000 (11:57 -0700)
Makefile.am
tests/include.am
unittests/include.am

index 38f87c5e76f02c643bba3927fb707831afb4ec89..0728e01d21d6159c080927968ba8e984adb1fd57 100644 (file)
@@ -45,8 +45,6 @@ include support/include.am
 
 TESTS += ${check_PROGRAMS}
 
-check-local: test-no-outputdiff
-
 
 fedora:
        rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
index 08cf67e2d9d8db9b5d90877da97d424f6e66ef84..593c98fa9e6fa802fdfe3724354fcd0beee14ea5 100644 (file)
@@ -89,10 +89,12 @@ tests_memplus_CXXFLAGS = $(AM_CXXFLAGS) $(NO_EFF_CXX)
 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
index fc67e93762e7bde86dc62adc2d1ef33aaf816376..6c2172088f5ea3da309e50ec0b23cdf55900d063 100644 (file)
@@ -3,21 +3,18 @@
 # 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_unittest_CXXFLAGS= ${AM_CXXFLAGS} ${NO_WERROR}
 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)