include.am 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. noinst_HEADERS+= tests/basic.h
  11. noinst_HEADERS+= tests/burnin.h
  12. noinst_HEADERS+= tests/context.h
  13. noinst_HEADERS+= tests/do.h
  14. noinst_HEADERS+= tests/do_background.h
  15. noinst_HEADERS+= tests/execute.h
  16. noinst_HEADERS+= tests/gearman_client_do_job_handle.h
  17. noinst_HEADERS+= tests/gearman_execute_partition.h
  18. noinst_HEADERS+= tests/limits.h
  19. noinst_HEADERS+= tests/protocol.h
  20. noinst_HEADERS+= tests/regression.h
  21. noinst_HEADERS+= tests/runner.h
  22. noinst_HEADERS+= tests/server_options.h
  23. noinst_HEADERS+= tests/start_worker.h
  24. noinst_HEADERS+= tests/task.h
  25. noinst_HEADERS+= tests/unique.h
  26. CLIENT_LDADD=
  27. CLIENT_LDADD+= libgearman/libgearman.la
  28. CLIENT_LDADD+= libtest/libtest.la
  29. CLIENT_LDADD+= tests/libstartworker.la
  30. tests_cycle_SOURCES=
  31. tests_cycle_LDADD=
  32. EXTRA_tests_cycle_DEPENDENCIES=
  33. EXTRA_tests_cycle_DEPENDENCIES+= gearmand/gearmand
  34. tests_cycle_SOURCES+= tests/cycle.cc
  35. tests_cycle_LDADD+= ${CLIENT_LDADD}
  36. check_PROGRAMS+=tests/cycle
  37. noinst_PROGRAMS+=tests/cycle
  38. tests_blobslap_client_SOURCES=
  39. tests_blobslap_client_LDADD=
  40. tests_blobslap_client_SOURCES+= tests/blobslap_client.cc
  41. tests_blobslap_client_LDADD+= ${CLIENT_LDADD}
  42. noinst_PROGRAMS+= tests/blobslap_client
  43. # Vector tests
  44. tests_vector_SOURCES=
  45. tests_vector_LDADD=
  46. tests_vector_SOURCES+= tests/vector.cc
  47. tests_vector_LDADD+= libtest/libtest.la
  48. tests_vector_LDADD+= libgearman/libgearman-vector.la
  49. check_PROGRAMS+= tests/vector
  50. noinst_PROGRAMS+= tests/vector
  51. test-vector: tests/vector
  52. @tests/vector
  53. valgrind-vector: tests/vector
  54. @$(VALGRIND_COMMAND) tests/vector
  55. # Vector tests
  56. tests_result_SOURCES=
  57. tests_result_LDADD=
  58. tests_result_SOURCES+= tests/result.cc
  59. tests_result_LDADD+= libtest/libtest.la
  60. tests_result_LDADD+= libgearman/libgearman-result.la
  61. check_PROGRAMS+= tests/result
  62. noinst_PROGRAMS+= tests/result
  63. test-result: tests/result
  64. @tests/result
  65. valgrind-result: tests/result
  66. @$(VALGRIND_COMMAND) tests/result
  67. EXTRA_tests_cli_DEPENDENCIES=
  68. tests_cli_SOURCES=
  69. tests_cli_LDADD=
  70. tests_cli_SOURCES+= tests/cli.cc
  71. EXTRA_tests_cli_DEPENDENCIES+= bin/gearman
  72. EXTRA_tests_cli_DEPENDENCIES+= bin/gearadmin
  73. EXTRA_tests_cli_DEPENDENCIES+= gearmand/gearmand
  74. tests_cli_LDADD+= ${CLIENT_LDADD}
  75. check_PROGRAMS+= tests/cli
  76. noinst_PROGRAMS+= tests/cli
  77. EXTRA_tests_gearmand_DEPENDENCIES=
  78. tests_gearmand_LDADD=
  79. tests_gearmand_SOURCES=
  80. tests_gearmand_SOURCES+= tests/gearmand.cc
  81. tests_gearmand_LDADD+= ${CLIENT_LDADD}
  82. EXTRA_tests_gearmand_DEPENDENCIES+= gearmand/gearmand
  83. check_PROGRAMS+= tests/gearmand
  84. noinst_PROGRAMS+= tests/gearmand
  85. include tests/libgearman-1.0/include.am
  86. include tests/stress.am
  87. include tests/hostile.am
  88. include tests/workers/include.am
  89. tests_round_robin_test_SOURCES=
  90. tests_round_robin_test_LDADD=
  91. tests_round_robin_test_SOURCES+= tests/round_robin.cc
  92. tests_round_robin_test_LDADD+= ${CLIENT_LDADD}
  93. tests_round_robin_test_LDADD+= libgearman/libgearmancore.la
  94. check_PROGRAMS+= tests/round_robin_test
  95. noinst_PROGRAMS+= tests/round_robin_test
  96. test-round-robin: tests/round_robin_test gearmand/gearmand
  97. @tests/round_robin_test
  98. gdb-round-robin: tests/round_robin_test gearmand/gearmand
  99. @$(GDB_COMMAND) tests/round_robin_test
  100. valgrind-round-robin: tests/round_robin_test gearmand/gearmand
  101. @$(VALGRIND_COMMAND) tests/round_robin_test
  102. helgrind-round-robin: tests/round_robin_test gearmand/gearmand
  103. @$(HELGRIND_COMMAND) tests/round_robin_test
  104. # Test linking with C++ application
  105. tests_cpp_test_SOURCES=
  106. tests_cpp_test_LDADD=
  107. tests_cpp_test_SOURCES+= tests/cpp_test.cc
  108. tests_cpp_test_LDADD+= ${CLIENT_LDADD}
  109. check_PROGRAMS+=tests/cpp_test
  110. noinst_PROGRAMS+=tests/cpp_test
  111. valgrind-cpp_test: tests/cpp_test
  112. @$(VALGRIND_COMMAND) tests/cpp_test
  113. # Test linking with C application
  114. tests_c_test_SOURCES=
  115. tests_c_test_LDADD=
  116. tests_c_test_SOURCES+= tests/c_test.c
  117. tests_c_test_LDADD+= ${CLIENT_LDADD}
  118. check_PROGRAMS+=tests/c_test
  119. noinst_PROGRAMS+=tests/c_test
  120. valgrind-c_test: tests/c_test
  121. @$(VALGRIND_COMMAND) tests/c_test
  122. test-cycle: tests/cycle gearmand/gearmand
  123. @tests/cycle
  124. test-cli: tests/cli gearmand/gearmand
  125. @tests/cli
  126. test-gearmand: tests/gearmand gearmand/gearmand
  127. @tests/gearmand
  128. tests-blobslap_client: tests/blobslap_client gearmand/gearmand
  129. @tests/blobslap_client
  130. check-local:
  131. gdb-cli: tests/cli gearmand/gearmand
  132. @$(GDB_COMMAND) tests/cli
  133. gdb-blobslap_client: tests/blobslap_client gearmand/gearmand
  134. @$(GDB_COMMAND) tests/blobslap_client
  135. gdb-cycle: tests/cycle gearmand/gearmand
  136. @$(GDB_COMMAND) tests/cycle
  137. gdb-gearmand: tests/gearmand gearmand/gearmand
  138. @$(GDB_COMMAND) tests/gearmand
  139. valgrind-cli: tests/cli gearmand/gearmand
  140. @$(VALGRIND_COMMAND) tests/cli
  141. valgrind-burnin: tests/burnin_test gearmand/gearmand
  142. @$(VALGRIND_COMMAND) tests/burnin_test
  143. valgrind-cycle: tests/cycle gearmand/gearmand
  144. @$(VALGRIND_COMMAND) tests/cycle
  145. valgrind-gearmand: tests/gearmand gearmand/gearmand
  146. @$(VALGRIND_COMMAND) tests/gearmand
  147. helgrind-client: tests/client_test gearmand/gearmand
  148. @$(HELGRIND_COMMAND) tests/client_test
  149. helgrind-burnin: tests/burnin_test gearmand/gearmand
  150. @$(HELGRIND_COMMAND) tests/burnin_test
  151. helgrind-cycle: tests/cycle gearmand/gearmand
  152. @$(HELGRIND_COMMAND) tests/cycle
  153. drd-cycle: tests/cycle gearmand/gearmand
  154. @$(DRD_COMMAND) tests/cycle
  155. include tests/ephemeral.am
  156. include tests/libdrizzle.am
  157. include tests/libmemcached.am
  158. include tests/postgres.am
  159. include tests/mysql.am
  160. include tests/sqlite.am
  161. include tests/tokyocabinet.am
  162. include tests/redis.am
  163. include tests/httpd.am
  164. include tests/perl/include.am
  165. bogus: