projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Clean up docs.
[m6w6/libmemcached]
/
tests
/
include.am
diff --git
a/tests/include.am
b/tests/include.am
index 9c0ec5cfceb45429da95486b60d583272dff314d..896ba139530e348d7aa9419b0091e6f96ade7bb1 100644
(file)
--- a/
tests/include.am
+++ b/
tests/include.am
@@
-32,6
+32,7
@@
noinst_PROGRAMS+= \
tests/atomsmasher \
tests/startservers \
tests/testapp \
tests/atomsmasher \
tests/startservers \
tests/testapp \
+ tests/testhashkit \
tests/testplus \
tests/udptest
tests/testplus \
tests/udptest
@@
-48,12
+49,15
@@
tests_testapp_LDADD= \
tests/libserver.la \
tests/libtest.la \
$(TESTS_LDADDS)
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_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_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= \
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/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_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
client-record:
sh tests/t/memcat.test > tests/r/memcat.res
@@
-72,22
+82,24
@@
client-record:
sh tests/t/memslap.test > tests/r/memslap.res
sh tests/t/memstat.test > tests/r/memstat.res
sh tests/t/memslap.test > tests/r/memslap.res
sh tests/t/memstat.test > tests/r/memstat.res
-test: test
s/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
echo "Tests completed"
library_test:
tests/testapp
-# tests/testplus
+
+libmhashkit_test: libhashkit
+ tests/testhashkit
memcapable: clients/memcapable
memcapable: clients/memcapable
- @MEMC_BINARY@ -d -P tests/Xumemc.pid -p 12555
+ @MEMC_BINARY@ -d -P
`pwd`/
tests/Xumemc.pid -p 12555
@clients/memcapable -p 12555 || echo "Your memcached server does not support all commands"
@cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
@rm tests/Xumemc.pid
PHONY += clients
clients:
@clients/memcapable -p 12555 || echo "Your memcached server does not support all commands"
@cat tests/Xumemc.pid | xargs kill || echo "Failed to kill memcached server"
@rm tests/Xumemc.pid
PHONY += clients
clients:
- @MEMC_BINARY@ -d -P tests/Xumemc.pid -p 12555
+ @MEMC_BINARY@ -d -P
`pwd`/
tests/Xumemc.pid -p 12555
export MEMCACHED_SERVERS="localhost:12555"
sh tests/t/memcat.test > tests/r/memcat.cmp
diff tests/r/memcat.res tests/r/memcat.cmp
export MEMCACHED_SERVERS="localhost:12555"
sh tests/t/memcat.test > tests/r/memcat.cmp
diff tests/r/memcat.res tests/r/memcat.cmp
@@
-102,6
+114,13
@@
clients:
cat tests/Xumemc.pid | xargs kill
rm tests/Xumemc.pid
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
PHONY += valgrind
valgrind:
$(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes tests/testapp