X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Finclude.am;h=08cf67e2d9d8db9b5d90877da97d424f6e66ef84;hb=99991f81c6ee295259bb59dab1dee928bc8710ac;hp=b71f0c79ed83f9cba3064dc32136d3f9e6ae0798;hpb=8cb354e120fb927ca7e601cd56180bd1efb422b9;p=m6w6%2Flibmemcached diff --git a/tests/include.am b/tests/include.am index b71f0c79..08cf67e2 100644 --- a/tests/include.am +++ b/tests/include.am @@ -4,7 +4,7 @@ TESTS_LDADDS = libmemcached/libmemcached.la -VALGRIND_COMMAND= $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes +VALGRIND_COMMAND= $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes --track-fds=yes DEBUG_COMMAND= $(LIBTOOL) --mode=execute gdb @@ -14,18 +14,6 @@ if BUILD_LIBMEMCACHEDUTIL TESTS_LDADDS+= libmemcached/libmemcachedutil.la endif -EXTRA_DIST+= \ - tests/r/memcat.res \ - tests/r/memcp.res \ - tests/r/memrm.res \ - tests/r/memslap.res \ - tests/r/memstat.res \ - tests/t/memcat.test \ - tests/t/memcp.test \ - tests/t/memrm.test \ - tests/t/memslap.test \ - tests/t/memstat.test - noinst_HEADERS+= \ tests/hash_results.h \ tests/ketama_test_cases.h \ @@ -53,32 +41,34 @@ tests_libtest_la_SOURCES= tests/test.c tests_testapp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) tests_testapp_SOURCES= tests/mem_functions.c tests_testapp_DEPENDENCIES= \ - clients/libgenexec.la \ - tests/libserver.la \ - tests/libtest.la \ - libmemcached/libmemcachedinternal.la \ - $(TESTS_LDADDS) + $(BUILT_SOURCES) \ + clients/libgenexec.la \ + tests/libserver.la \ + tests/libtest.la \ + libmemcached/libmemcachedinternal.la \ + $(TESTS_LDADDS) tests_testapp_LDADD= $(tests_testapp_DEPENDENCIES) $(LIBSASL) tests_testplus_SOURCES= tests/plus.cpp +tests_testplus_CXXFLAGS = $(AM_CXXFLAGS) $(NO_EFF_CXX) tests_testplus_DEPENDENCIES= tests/libtest.la tests/libserver.la $(TESTS_LDADDS) tests_testplus_LDADD= $(tests_testplus_DEPENDENCIES) $(LIBSASL) tests_atomsmasher_SOURCES= tests/atomsmasher.c tests_atomsmasher_DEPENDENCIES= \ - clients/libgenexec.la \ - tests/libserver.la \ - tests/libtest.la \ - $(TESTS_LDADDS) + clients/libgenexec.la \ + tests/libserver.la \ + tests/libtest.la \ + $(TESTS_LDADDS) tests_atomsmasher_LDADD= $(tests_atomsmasher_DEPENDENCIES) $(LIBSASL) tests_testudp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) tests_testudp_SOURCES= tests/mem_udp.c tests_testudp_DEPENDENCIES= \ - clients/libgenexec.la \ - tests/libserver.la \ - tests/libtest.la \ - $(TESTS_LDADDS) + clients/libgenexec.la \ + tests/libserver.la \ + tests/libtest.la \ + $(TESTS_LDADDS) tests_testudp_LDADD= $(tests_testudp_DEPENDENCIES) $(LIBSASL) tests_startservers_SOURCES= tests/start.c @@ -90,14 +80,16 @@ tests_testhashkit_DEPENDENCIES = tests/libtest.la libhashkit/libhashkit.la tests_testhashkit_LDADD = $(tests_testhashkit_DEPENDENCIES) $(LIBSASL) tests_hashplus_SOURCES = tests/hash_plus.cc +tests_hashplus_CXXFLAGS = $(AM_CXXFLAGS) $(NO_EFF_CXX) tests_hashplus_DEPENDENCIES = $(tests_testhashkit_DEPENDENCIES) tests_hashplus_LDADD = $(tests_testhashkit_DEPENDENCIES) $(LIBSASL) tests_memplus_SOURCES = tests/mem_plus.cc +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: test-docs test-mem test-hash memcapable +test: unittests-run 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