include.am 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. t_cycle_SOURCES=
  31. t_cycle_LDADD=
  32. EXTRA_t_cycle_DEPENDENCIES=
  33. EXTRA_t_cycle_DEPENDENCIES+= gearmand/gearmand
  34. t_cycle_SOURCES+= tests/cycle.cc
  35. t_cycle_LDADD+= ${CLIENT_LDADD}
  36. #TODO fix unreliable t/cycle
  37. # check_PROGRAMS+=t/cycle
  38. noinst_PROGRAMS+=t/cycle
  39. t_blobslap_client_SOURCES=
  40. t_blobslap_client_LDADD=
  41. t_blobslap_client_SOURCES+= tests/blobslap_client.cc
  42. t_blobslap_client_LDADD+= ${CLIENT_LDADD}
  43. noinst_PROGRAMS+= t/blobslap_client
  44. # Vector tests
  45. t_vector_SOURCES=
  46. t_vector_LDADD=
  47. t_vector_SOURCES+= tests/vector.cc
  48. t_vector_LDADD+= libtest/libtest.la
  49. t_vector_LDADD+= libgearman/libgearman-vector.la
  50. check_PROGRAMS+= t/vector
  51. noinst_PROGRAMS+= t/vector
  52. test-vector: t/vector
  53. @t/vector
  54. valgrind-vector: t/vector
  55. @$(VALGRIND_COMMAND) t/vector
  56. # Vector tests
  57. t_result_SOURCES=
  58. t_result_LDADD=
  59. t_result_SOURCES+= tests/result.cc
  60. t_result_LDADD+= libtest/libtest.la
  61. t_result_LDADD+= libgearman/libgearman-result.la
  62. check_PROGRAMS+= t/result
  63. noinst_PROGRAMS+= t/result
  64. test-result: t/result
  65. @t/result
  66. valgrind-result: t/result
  67. @$(VALGRIND_COMMAND) t/result
  68. EXTRA_t_cli_DEPENDENCIES=
  69. t_cli_SOURCES=
  70. t_cli_LDADD=
  71. t_cli_SOURCES+= tests/cli.cc
  72. EXTRA_t_cli_DEPENDENCIES+= bin/gearman
  73. EXTRA_t_cli_DEPENDENCIES+= bin/gearadmin
  74. EXTRA_t_cli_DEPENDENCIES+= gearmand/gearmand
  75. t_cli_LDADD+= ${CLIENT_LDADD}
  76. check_PROGRAMS+= t/cli
  77. noinst_PROGRAMS+= t/cli
  78. EXTRA_t_gearmand_DEPENDENCIES=
  79. t_gearmand_LDADD=
  80. t_gearmand_SOURCES=
  81. t_gearmand_SOURCES+= tests/gearmand.cc
  82. t_gearmand_LDADD+= ${CLIENT_LDADD}
  83. EXTRA_t_gearmand_DEPENDENCIES+= gearmand/gearmand
  84. check_PROGRAMS+= t/gearmand
  85. noinst_PROGRAMS+= t/gearmand
  86. include tests/libgearman-1.0/include.am
  87. include tests/stress.am
  88. include tests/hostile.am
  89. include tests/workers/include.am
  90. include tests/protocol.mk
  91. t_round_robin_SOURCES=
  92. t_round_robin_LDADD=
  93. t_round_robin_SOURCES+= tests/round_robin.cc
  94. t_round_robin_LDADD+= ${CLIENT_LDADD}
  95. t_round_robin_LDADD+= libgearman/libgearmancore.la
  96. check_PROGRAMS+= t/round_robin
  97. noinst_PROGRAMS+= t/round_robin
  98. test-round-robin: t/round_robin gearmand/gearmand
  99. @t/round_robin
  100. gdb-round-robin: t/round_robin gearmand/gearmand
  101. @$(GDB_COMMAND) t/round_robin
  102. valgrind-round-robin: t/round_robin gearmand/gearmand
  103. @$(VALGRIND_COMMAND) t/round_robin
  104. helgrind-round-robin: tests/round_robin gearmand/gearmand
  105. @$(HELGRIND_COMMAND) t/round_robin
  106. # Test linking with C++ application
  107. t_cpp_SOURCES=
  108. t_cpp_LDADD=
  109. t_cpp_SOURCES+= tests/cpp_test.cc
  110. t_cpp_LDADD+= ${CLIENT_LDADD}
  111. check_PROGRAMS+=t/cpp
  112. noinst_PROGRAMS+=t/cpp
  113. valgrind-cpp: t/cpp
  114. @$(VALGRIND_COMMAND) t/cpp
  115. # Test linking with C application
  116. t_c_SOURCES=
  117. t_c_LDADD=
  118. t_c_SOURCES+= tests/c_test.c
  119. t_c_LDADD+= ${CLIENT_LDADD}
  120. check_PROGRAMS+=t/c
  121. noinst_PROGRAMS+=t/c
  122. valgrind-c: t/c
  123. @$(VALGRIND_COMMAND) t/c
  124. gdb-c: t/c
  125. @$(GDB_COMMAND) t/c
  126. test-cycle: t/cycle gearmand/gearmand
  127. @t/cycle
  128. test-cli: t/cli gearmand/gearmand
  129. @t/cli
  130. test-gearmand: t/gearmand gearmand/gearmand
  131. @t/gearmand
  132. tests-blobslap_client: t/blobslap_client gearmand/gearmand
  133. @t/blobslap_client
  134. check-local:
  135. gdb-cli: t/cli gearmand/gearmand
  136. @$(GDB_COMMAND) t/cli
  137. gdb-blobslap_client: t/blobslap_client gearmand/gearmand
  138. @$(GDB_COMMAND) t/blobslap_client
  139. gdb-cycle: t/cycle gearmand/gearmand
  140. @$(GDB_COMMAND) t/cycle
  141. gdb-gearmand: t/gearmand gearmand/gearmand
  142. @$(GDB_COMMAND) t/gearmand
  143. valgrind-cli: t/cli gearmand/gearmand
  144. @$(VALGRIND_COMMAND) t/cli
  145. valgrind-burnin: t/burnin_test gearmand/gearmand
  146. @$(VALGRIND_COMMAND) t/burnin_test
  147. valgrind-cycle: t/cycle gearmand/gearmand
  148. @$(VALGRIND_COMMAND) t/cycle
  149. valgrind-gearmand: t/gearmand gearmand/gearmand
  150. @$(VALGRIND_COMMAND) t/gearmand
  151. helgrind-client: t/client gearmand/gearmand
  152. @$(HELGRIND_COMMAND) t/client
  153. helgrind-burnin: t/burnin gearmand/gearmand
  154. @$(HELGRIND_COMMAND) t/burnin
  155. helgrind-cycle: t/cycle gearmand/gearmand
  156. @$(HELGRIND_COMMAND) t/cycle
  157. drd-cycle: t/cycle gearmand/gearmand
  158. @$(DRD_COMMAND) t/cycle
  159. include tests/ephemeral.am
  160. include tests/libdrizzle.am
  161. include tests/libmemcached.am
  162. include tests/postgres.am
  163. include tests/mysql.am
  164. include tests/sqlite.am
  165. include tests/tokyocabinet.am
  166. include tests/redis.am
  167. include tests/httpd.am
  168. include tests/perl/include.am
  169. bogus: