1# vim:ft=automake 2# 3# Gearman server and library 4# Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/ 5# Copyright (C) 2008 Brian Aker, Eric Day 6# All rights reserved. 7# 8# Use and distribution licensed under the BSD license. See 9# the COPYING file in the parent directory for full text. 10 11noinst_HEADERS+= tests/basic.h 12noinst_HEADERS+= tests/burnin.h 13noinst_HEADERS+= tests/context.h 14noinst_HEADERS+= tests/do.h 15noinst_HEADERS+= tests/do_background.h 16noinst_HEADERS+= tests/execute.h 17noinst_HEADERS+= tests/gearman_client_do_job_handle.h 18noinst_HEADERS+= tests/gearman_execute_partition.h 19noinst_HEADERS+= tests/limits.h 20noinst_HEADERS+= tests/protocol.h 21noinst_HEADERS+= tests/regression.h 22noinst_HEADERS+= tests/runner.h 23noinst_HEADERS+= tests/server_options.h 24noinst_HEADERS+= tests/start_worker.h 25noinst_HEADERS+= tests/task.h 26noinst_HEADERS+= tests/unique.h 27 28CLIENT_LDADD= 29CLIENT_LDADD+= libgearman/libgearman.la 30CLIENT_LDADD+= libtest/libtest.la 31CLIENT_LDADD+= tests/libstartworker.la 32 33tests_cycle_SOURCES= 34tests_cycle_LDADD= 35EXTRA_tests_cycle_DEPENDENCIES= 36 37EXTRA_tests_cycle_DEPENDENCIES+= gearmand/gearmand 38tests_cycle_SOURCES+= tests/cycle.cc 39tests_cycle_LDADD+= ${CLIENT_LDADD} 40check_PROGRAMS+=tests/cycle 41noinst_PROGRAMS+=tests/cycle 42 43tests_blobslap_client_SOURCES= 44tests_blobslap_client_LDADD= 45 46tests_blobslap_client_SOURCES+= tests/blobslap_client.cc 47tests_blobslap_client_LDADD+= ${CLIENT_LDADD} 48noinst_PROGRAMS+= tests/blobslap_client 49 50# Vector tests 51tests_vector_SOURCES= 52tests_vector_LDADD= 53 54tests_vector_SOURCES+= tests/vector.cc 55tests_vector_LDADD+= libtest/libtest.la 56tests_vector_LDADD+= libgearman/libgearman-vector.la 57check_PROGRAMS+= tests/vector 58noinst_PROGRAMS+= tests/vector 59 60test-vector: tests/vector 61 @tests/vector 62 63valgrind-vector: tests/vector 64 @$(VALGRIND_COMMAND) tests/vector 65 66# Vector tests 67tests_result_SOURCES= 68tests_result_LDADD= 69 70tests_result_SOURCES+= tests/result.cc 71tests_result_LDADD+= libtest/libtest.la 72tests_result_LDADD+= libgearman/libgearman-result.la 73check_PROGRAMS+= tests/result 74noinst_PROGRAMS+= tests/result 75 76test-result: tests/result 77 @tests/result 78 79valgrind-result: tests/result 80 @$(VALGRIND_COMMAND) tests/result 81 82 83EXTRA_tests_cli_DEPENDENCIES= 84tests_cli_SOURCES= 85tests_cli_LDADD= 86 87tests_cli_SOURCES+= tests/cli.cc 88EXTRA_tests_cli_DEPENDENCIES+= bin/gearman 89EXTRA_tests_cli_DEPENDENCIES+= bin/gearadmin 90EXTRA_tests_cli_DEPENDENCIES+= gearmand/gearmand 91tests_cli_LDADD+= ${CLIENT_LDADD} 92check_PROGRAMS+= tests/cli 93noinst_PROGRAMS+= tests/cli 94 95EXTRA_tests_gearmand_DEPENDENCIES= 96tests_gearmand_LDADD= 97tests_gearmand_SOURCES= 98 99tests_gearmand_SOURCES+= tests/gearmand.cc 100tests_gearmand_LDADD+= ${CLIENT_LDADD} 101EXTRA_tests_gearmand_DEPENDENCIES+= gearmand/gearmand 102check_PROGRAMS+= tests/gearmand 103noinst_PROGRAMS+= tests/gearmand 104 105include tests/libgearman-1.0/include.am 106include tests/stress.am 107include tests/hostile.am 108include tests/workers/include.am 109 110tests_round_robin_test_SOURCES= 111tests_round_robin_test_LDADD= 112 113tests_round_robin_test_SOURCES+= tests/round_robin.cc 114tests_round_robin_test_LDADD+= ${CLIENT_LDADD} 115tests_round_robin_test_LDADD+= libgearman/libgearmancore.la 116check_PROGRAMS+= tests/round_robin_test 117noinst_PROGRAMS+= tests/round_robin_test 118 119test-round-robin: tests/round_robin_test gearmand/gearmand 120 @tests/round_robin_test 121 122gdb-round-robin: tests/round_robin_test gearmand/gearmand 123 @$(GDB_COMMAND) tests/round_robin_test 124 125valgrind-round-robin: tests/round_robin_test gearmand/gearmand 126 @$(VALGRIND_COMMAND) tests/round_robin_test 127 128helgrind-round-robin: tests/round_robin_test gearmand/gearmand 129 @$(HELGRIND_COMMAND) tests/round_robin_test 130 131# Test linking with C++ application 132tests_cpp_test_SOURCES= 133tests_cpp_test_LDADD= 134 135tests_cpp_test_SOURCES+= tests/cpp_test.cc 136tests_cpp_test_LDADD+= ${CLIENT_LDADD} 137check_PROGRAMS+=tests/cpp_test 138noinst_PROGRAMS+=tests/cpp_test 139 140valgrind-cpp_test: tests/cpp_test 141 @$(VALGRIND_COMMAND) tests/cpp_test 142 143# Test linking with C application 144tests_c_test_SOURCES= 145tests_c_test_LDADD= 146 147tests_c_test_SOURCES+= tests/c_test.c 148tests_c_test_LDADD+= ${CLIENT_LDADD} 149check_PROGRAMS+=tests/c_test 150noinst_PROGRAMS+=tests/c_test 151 152valgrind-c_test: tests/c_test 153 @$(VALGRIND_COMMAND) tests/c_test 154 155test-cycle: tests/cycle gearmand/gearmand 156 @tests/cycle 157 158test-cli: tests/cli gearmand/gearmand 159 @tests/cli 160 161test-gearmand: tests/gearmand gearmand/gearmand 162 @tests/gearmand 163 164tests-blobslap_client: tests/blobslap_client gearmand/gearmand 165 @tests/blobslap_client 166 167check-local: 168 169gdb-cli: tests/cli gearmand/gearmand 170 @$(GDB_COMMAND) tests/cli 171 172gdb-blobslap_client: tests/blobslap_client gearmand/gearmand 173 @$(GDB_COMMAND) tests/blobslap_client 174 175gdb-cycle: tests/cycle gearmand/gearmand 176 @$(GDB_COMMAND) tests/cycle 177 178gdb-gearmand: tests/gearmand gearmand/gearmand 179 @$(GDB_COMMAND) tests/gearmand 180 181valgrind-cli: tests/cli gearmand/gearmand 182 @$(VALGRIND_COMMAND) tests/cli 183 184valgrind-burnin: tests/burnin_test gearmand/gearmand 185 @$(VALGRIND_COMMAND) tests/burnin_test 186 187valgrind-cycle: tests/cycle gearmand/gearmand 188 @$(VALGRIND_COMMAND) tests/cycle 189 190valgrind-gearmand: tests/gearmand gearmand/gearmand 191 @$(VALGRIND_COMMAND) tests/gearmand 192 193helgrind-client: tests/client_test gearmand/gearmand 194 @$(HELGRIND_COMMAND) tests/client_test 195 196helgrind-burnin: tests/burnin_test gearmand/gearmand 197 @$(HELGRIND_COMMAND) tests/burnin_test 198 199helgrind-cycle: tests/cycle gearmand/gearmand 200 @$(HELGRIND_COMMAND) tests/cycle 201 202drd-cycle: tests/cycle gearmand/gearmand 203 @$(DRD_COMMAND) tests/cycle 204 205include tests/ephemeral.am 206include tests/libdrizzle.am 207include tests/libmemcached.am 208include tests/postgres.am 209include tests/mysql.am 210include tests/sqlite.am 211include tests/tokyocabinet.am 212include tests/redis.am 213include tests/httpd.am 214include tests/perl/include.am 215 216bogus: 217 218