include.am 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2011 Data Differential, http://datadifferential.com/
  4. # Copyright (C) 2008 Brian Aker, Eric Day
  5. # All rights reserved.
  6. #
  7. # Use and distribution licensed under the BSD license. See
  8. # the COPYING file in the parent directory for full text.
  9. noinst_HEADERS+= \
  10. tests/basic.h \
  11. tests/client.h \
  12. tests/context.h \
  13. tests/do.h \
  14. tests/do_background.h \
  15. tests/execute.h \
  16. tests/gearman_client_do_job_handle.h \
  17. tests/gearman_execute_partition.h \
  18. tests/limits.h \
  19. tests/protocol.h \
  20. tests/regression.h \
  21. tests/server_options.h \
  22. tests/start_worker.h \
  23. tests/task.h \
  24. tests/unique.h \
  25. tests/worker.h \
  26. tests/workers.h \
  27. tests/workers_v1.h
  28. noinst_LTLIBRARIES+= tests/libstartworker.la
  29. tests_libstartworker_la_CXXFLAGS=
  30. tests_libstartworker_la_LIBADD=
  31. tests_libstartworker_la_CXXFLAGS+= $(PTHREAD_CFLAGS)
  32. tests_libstartworker_la_CXXFLAGS+= $(BOOST_CPPFLAGS)
  33. tests_libstartworker_la_LIBADD+= $(BOOST_THREAD_LDFLAGS)
  34. tests_libstartworker_la_LIBADD+= $(PTHREAD_LIBS)
  35. tests_libstartworker_la_LIBADD+= $(BOOST_THREAD_LIBS)
  36. tests_libstartworker_la_LIBADD+= libgearman/libgearman.la
  37. tests_libstartworker_la_SOURCES= tests/start_worker.cc
  38. tests_libstartworker_la_SOURCES+= util/instance.cc
  39. tests_libstartworker_la_SOURCES+= util/operation.cc
  40. CLIENT_LDADD= \
  41. libgearman/libgearman.la \
  42. libtest/libtest.la \
  43. tests/libstartworker.la
  44. tests_cycle_SOURCES= tests/cycle.cc
  45. tests_cycle_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  46. tests_cycle_LDADD= ${CLIENT_LDADD}
  47. check_PROGRAMS+=tests/cycle
  48. noinst_PROGRAMS+=tests/cycle
  49. tests_blobslap_client_SOURCES= tests/blobslap_client.cc
  50. tests_blobslap_client_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  51. tests_blobslap_client_LDADD= ${CLIENT_LDADD}
  52. noinst_PROGRAMS+= tests/blobslap_client
  53. tests_cli_SOURCES= tests/cli.cc
  54. tests_cli_SOURCES+= tests/libgearman-1.0/workers.cc
  55. tests_cli_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand bin/gearman bin/gearadmin
  56. tests_cli_LDADD= ${CLIENT_LDADD}
  57. check_PROGRAMS+= tests/cli
  58. noinst_PROGRAMS+= tests/cli
  59. tests_gearmand_SOURCES= tests/gearmand.cc
  60. tests_gearmand_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  61. tests_gearmand_LDADD= ${CLIENT_LDADD}
  62. check_PROGRAMS+= tests/gearmand
  63. noinst_PROGRAMS+= tests/gearmand
  64. include tests/libgearman-1.0/include.am
  65. tests_round_robin_test_SOURCES= tests/round_robin.cc
  66. tests_round_robin_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la gearmand/gearmand
  67. tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  68. check_PROGRAMS+= tests/round_robin_test
  69. noinst_PROGRAMS+= tests/round_robin_test
  70. tests_hostileworker_test_SOURCES=
  71. tests_hostileworker_test_DEPENDENCIES=
  72. tests_hostileworker_test_CXXFLAGS=
  73. tests_hostileworker_test_LDADD=
  74. if TARGET_LINUX
  75. tests_hostileworker_test_CXXFLAGS+= -DHAVE_LIBHOSTILE=1
  76. tests_hostileworker_test_DEPENDENCIES+= libhostile/libhostile.la
  77. tests_hostileworker_test_LDADD+= libhostile/libhostile.la
  78. tests_hostileworker_test_LDADD+= $(DL_LIB)
  79. tests_hostileworker_test_LDADD+= $(RT_LIB)
  80. endif
  81. tests_hostileworker_test_SOURCES+= tests/stress_worker.cc
  82. tests_hostileworker_test_SOURCES+= tests/libgearman-1.0/workers.cc
  83. tests_hostileworker_test_DEPENDENCIES+= ${CLIENT_LDADD} gearmand/gearmand
  84. tests_hostileworker_test_LDADD+= ${CLIENT_LDADD}
  85. check_PROGRAMS+=tests/hostileworker_test
  86. noinst_PROGRAMS+=tests/hostileworker_test
  87. test-hostile: tests/hostileworker_test gearmand/gearmand
  88. @tests/hostileworker_test
  89. gdb-hostile: tests/hostileworker_test gearmand/gearmand
  90. @$(GDB_COMMAND) tests/hostileworker_test
  91. # Test linking with C++ application
  92. tests_cpp_test_SOURCES= tests/cpp_test.cc
  93. tests_cpp_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  94. tests_cpp_test_LDADD= ${CLIENT_LDADD}
  95. check_PROGRAMS+=tests/cpp_test
  96. noinst_PROGRAMS+=tests/cpp_test
  97. # Test linking with C application
  98. tests_c_test_SOURCES= tests/c_test.c
  99. tests_c_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  100. tests_c_test_LDADD= ${CLIENT_LDADD}
  101. check_PROGRAMS+=tests/c_test
  102. noinst_PROGRAMS+=tests/c_test
  103. tests_burnin_test_SOURCES= tests/burnin.cc
  104. tests_burnin_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  105. tests_burnin_test_LDADD= ${CLIENT_LDADD}
  106. check_PROGRAMS+=tests/burnin_test
  107. noinst_PROGRAMS+=tests/burnin_test
  108. test-burnin: tests/burnin_test gearmand/gearmand
  109. @tests/burnin_test
  110. test-cycle: tests/cycle gearmand/gearmand
  111. @tests/cycle
  112. test-cli: tests/cli gearmand/gearmand
  113. @tests/cli
  114. test-gearmand: tests/gearmand gearmand/gearmand
  115. @tests/gearmand
  116. tests-blobslap_client: tests/blobslap_client gearmand/gearmand
  117. @tests/blobslap_client
  118. test-round-robin: tests/round_robin_test gearmand/gearmand
  119. @tests/round_robin_test
  120. test-worker: tests/worker_test gearmand/gearmand
  121. @tests/worker_test
  122. check-local:
  123. gdb-round-robin: tests/round_robin_test gearmand/gearmand
  124. @$(GDB_COMMAND) tests/round_robin_test
  125. gdb-burnin: tests/burnin_test gearmand/gearmand
  126. @$(GDB_COMMAND) tests/burnin_test
  127. gdb-cli: tests/cli gearmand/gearmand
  128. @$(GDB_COMMAND) tests/cli
  129. gdb-blobslap_client: tests/blobslap_client gearmand/gearmand
  130. @$(GDB_COMMAND) tests/blobslap_client
  131. gdb-cycle: tests/cycle gearmand/gearmand
  132. @$(GDB_COMMAND) tests/cycle
  133. valgrind-cli: tests/cli gearmand/gearmand
  134. @$(VALGRIND_COMMAND) tests/cli gearmand/gearmand
  135. valgrind-round-robin: tests/round_robin_test gearmand/gearmand
  136. @$(VALGRIND_COMMAND) tests/round_robin_test
  137. valgrind-worker: tests/worker_test gearmand/gearmand
  138. @$(VALGRIND_COMMAND) tests/worker_test
  139. valgrind-burnin: tests/burnin_test gearmand/gearmand
  140. @$(VALGRIND_COMMAND) tests/burnin_test
  141. valgrind-cycle: tests/cycle gearmand/gearmand
  142. @$(VALGRIND_COMMAND) tests/cycle
  143. helgrind-client: tests/client_test gearmand/gearmand
  144. @$(HELGRIND_COMMAND) tests/client_test
  145. helgrind-round-robin: tests/round_robin_test gearmand/gearmand
  146. @$(HELGRIND_COMMAND) tests/round_robin_test
  147. helgrind-worker: tests/worker_test gearmand/gearmand
  148. @$(HELGRIND_COMMAND) tests/worker_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/sqlite.am
  160. include tests/tokyocabinet.am
  161. include tests/redis.am
  162. include tests/httpd.am
  163. bogus: