X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2Finclude.am;h=896ba139530e348d7aa9419b0091e6f96ade7bb1;hb=ff2f828a531d23ee087940fed20e8798fdf2c204;hp=32f044c9c828e6f53131156b2577a68a5228f9ff;hpb=3107b89b4d3441929835e6f96fda841c76f704fe;p=m6w6%2Flibmemcached diff --git a/tests/include.am b/tests/include.am index 32f044c9..896ba139 100644 --- a/tests/include.am +++ b/tests/include.am @@ -32,6 +32,7 @@ noinst_PROGRAMS+= \ tests/atomsmasher \ tests/startservers \ tests/testapp \ + tests/testhashkit \ tests/testplus \ tests/udptest @@ -48,12 +49,15 @@ tests_testapp_LDADD= \ tests/libserver.la \ tests/libtest.la \ $(TESTS_LDADDS) +tests_testapp_DEPENDENCIES= $(tests_testapp_LDADD) tests_testplus_SOURCES= tests/plus.cpp tests_testplus_LDADD= tests/libtest.la tests/libserver.la $(TESTS_LDADDS) +tests_testplus_DEPENDENCIES= $(tests_testplus_LDADD) tests_udptest_SOURCES= tests/udp.c tests_udptest_LDADD= tests/libtest.la tests/libserver.la $(TESTS_LDADDS) +tests_udptest_DEPENDENCIES= $(tests_udptest_LDADD) tests_atomsmasher_SOURCES= tests/atomsmasher.c tests_atomsmasher_LDADD= \ @@ -61,9 +65,15 @@ tests_atomsmasher_LDADD= \ tests/libserver.la \ tests/libtest.la \ $(TESTS_LDADDS) +tests_atomsmasher_DEPENDENCIES= $(tests_atomsmasher_LDADD) tests_startservers_SOURCES= tests/start.c tests_startservers_LDADD= tests/libserver.la $(TESTS_LDADDS) +tests_startservers_DEPENDENCIES= $(tests_startservers_LDADD) + +tests_testhashkit_SOURCES = tests/hashkit_functions.c +tests_testhashkit_LDADD = tests/libtest.la libhashkit/libhashkit.la +tests_testhashkit_DEPENDENCIES = $(tests_testhashkit_LDADD) client-record: sh tests/t/memcat.test > tests/r/memcat.res @@ -72,12 +82,14 @@ client-record: sh tests/t/memslap.test > tests/r/memslap.res sh tests/t/memstat.test > tests/r/memstat.res -test: tests/testapp tests/testplus library_test memcapable +test: test-docs tests/testapp tests/testplus library_test memcapable libmhashkit_test echo "Tests completed" library_test: tests/testapp -# tests/testplus + +libmhashkit_test: libhashkit + tests/testhashkit memcapable: clients/memcapable @MEMC_BINARY@ -d -P `pwd`/tests/Xumemc.pid -p 12555 @@ -102,6 +114,13 @@ clients: cat tests/Xumemc.pid | xargs kill rm tests/Xumemc.pid +gdb-mem: + $(LIBTOOL) --mode=execute gdb tests/testapp + +gdb-hash: + $(LIBTOOL) --mode=execute gdb tests/testhashkit + + PHONY += valgrind valgrind: $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes tests/testapp