X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Finclude.am;h=8063be75cb15909498fe36d612b5b6cdf27d4bbf;hb=26f4a2a69a448fbda346b7bec93b6bd1d825e12b;hp=f4c6dcfd743a8c0161e0074d081d8df310c5e7b9;hpb=1e8bc3cb173d8b4e206363de7fdabeddb32d0f53;p=m6w6%2Flibmemcached diff --git a/tests/include.am b/tests/include.am index f4c6dcfd..8063be75 100644 --- a/tests/include.am +++ b/tests/include.am @@ -18,13 +18,15 @@ DEBUG_COMMAND= $(LIBTOOL) --mode=execute gdb PAHOLE_COMMAND= $(LIBTOOL) --mode=execute pahole EXTRA_DIST+= tests/cpp_example.cc -EXTRA_DIST+= tests/output_plus.res noinst_HEADERS+= tests/exist.h -noinst_HEADERS+= tests/keys.hpp noinst_HEADERS+= tests/hash_results.h +noinst_HEADERS+= tests/keys.hpp +noinst_HEADERS+= tests/libmemcached_test_container.h noinst_HEADERS+= tests/libmemcached_world.h noinst_HEADERS+= tests/libmemcached_world_socket.h +noinst_HEADERS+= tests/memc.h +noinst_HEADERS+= tests/runner.h # Cycle should always run first tests_cycle_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING) @@ -39,19 +41,40 @@ noinst_PROGRAMS+= tests/cycle include tests/libmemcached-1.0/include.am -tests_failure_SOURCES= tests/failure.cc +include tests/parser.am + +tests_failure_SOURCES= +tests_failure_SOURCES+= tests/failure.cc +tests_failure_SOURCES+= clients/execute.cc +tests_failure_SOURCES+= clients/generator.cc +tests_failure_SOURCES+= tests/libmemcached-1.0/callback_counter.cc +tests_failure_SOURCES+= tests/libmemcached-1.0/fetch_all_results.cc +tests_failure_SOURCES+= tests/libmemcached-1.0/generate.cc +tests_failure_SOURCES+= tests/libmemcached-1.0/print.cc + tests_failure_CXXFLAGS = $(AM_CXXFLAGS) tests_failure_DEPENDENCIES= $(TESTS_LDADDS) tests_failure_LDADD= $(tests_failure_DEPENDENCIES) check_PROGRAMS+= tests/failure noinst_PROGRAMS+= tests/failure -tests_testhashkit_SOURCES = tests/hashkit_functions.cc -tests_testhashkit_DEPENDENCIES = libtest/libtest.la libhashkit/libhashkit.la $(TESTS_LDADDS) -tests_testhashkit_LDADD = $(tests_testhashkit_DEPENDENCIES) +test-failure: tests/failure + @tests/failure + +gdb-failure: tests/failure + @$(DEBUG_COMMAND) tests/failure + + +tests_testhashkit_SOURCES= tests/hashkit_functions.cc +tests_testhashkit_DEPENDENCIES= libtest/libtest.la libhashkit/libhashkit.la $(TESTS_LDADDS) +tests_testhashkit_LDADD= $(tests_testhashkit_DEPENDENCIES) check_PROGRAMS+= tests/testhashkit noinst_PROGRAMS+= tests/testhashkit +test-hash: tests/testhashkit + @tests/testhashkit + + tests_hash_plus_SOURCES= tests/hash_plus.cc tests_hash_plus_CXXFLAGS= $(AM_CXXFLAGS) $(NO_EFF_CXX) tests_hash_plus_DEPENDENCIES= $(tests_testhashkit_DEPENDENCIES) @@ -66,28 +89,25 @@ test: check check-local: $(TEST_DOCS) @echo "Tests completed" -test-mem: tests/var tests/libmemcached-1.0/testapp +test-mem: tests/libmemcached-1.0/testapp @tests/libmemcached-1.0/testapp test-sasl: tests/sasl @tests/sasl -test-atom: tests/var tests/atomsmasher +test-atom: tests/atomsmasher @tests/atomsmasher -test-plus: tests/var tests/testplus +test-plus: tests/testplus @tests/testplus -test-hash: tests/var tests/testhashkit - @tests/testhashkit - -test-hashplus: tests/var tests/hash_plus +test-hashplus: tests/hash_plus @tests/hash_plus -test-cycle: tests/var tests/cycle +test-cycle: tests/cycle @tests/cycle -test-memcapable: tests/var tests/memcapable +test-memcapable: tests/memcapable @tests/memcapable pahole-mem: tests/testapp @@ -114,9 +134,6 @@ gdb-hashplus: tests/hash_plus gdb-cycle: tests/cycle @$(DEBUG_COMMAND) tests/cycle -gdb-failure: tests/failure - @$(DEBUG_COMMAND) tests/failure - valgrind-cycle: tests/cycle $(VALGRIND_COMMAND) tests/cycle