include.am 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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/ports.h \
  20. tests/protocol.h \
  21. tests/regression.h \
  22. tests/server_options.h \
  23. tests/start_worker.h \
  24. tests/task.h \
  25. tests/unique.h \
  26. tests/worker.h \
  27. tests/workers.h \
  28. tests/workers_v1.h
  29. noinst_LTLIBRARIES+= tests/libstartworker.la
  30. tests_libstartworker_la_CXXFLAGS=
  31. tests_libstartworker_la_CXXFLAGS+= $(PTHREAD_CFLAGS)
  32. tests_libstartworker_la_CXXFLAGS+= $(BOOST_CPPFLAGS)
  33. tests_libstartworker_la_LIBADD= $(PTHREAD_LIBS)
  34. tests_libstartworker_la_LIBADD+= $(BOOST_THREAD_LIBS)
  35. tests_libstartworker_la_SOURCES= tests/start_worker.cc
  36. tests_libstartworker_la_SOURCES+= util/instance.cc
  37. tests_libstartworker_la_SOURCES+= util/operation.cc
  38. CLIENT_LDADD= \
  39. libgearman/libgearman.la \
  40. libtest/libtest.la \
  41. tests/libstartworker.la
  42. tests_killall_SOURCES= tests/killall.cc
  43. tests_killall_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  44. tests_killall_LDADD= ${CLIENT_LDADD}
  45. check_PROGRAMS+=tests/killall
  46. noinst_PROGRAMS+=tests/killall
  47. tests_cycle_SOURCES= tests/cycle.cc
  48. tests_cycle_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  49. tests_cycle_LDADD= ${CLIENT_LDADD}
  50. check_PROGRAMS+=tests/cycle
  51. noinst_PROGRAMS+=tests/cycle
  52. tests_blobslap_client_SOURCES= tests/blobslap_client.cc
  53. tests_blobslap_client_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  54. tests_blobslap_client_LDADD= ${CLIENT_LDADD}
  55. noinst_PROGRAMS+= tests/blobslap_client
  56. tests_cli_SOURCES= tests/cli.cc
  57. tests_cli_SOURCES+= tests/libgearman-1.0/workers.cc
  58. tests_cli_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand bin/gearman bin/gearadmin
  59. tests_cli_LDADD= ${CLIENT_LDADD}
  60. check_PROGRAMS+= tests/cli
  61. noinst_PROGRAMS+= tests/cli
  62. tests_gearmand_SOURCES= tests/gearmand.cc
  63. tests_gearmand_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  64. tests_gearmand_LDADD= ${CLIENT_LDADD}
  65. check_PROGRAMS+= tests/gearmand
  66. noinst_PROGRAMS+= tests/gearmand
  67. include tests/libgearman-1.0/include.am
  68. tests_round_robin_test_SOURCES= tests/round_robin.cc
  69. tests_round_robin_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la gearmand/gearmand
  70. tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  71. check_PROGRAMS+= tests/round_robin_test
  72. noinst_PROGRAMS+= tests/round_robin_test
  73. if TARGET_LINUX
  74. tests_hostileworker_test_SOURCES= tests/stress_worker.cc
  75. tests_hostileworker_test_SOURCES+= tests/libgearman-1.0/workers.cc
  76. tests_hostileworker_test_DEPENDENCIES= ${CLIENT_LDADD} libhostile/libhostile.la gearmand/gearmand
  77. tests_hostileworker_test_LDADD= ${CLIENT_LDADD}
  78. tests_hostileworker_test_LDADD+= libhostile/libhostile.la
  79. tests_hostileworker_test_LDADD+= -ldl
  80. check_PROGRAMS+=tests/hostileworker_test
  81. noinst_PROGRAMS+=tests/hostileworker_test
  82. valgrind-hostileworker: tests/hostileworker_test gearmand/gearmand
  83. @$(VALGRIND_COMMAND) tests/hostileworker_test
  84. endif
  85. # Test linking with C++ application
  86. tests_cpp_test_SOURCES= tests/cpp_test.cc
  87. tests_cpp_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  88. tests_cpp_test_LDADD= ${CLIENT_LDADD}
  89. check_PROGRAMS+=tests/cpp_test
  90. noinst_PROGRAMS+=tests/cpp_test
  91. # Test linking with C application
  92. tests_c_test_SOURCES= tests/c_test.c
  93. tests_c_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  94. tests_c_test_LDADD= ${CLIENT_LDADD}
  95. check_PROGRAMS+=tests/c_test
  96. noinst_PROGRAMS+=tests/c_test
  97. tests_burnin_test_SOURCES= tests/burnin.cc
  98. tests_burnin_test_DEPENDENCIES= ${CLIENT_LDADD} gearmand/gearmand
  99. tests_burnin_test_LDADD= ${CLIENT_LDADD}
  100. check_PROGRAMS+=tests/burnin_test
  101. noinst_PROGRAMS+=tests/burnin_test
  102. test-burnin: tests/burnin_test gearmand/gearmand
  103. @tests/burnin_test
  104. test-cycle: tests/cycle gearmand/gearmand
  105. @tests/cycle
  106. test-cli: tests/cli gearmand/gearmand
  107. @tests/cli
  108. test-gearmand: tests/gearmand gearmand/gearmand
  109. @tests/gearmand
  110. tests-blobslap_client: tests/blobslap_client gearmand/gearmand
  111. @tests/blobslap_client
  112. test-round-robin: tests/round_robin_test gearmand/gearmand
  113. @tests/round_robin_test
  114. test-worker: tests/worker_test gearmand/gearmand
  115. @tests/worker_test
  116. check-local:
  117. gdb-round-robin: tests/round_robin_test gearmand/gearmand
  118. @$(GDB_COMMAND) tests/round_robin_test
  119. gdb-burnin: tests/burnin_test gearmand/gearmand
  120. @$(GDB_COMMAND) tests/burnin_test
  121. gdb-cli: tests/cli gearmand/gearmand
  122. @$(GDB_COMMAND) tests/cli
  123. gdb-blobslap_client: tests/blobslap_client gearmand/gearmand
  124. @$(GDB_COMMAND) tests/blobslap_client
  125. gdb-cycle: tests/cycle gearmand/gearmand
  126. @$(GDB_COMMAND) tests/cycle
  127. valgrind-cli: tests/cli gearmand/gearmand
  128. @$(VALGRIND_COMMAND) tests/cli gearmand/gearmand
  129. valgrind-round-robin: tests/round_robin_test gearmand/gearmand
  130. @$(VALGRIND_COMMAND) tests/round_robin_test
  131. valgrind-worker: tests/worker_test gearmand/gearmand
  132. @$(VALGRIND_COMMAND) tests/worker_test
  133. valgrind-burnin: tests/burnin_test gearmand/gearmand
  134. @$(VALGRIND_COMMAND) tests/burnin_test
  135. valgrind-cycle: tests/cycle gearmand/gearmand
  136. @$(VALGRIND_COMMAND) tests/cycle
  137. helgrind-client: tests/client_test gearmand/gearmand
  138. @$(HELGRIND_COMMAND) tests/client_test
  139. helgrind-round-robin: tests/round_robin_test gearmand/gearmand
  140. @$(HELGRIND_COMMAND) tests/round_robin_test
  141. helgrind-worker: tests/worker_test gearmand/gearmand
  142. @$(HELGRIND_COMMAND) tests/worker_test
  143. helgrind-burnin: tests/burnin_test gearmand/gearmand
  144. @$(HELGRIND_COMMAND) tests/burnin_test
  145. helgrind-cycle: tests/cycle gearmand/gearmand
  146. @$(HELGRIND_COMMAND) tests/cycle
  147. drd-cycle: tests/cycle gearmand/gearmand
  148. @$(DRD_COMMAND) tests/cycle
  149. include tests/ephemeral.am
  150. include tests/libdrizzle.am
  151. include tests/libmemcached.am
  152. include tests/postgres.am
  153. include tests/sqlite.am
  154. include tests/tokyocabinet.am
  155. include tests/redis.am
  156. bogus: