include.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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/context.h \
  12. tests/do.h \
  13. tests/do_background.h \
  14. tests/execute.h \
  15. tests/gearman_client_do_job_handle.h \
  16. tests/gearman_execute_partition.h \
  17. tests/ports.h \
  18. tests/protocol.h \
  19. tests/regression.h \
  20. tests/server_options.h \
  21. tests/task.h \
  22. tests/unique.h \
  23. tests/workers.h \
  24. tests/workers_v1.h
  25. CLIENT_LDADD= \
  26. libtest/libtest.la \
  27. libtest/libserver.la \
  28. libgearman/libgearman.la
  29. noinst_PROGRAMS+= \
  30. tests/burnin_test \
  31. tests/client_test \
  32. tests/c_test \
  33. tests/cycle \
  34. tests/cpp_test \
  35. tests/drizzle_test \
  36. tests/internals_test \
  37. tests/round_robin_test \
  38. tests/worker_test
  39. tests_client_test_SOURCES= \
  40. tests/client_test.cc \
  41. tests/do.cc \
  42. tests/do_background.cc \
  43. tests/execute.cc \
  44. tests/gearman_client_do_job_handle.cc \
  45. tests/gearman_execute_partition.cc \
  46. tests/protocol.cc \
  47. tests/server_options.cc \
  48. tests/task.cc \
  49. tests/unique.cc \
  50. tests/workers.cc \
  51. tests/workers_v1.cc
  52. tests_client_test_LDADD= ${CLIENT_LDADD}
  53. tests_client_test_DEPENDENCIES= ${CLIENT_LDADD}
  54. tests_burnin_test_SOURCES= tests/burnin.cc
  55. tests_burnin_test_LDADD= ${CLIENT_LDADD}
  56. tests_cycle_SOURCES= tests/cycle.cc
  57. tests_cycle_LDADD= ${CLIENT_LDADD}
  58. tests_gearadmin_SOURCES= tests/gearadmin.cc
  59. tests_gearadmin_LDADD= ${CLIENT_LDADD}
  60. check_PROGRAMS+= tests/gearadmin
  61. tests_internals_test_SOURCES= \
  62. tests/internals.cc \
  63. tests/regression.cc
  64. tests_internals_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  65. tests_internals_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la
  66. tests_round_robin_test_SOURCES= tests/round_robin.cc
  67. tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  68. tests_worker_test_SOURCES= tests/worker_test.cc
  69. tests_worker_test_LDADD= \
  70. ${CLIENT_LDADD} \
  71. libgearman/libgearmancore.la
  72. # Test linking with C++ application
  73. tests_cpp_test_SOURCES= tests/cpp_test.cc
  74. tests_cpp_test_LDADD= ${CLIENT_LDADD}
  75. # Test linking with C application
  76. tests_c_test_SOURCES= tests/c_test.c
  77. tests_c_test_LDADD= ${CLIENT_LDADD}
  78. test-burnin: tests/burnin_test
  79. @tests/burnin_test $(ARG1) $(ARG2)
  80. test-cycle: tests/cycle
  81. @tests/cycle $(ARG1) $(ARG2)
  82. test-gearadmin: tests/gearadmin
  83. @tests/gearadmin $(ARG1) $(ARG2)
  84. test-client: tests/client_test
  85. @tests/client_test $(ARG1) $(ARG2)
  86. test-round-robin: tests/round_robin_test
  87. @tests/round_robin_test $(ARG1) $(ARG2)
  88. test-worker: tests/worker_test
  89. @tests/worker_test $(ARG1) $(ARG2)
  90. test-internals: tests/internals_test
  91. @tests/internals_test $(ARG1) $(ARG2)
  92. check-local: tests/var gearmand-test-args client-test libtest-tests benchmark-test
  93. libtest-tests: test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin
  94. gdb-client: ${noinst_PROGRAMS}
  95. @$(LIBTOOL) --mode=execute gdb tests/client_test
  96. gdb-round-robin: ${noinst_PROGRAMS}
  97. @$(LIBTOOL) --mode=execute gdb tests/round_robin_test
  98. gdb-worker: ${noinst_PROGRAMS}
  99. @$(LIBTOOL) --mode=execute gdb tests/worker_test
  100. gdb-internals: ${noinst_PROGRAMS}
  101. @$(LIBTOOL) --mode=execute gdb tests/internals_test
  102. gdb-burnin: ${noinst_PROGRAMS}
  103. @$(LIBTOOL) --mode=execute gdb tests/burnin_test
  104. gdb-cycle: ${noinst_PROGRAMS}
  105. @$(LIBTOOL) --mode=execute gdb tests/cycle
  106. gdb-gearadmin: ${noinst_PROGRAMS}
  107. @$(LIBTOOL) --mode=execute gdb tests/gearadmin
  108. valgrind-client:
  109. @$(VALGRIND_COMMAND) tests/client_test $(ARG1) $(ARG2)
  110. valgrind-round-robin:
  111. @$(VALGRIND_COMMAND) tests/round_robin_test $(ARG1) $(ARG2)
  112. valgrind-worker: tests/worker_test
  113. @$(VALGRIND_COMMAND) tests/worker_test $(ARG1) $(ARG2)
  114. valgrind-internals: tests/internals_test
  115. @$(VALGRIND_COMMAND) tests/internals_test $(ARG1) $(ARG2)
  116. valgrind-burnin: tests/burnin_test
  117. @$(VALGRIND_COMMAND) tests/burnin_test $(ARG1) $(ARG2)
  118. valgrind-gearadmin: tests/gearadmin
  119. @$(VALGRIND_COMMAND) tests/gearadmin $(ARG1) $(ARG2)
  120. valgrind-cycle: tests/cycle
  121. @$(VALGRIND_COMMAND) tests/cycle $(ARG1) $(ARG2)
  122. valgrind: ${noinst_PROGRAMS} valgrind-gearadmin valgrind-cycle valgrind-client valgrind-round-robin valgrind-worker valgrind-internals valgrind-sqlite valgrind-tokyocabinet valgrind-burnin
  123. include tests/httpd.am
  124. include tests/libdrizzle.am
  125. include tests/libmemcached.am
  126. include tests/postgres.am
  127. include tests/sqlite.am
  128. include tests/tokyocabinet.am
  129. bogus: