|
@@ -18,54 +18,12 @@ CLEANFILES+= \
|
|
|
tests/var/log/* \
|
|
|
tests/var/tmp/*
|
|
|
|
|
|
-if HAVE_LIBMEMCACHED
|
|
|
-if HAVE_MEMCACHED
|
|
|
-LIBMEMCACHED_PIDFILE = ${abs_top_builddir}/tests/Xumemc.pid
|
|
|
-LIBMEMCACHED_TEST= tests/memcached_test
|
|
|
-# Note, SETUP should do a test for existance and then kill if it exists.
|
|
|
-LIBMEMCACHED_SETUP= @$(MEMCACHED_BINARY) -d -u root -P ${LIBMEMCACHED_PIDFILE} -p 12555
|
|
|
-LIBMEMCACHED_TEARDOWN= @\
|
|
|
- cat ${LIBMEMCACHED_PIDFILE} | xargs kill; \
|
|
|
- rm ${LIBMEMCACHED_PIDFILE}
|
|
|
-
|
|
|
-noinst_PROGRAMS += tests/memcached_test
|
|
|
-endif
|
|
|
-endif
|
|
|
-
|
|
|
tests_memcached_test_SOURCES= tests/memcached_test.cc
|
|
|
tests_memcached_test_LDADD= ${CLIENT_LDADD}
|
|
|
|
|
|
-if HAVE_LIBSQLITE3
|
|
|
-SQLITE_TEST= tests/sqlite_test
|
|
|
-QUEUE_REGRESSION_TEST= tests/queue_regression
|
|
|
-CLEANFILES+= tests/gearman.sql tests/gearman.sql-journal tests/gearmand.log*
|
|
|
-noinst_PROGRAMS += tests/sqlite_test tests/queue_regression
|
|
|
-endif
|
|
|
-
|
|
|
-tests_sqlite_test_SOURCES= tests/sqlite_test.cc
|
|
|
-tests_sqlite_test_LDADD= ${CLIENT_LDADD}
|
|
|
-
|
|
|
tests_queue_regression_SOURCES= tests/queue_regression.cc
|
|
|
tests_queue_regression_LDADD= ${CLIENT_LDADD}
|
|
|
|
|
|
-if HAVE_LIBTOKYOCABINET
|
|
|
-TOKYOCABINET_TEST= tests/tokyocabinet_test
|
|
|
-TOKYOCABINET_RM= @rm -f tests/gearman.tcb
|
|
|
-CLEANFILES+= tests/gearman.tcb
|
|
|
-noinst_PROGRAMS += tests/tokyocabinet_test
|
|
|
-endif
|
|
|
-
|
|
|
-if HAVE_LIBDRIZZLE
|
|
|
-DRIZZLE_TEST= tests/drizzle_test
|
|
|
-noinst_PROGRAMS += tests/drizzle_test
|
|
|
-endif
|
|
|
-
|
|
|
-tests_tokyocabinet_test_SOURCES= tests/tokyocabinet_test.cc
|
|
|
-tests_tokyocabinet_test_LDADD= ${CLIENT_LDADD}
|
|
|
-
|
|
|
-tests_drizzle_test_SOURCES= tests/drizzle_test.cc
|
|
|
-tests_drizzle_test_LDADD= ${CLIENT_LDADD}
|
|
|
-
|
|
|
noinst_PROGRAMS+= \
|
|
|
tests/burnin_test \
|
|
|
tests/client_test \
|
|
@@ -113,46 +71,11 @@ test-worker:
|
|
|
test-internals:
|
|
|
@tests/internals_test $(ARG1) $(ARG2)
|
|
|
|
|
|
-test-libmemcached:
|
|
|
-if HAVE_LIBMEMCACHED
|
|
|
-if HAVE_MEMCACHED
|
|
|
- $(LIBMEMCACHED_SETUP)
|
|
|
- $(LIBMEMCACHED_TEST) $(ARG1) $(ARG2)
|
|
|
- $(LIBMEMCACHED_TEARDOWN)
|
|
|
-endif
|
|
|
-endif
|
|
|
-
|
|
|
-queue-regression:
|
|
|
-if HAVE_LIBSQLITE3
|
|
|
- $(QUEUE_REGRESSION_TEST) $(ARG1) $(ARG2)
|
|
|
-endif
|
|
|
-
|
|
|
-test-sqlite:
|
|
|
-if HAVE_LIBSQLITE3
|
|
|
- $(SQLITE_TEST) $(ARG1) $(ARG2)
|
|
|
-endif
|
|
|
-
|
|
|
-gdb-sqlite:
|
|
|
-if HAVE_LIBSQLITE3
|
|
|
- $(LIBTOOL) --mode=execute gdb tests/sqlite_test
|
|
|
-endif
|
|
|
-
|
|
|
-test-tokyocabinet:
|
|
|
-if HAVE_LIBTOKYOCABINET
|
|
|
- $(TOKYOCABINET_TEST) $(ARG1) $(ARG2)
|
|
|
- $(TOKYOCABINET_RM)
|
|
|
-endif
|
|
|
-
|
|
|
-test-drizzle:
|
|
|
-if HAVE_LIBDRIZZLE
|
|
|
- $(DRIZZLE_TEST) $(ARG1) $(ARG2)
|
|
|
-endif
|
|
|
-
|
|
|
GEARADMIN_TOOL= bin/gearadmin
|
|
|
test-shutdown: bin/gearadmin
|
|
|
$(GEARADMIN_TOOL) --port 32123 --shutdown 2>&1 > /dev/null
|
|
|
|
|
|
-check-local: tests/var test-shutdown test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin queue-regression
|
|
|
+check-local: gearmand-test-args tests/var test-shutdown test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin queue-regression
|
|
|
|
|
|
gdb-client: ${noinst_PROGRAMS}
|
|
|
$(LIBTOOL) --mode=execute gdb tests/client_test
|
|
@@ -183,42 +106,6 @@ valgrind-libmemcached:
|
|
|
$(VALGRIND_COMMAND) $(LIBMEMCACHED_TEST) $(ARG1) $(ARG2)
|
|
|
$(LIBMEMCACHED_TEARDOWN)
|
|
|
|
|
|
-valgrind-sqlite:
|
|
|
-if HAVE_LIBSQLITE3
|
|
|
- $(VALGRIND_COMMAND) $(SQLITE_TEST) $(ARG1) $(ARG2)
|
|
|
-endif
|
|
|
-
|
|
|
-valgrind-tokyocabinet:
|
|
|
-if HAVE_LIBTOKYOCABINET
|
|
|
- $(VALGRIND_COMMAND) $(TOKYOCABINET_TEST) $(ARG1) $(ARG2)
|
|
|
- $(TOKYOCABINET_RM)
|
|
|
-endif
|
|
|
-
|
|
|
-GEARMAN_CLIENT_TEST= bin/gearman
|
|
|
-GEARMAN_VALGRIND_CLIENT_TEST= $(VALGRIND_COMMAND) bin/gearman
|
|
|
-GEARMAN_PIDFILE = ${abs_top_builddir}/tests/Xugear.pid
|
|
|
-
|
|
|
-client-test: $(GEARMAN_CLIENT_TEST)
|
|
|
- @$(GEARMAN_CLIENT_TEST) -H 2>&1 > /dev/null
|
|
|
- @$(GEARMAN_CLIENT_TEST) -w -f true -d -i $(GEARMAN_PIDFILE) -- false
|
|
|
- cat $(GEARMAN_PIDFILE) | xargs kill
|
|
|
- @echo "gearman client success"
|
|
|
-
|
|
|
-client-test-wc: $(GEARMAN_CLIENT_TEST)
|
|
|
- @echo "1" > ${abs_top_builddir}/tests/test_file
|
|
|
- @$(GEARMAN_CLIENT_TEST) -w -f wc -d -i $(GEARMAN_PIDFILE) -- wc -l
|
|
|
- @$(GEARMAN_CLIENT_TEST) -f wc < ${abs_top_builddir}/tests/test_file > ${abs_top_builddir}/tests/out_file
|
|
|
- diff -q ${abs_top_builddir}/tests/test_file ${abs_top_builddir}/tests/out_file
|
|
|
- rm ${abs_top_builddir}/tests/test_file ${abs_top_builddir}/tests/out_file
|
|
|
- cat $(GEARMAN_PIDFILE) | xargs kill
|
|
|
- @echo "gearman client success"
|
|
|
-
|
|
|
-valgrind-client-test: $(GEARMAN_CLIENT_TEST)
|
|
|
- @$(GEARMAN_VALGRIND_CLIENT_TEST) -H 2>&1 > /dev/null
|
|
|
- @$(GEARMAN_CLIENT_TEST) -w -f true -d -i $(GEARMAN_PIDFILE) -- false
|
|
|
- cat $(GEARMAN_PIDFILE) | xargs kill
|
|
|
- @echo "gearman client success"
|
|
|
-
|
|
|
tests/var: tests/var/log tests/var/tmp
|
|
|
$(mkdir_p) tests/var
|
|
|
|
|
@@ -228,9 +115,14 @@ tests/var/log:
|
|
|
tests/var/tmp:
|
|
|
$(mkdir_p) tests/var/tmp
|
|
|
|
|
|
-#valgrind: ${noinst_PROGRAMS} valgrind-client valgrind-worker valgrind-internals valgrind-sqlite valgrind-tokyocabinet
|
|
|
-
|
|
|
valgrind: ${noinst_PROGRAMS} valgrind-client valgrind-round-robin valgrind-worker valgrind-internals valgrind-sqlite valgrind-tokyocabinet
|
|
|
|
|
|
+include tests/httpd.am
|
|
|
+include tests/libdrizzle.am
|
|
|
+include tests/libmemcached.am
|
|
|
+include tests/postgres.am
|
|
|
+include tests/sqlite.am
|
|
|
+include tests/tokyocabinet.am
|
|
|
+
|
|
|
bogus:
|
|
|
|