123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- # vim:ft=automake
- # Gearman server and library
- # Copyright (C) 2008 Brian Aker, Eric Day
- # All rights reserved.
- #
- # Use and distribution licensed under the BSD license. See
- # the COPYING file in the parent directory for full text.
- VALGRIND_COMMAND= $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes
- noinst_HEADERS+= \
- tests/basic.h \
- tests/context.h \
- tests/do.h \
- tests/do_background.h \
- tests/execute.h \
- tests/gearman_client_do_job_handle.h \
- tests/gearman_worker_set_reducer.h \
- tests/server_options.h \
- tests/task.h \
- tests/unique.h \
- tests/workers.h
- CLIENT_LDADD= \
- libtest/libtest.la \
- libtest/libserver.la \
- libgearman/libgearman.la
- CLEANFILES+= \
- tests/var/log/* \
- tests/var/tmp/*
- noinst_PROGRAMS+= \
- tests/burnin_test \
- tests/client_test \
- tests/cpp_test \
- tests/drizzle_test \
- tests/internals_test \
- tests/regression_test \
- tests/round_robin_test \
- tests/worker_test
- tests_client_test_SOURCES= \
- tests/client_test.cc \
- tests/do.cc \
- tests/do_background.cc \
- tests/execute.cc \
- tests/gearman_client_do_job_handle.cc \
- tests/gearman_worker_set_reducer.cc \
- tests/server_options.cc \
- tests/task.cc \
- tests/unique.cc \
- tests/workers.cc
- tests_client_test_LDADD= ${CLIENT_LDADD}
- tests_client_test_DEPENDENCIES= ${CLIENT_LDADD}
- tests_burnin_test_SOURCES= tests/burnin.cc
- tests_burnin_test_LDADD= ${CLIENT_LDADD}
- tests_internals_test_SOURCES= tests/internals.cc
- tests_internals_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
- tests_internals_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la
- tests_regression_test_SOURCES= tests/regression.cc
- tests_regression_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
- tests_round_robin_test_SOURCES= tests/round_robin.cc
- tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
- tests_worker_test_SOURCES= tests/worker_test.cc
- tests_worker_test_LDADD= \
- ${CLIENT_LDADD} \
- libgearman/libgearmancore.la
- # Test linking with C++ application
- tests_cpp_test_SOURCES= tests/cpp_test.cc
- tests_cpp_test_LDADD= ${CLIENT_LDADD}
- test-burnin: tests/burnin_test
- @tests/burnin_test $(ARG1) $(ARG2)
- test-client: tests/client_test
- @tests/client_test $(ARG1) $(ARG2)
- test-round-robin: tests/round_robin_test
- @tests/round_robin_test $(ARG1) $(ARG2)
- test-worker: tests/worker_test
- @tests/worker_test $(ARG1) $(ARG2)
- test-internals:
- @tests/internals_test $(ARG1) $(ARG2)
- check-local: tests/var gearmand-test-args client-test libtest-tests
- libtest-tests: test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin
- gdb-client: ${noinst_PROGRAMS}
- $(LIBTOOL) --mode=execute gdb tests/client_test
- gdb-round-robin: ${noinst_PROGRAMS}
- $(LIBTOOL) --mode=execute gdb tests/round_robin_test
- gdb-worker: ${noinst_PROGRAMS}
- $(LIBTOOL) --mode=execute gdb tests/worker_test
- gdb-internals: ${noinst_PROGRAMS}
- $(LIBTOOL) --mode=execute gdb tests/internals_test
- gdb-burnin: ${noinst_PROGRAMS}
- $(LIBTOOL) --mode=execute gdb tests/burnin_test
- valgrind-client:
- $(VALGRIND_COMMAND) tests/client_test $(ARG1) $(ARG2)
- valgrind-round-robin:
- $(VALGRIND_COMMAND) tests/round_robin_test $(ARG1) $(ARG2)
- valgrind-worker: tests/worker_test
- $(VALGRIND_COMMAND) tests/worker_test $(ARG1) $(ARG2)
- valgrind-internals:
- $(VALGRIND_COMMAND) tests/internals_test $(ARG1) $(ARG2)
- tests/var: tests/var/log tests/var/tmp
- $(mkdir_p) tests/var
- tests/var/log:
- $(mkdir_p) tests/var/log
- tests/var/tmp:
- $(mkdir_p) tests/var/tmp
- 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:
|