# vim:ft=automake # Gearman server and library # Copyright (C) 2011 Data Differential, http://datadifferential.com/ # 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. noinst_HEADERS+= \ tests/basic.h \ tests/client.h \ tests/context.h \ tests/do.h \ tests/do_background.h \ tests/execute.h \ tests/gearman_client_do_job_handle.h \ tests/gearman_execute_partition.h \ tests/limits.h \ tests/ports.h \ tests/protocol.h \ tests/regression.h \ tests/server_options.h \ tests/start_worker.h \ tests/task.h \ tests/unique.h \ tests/worker.h \ tests/workers.h \ tests/workers_v1.h noinst_LTLIBRARIES+= tests/libstartworker.la tests_libstartworker_la_CXXFLAGS= tests_libstartworker_la_CXXFLAGS+= $(PTHREAD_CFLAGS) tests_libstartworker_la_CXXFLAGS+= $(BOOST_CPPFLAGS) tests_libstartworker_la_LIBADD= $(PTHREAD_LIBS) tests_libstartworker_la_LIBADD+= $(BOOST_THREAD_LIBS) tests_libstartworker_la_SOURCES= tests/start_worker.cc tests_libstartworker_la_SOURCES+= util/instance.cc tests_libstartworker_la_SOURCES+= util/operation.cc CLIENT_LDADD= \ libgearman/libgearman.la \ libtest/libtest.la \ tests/libstartworker.la tests_killall_SOURCES= tests/killall.cc tests_killall_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_killall_LDADD= ${CLIENT_LDADD} check_PROGRAMS+=tests/killall noinst_PROGRAMS+=tests/killall tests_cycle_SOURCES= tests/cycle.cc tests_cycle_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_cycle_LDADD= ${CLIENT_LDADD} check_PROGRAMS+=tests/cycle noinst_PROGRAMS+=tests/cycle tests_blobslap_client_SOURCES= tests/blobslap_client.cc tests_blobslap_client_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_blobslap_client_LDADD= ${CLIENT_LDADD} noinst_PROGRAMS+= tests/blobslap_client tests_cli_SOURCES= tests/cli.cc tests_cli_SOURCES+= tests/libgearman-1.0/workers.cc tests_cli_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand bin/gearman bin/gearadmin tests_cli_LDADD= ${CLIENT_LDADD} check_PROGRAMS+= tests/cli noinst_PROGRAMS+= tests/cli tests_gearmand_SOURCES= tests/gearmand.cc tests_gearmand_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_gearmand_LDADD= ${CLIENT_LDADD} check_PROGRAMS+= tests/gearmand noinst_PROGRAMS+= tests/gearmand include tests/libgearman-1.0/include.am tests_round_robin_test_SOURCES= tests/round_robin.cc tests_round_robin_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la gearmand/gearmand tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la check_PROGRAMS+= tests/round_robin_test noinst_PROGRAMS+= tests/round_robin_test if TARGET_LINUX tests_hostileworker_test_SOURCES= tests/stress_worker.cc tests_hostileworker_test_SOURCES+= tests/libgearman-1.0/workers.cc tests_hostileworker_test_DEPENDENCIES= ${CLIENT_LDADD} libhostile/libhostile.la gearmand/gearmand tests_hostileworker_test_LDADD= ${CLIENT_LDADD} tests_hostileworker_test_LDADD+= libhostile/libhostile.la tests_hostileworker_test_LDADD+= -ldl check_PROGRAMS+=tests/hostileworker_test noinst_PROGRAMS+=tests/hostileworker_test valgrind-hostileworker: tests/hostileworker_test gearmand/gearmand @$(VALGRIND_COMMAND) tests/hostileworker_test endif # Test linking with C++ application tests_cpp_test_SOURCES= tests/cpp_test.cc tests_cpp_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_cpp_test_LDADD= ${CLIENT_LDADD} check_PROGRAMS+=tests/cpp_test noinst_PROGRAMS+=tests/cpp_test # Test linking with C application tests_c_test_SOURCES= tests/c_test.c tests_c_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_c_test_LDADD= ${CLIENT_LDADD} check_PROGRAMS+=tests/c_test noinst_PROGRAMS+=tests/c_test tests_burnin_test_SOURCES= tests/burnin.cc tests_burnin_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand tests_burnin_test_LDADD= ${CLIENT_LDADD} check_PROGRAMS+=tests/burnin_test noinst_PROGRAMS+=tests/burnin_test test-burnin: tests/burnin_test gearmand/gearmand @tests/burnin_test test-cycle: tests/cycle gearmand/gearmand @tests/cycle test-cli: tests/cli gearmand/gearmand @tests/cli test-gearmand: tests/gearmand gearmand/gearmand @tests/gearmand tests-blobslap_client: tests/blobslap_client gearmand/gearmand @tests/blobslap_client test-round-robin: tests/round_robin_test gearmand/gearmand @tests/round_robin_test test-worker: tests/worker_test gearmand/gearmand @tests/worker_test check-local: gdb-round-robin: tests/round_robin_test gearmand/gearmand @$(GDB_COMMAND) tests/round_robin_test gdb-burnin: tests/burnin_test gearmand/gearmand @$(GDB_COMMAND) tests/burnin_test gdb-cli: tests/cli gearmand/gearmand @$(GDB_COMMAND) tests/cli gdb-blobslap_client: tests/blobslap_client gearmand/gearmand @$(GDB_COMMAND) tests/blobslap_client gdb-cycle: tests/cycle gearmand/gearmand @$(GDB_COMMAND) tests/cycle valgrind-cli: tests/cli gearmand/gearmand @$(VALGRIND_COMMAND) tests/cli gearmand/gearmand valgrind-round-robin: tests/round_robin_test gearmand/gearmand @$(VALGRIND_COMMAND) tests/round_robin_test valgrind-worker: tests/worker_test gearmand/gearmand @$(VALGRIND_COMMAND) tests/worker_test valgrind-burnin: tests/burnin_test gearmand/gearmand @$(VALGRIND_COMMAND) tests/burnin_test valgrind-cycle: tests/cycle gearmand/gearmand @$(VALGRIND_COMMAND) tests/cycle helgrind-client: tests/client_test gearmand/gearmand @$(HELGRIND_COMMAND) tests/client_test helgrind-round-robin: tests/round_robin_test gearmand/gearmand @$(HELGRIND_COMMAND) tests/round_robin_test helgrind-worker: tests/worker_test gearmand/gearmand @$(HELGRIND_COMMAND) tests/worker_test helgrind-burnin: tests/burnin_test gearmand/gearmand @$(HELGRIND_COMMAND) tests/burnin_test helgrind-cycle: tests/cycle gearmand/gearmand @$(HELGRIND_COMMAND) tests/cycle drd-cycle: tests/cycle gearmand/gearmand @$(DRD_COMMAND) tests/cycle include tests/ephemeral.am include tests/libdrizzle.am include tests/libmemcached.am include tests/postgres.am include tests/sqlite.am include tests/tokyocabinet.am include tests/redis.am bogus: