include.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2008 Brian Aker, Eric Day
  4. # All rights reserved.
  5. #
  6. # Use and distribution licensed under the BSD license. See
  7. # the COPYING file in the parent directory for full text.
  8. VALGRIND_COMMAND= $(LIBTOOL) --mode=execute valgrind --leak-check=yes --show-reachable=yes
  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_worker_set_reducer.h \
  17. tests/server_options.h \
  18. tests/task.h \
  19. tests/unique.h \
  20. tests/workers.h
  21. CLIENT_LDADD= \
  22. libtest/libtest.la \
  23. libtest/libserver.la \
  24. libgearman/libgearman.la
  25. CLEANFILES+= \
  26. tests/var/log/* \
  27. tests/var/tmp/*
  28. noinst_PROGRAMS+= \
  29. tests/burnin_test \
  30. tests/client_test \
  31. tests/cpp_test \
  32. tests/drizzle_test \
  33. tests/internals_test \
  34. tests/regression_test \
  35. tests/round_robin_test \
  36. tests/worker_test
  37. tests_client_test_SOURCES= \
  38. tests/client_test.cc \
  39. tests/do.cc \
  40. tests/do_background.cc \
  41. tests/execute.cc \
  42. tests/gearman_client_do_job_handle.cc \
  43. tests/gearman_worker_set_reducer.cc \
  44. tests/server_options.cc \
  45. tests/task.cc \
  46. tests/unique.cc \
  47. tests/workers.cc
  48. tests_client_test_LDADD= ${CLIENT_LDADD}
  49. tests_client_test_DEPENDENCIES= ${CLIENT_LDADD}
  50. tests_burnin_test_SOURCES= tests/burnin.cc
  51. tests_burnin_test_LDADD= ${CLIENT_LDADD}
  52. tests_internals_test_SOURCES= tests/internals.cc
  53. tests_internals_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  54. tests_internals_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la
  55. tests_regression_test_SOURCES= tests/regression.cc
  56. tests_regression_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  57. tests_round_robin_test_SOURCES= tests/round_robin.cc
  58. tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  59. tests_worker_test_SOURCES= tests/worker_test.cc
  60. tests_worker_test_LDADD= \
  61. ${CLIENT_LDADD} \
  62. libgearman/libgearmancore.la
  63. # Test linking with C++ application
  64. tests_cpp_test_SOURCES= tests/cpp_test.cc
  65. tests_cpp_test_LDADD= ${CLIENT_LDADD}
  66. test-burnin: tests/burnin_test
  67. @tests/burnin_test $(ARG1) $(ARG2)
  68. test-client: tests/client_test
  69. @tests/client_test $(ARG1) $(ARG2)
  70. test-round-robin: tests/round_robin_test
  71. @tests/round_robin_test $(ARG1) $(ARG2)
  72. test-worker: tests/worker_test
  73. @tests/worker_test $(ARG1) $(ARG2)
  74. test-internals:
  75. @tests/internals_test $(ARG1) $(ARG2)
  76. check-local: tests/var gearmand-test-args client-test libtest-tests
  77. libtest-tests: test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin
  78. gdb-client: ${noinst_PROGRAMS}
  79. $(LIBTOOL) --mode=execute gdb tests/client_test
  80. gdb-round-robin: ${noinst_PROGRAMS}
  81. $(LIBTOOL) --mode=execute gdb tests/round_robin_test
  82. gdb-worker: ${noinst_PROGRAMS}
  83. $(LIBTOOL) --mode=execute gdb tests/worker_test
  84. gdb-internals: ${noinst_PROGRAMS}
  85. $(LIBTOOL) --mode=execute gdb tests/internals_test
  86. gdb-burnin: ${noinst_PROGRAMS}
  87. $(LIBTOOL) --mode=execute gdb tests/burnin_test
  88. valgrind-client:
  89. $(VALGRIND_COMMAND) tests/client_test $(ARG1) $(ARG2)
  90. valgrind-round-robin:
  91. $(VALGRIND_COMMAND) tests/round_robin_test $(ARG1) $(ARG2)
  92. valgrind-worker: tests/worker_test
  93. $(VALGRIND_COMMAND) tests/worker_test $(ARG1) $(ARG2)
  94. valgrind-internals:
  95. $(VALGRIND_COMMAND) tests/internals_test $(ARG1) $(ARG2)
  96. tests/var: tests/var/log tests/var/tmp
  97. $(mkdir_p) tests/var
  98. tests/var/log:
  99. $(mkdir_p) tests/var/log
  100. tests/var/tmp:
  101. $(mkdir_p) tests/var/tmp
  102. valgrind: ${noinst_PROGRAMS} valgrind-client valgrind-round-robin valgrind-worker valgrind-internals valgrind-sqlite valgrind-tokyocabinet
  103. include tests/httpd.am
  104. include tests/libdrizzle.am
  105. include tests/libmemcached.am
  106. include tests/postgres.am
  107. include tests/sqlite.am
  108. include tests/tokyocabinet.am
  109. bogus: