include.am 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 --malloc-fill=A5 --free-fill=DE --track-fds=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_execute_map_reduce.h \
  17. tests/protocol.h \
  18. tests/server_options.h \
  19. tests/task.h \
  20. tests/unique.h \
  21. tests/workers.h
  22. CLIENT_LDADD= \
  23. libtest/libtest.la \
  24. libtest/libserver.la \
  25. libgearman/libgearman.la
  26. CLEANFILES+= \
  27. tests/var/log/* \
  28. tests/var/tmp/*
  29. noinst_PROGRAMS+= \
  30. tests/burnin_test \
  31. tests/client_test \
  32. tests/cpp_test \
  33. tests/drizzle_test \
  34. tests/internals_test \
  35. tests/regression_test \
  36. tests/round_robin_test \
  37. tests/worker_test
  38. tests_client_test_SOURCES= \
  39. tests/client_test.cc \
  40. tests/do.cc \
  41. tests/do_background.cc \
  42. tests/execute.cc \
  43. tests/gearman_client_do_job_handle.cc \
  44. tests/gearman_execute_map_reduce.cc \
  45. tests/protocol.cc \
  46. tests/server_options.cc \
  47. tests/task.cc \
  48. tests/unique.cc \
  49. tests/workers.cc
  50. tests_client_test_LDADD= ${CLIENT_LDADD}
  51. tests_client_test_DEPENDENCIES= ${CLIENT_LDADD}
  52. tests_burnin_test_SOURCES= tests/burnin.cc
  53. tests_burnin_test_LDADD= ${CLIENT_LDADD}
  54. tests_internals_test_SOURCES= tests/internals.cc
  55. tests_internals_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  56. tests_internals_test_DEPENDENCIES= ${CLIENT_LDADD} libgearman/libgearmancore.la
  57. tests_regression_test_SOURCES= tests/regression.cc
  58. tests_regression_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  59. tests_round_robin_test_SOURCES= tests/round_robin.cc
  60. tests_round_robin_test_LDADD= ${CLIENT_LDADD} libgearman/libgearmancore.la
  61. tests_worker_test_SOURCES= tests/worker_test.cc
  62. tests_worker_test_LDADD= \
  63. ${CLIENT_LDADD} \
  64. libgearman/libgearmancore.la
  65. # Test linking with C++ application
  66. tests_cpp_test_SOURCES= tests/cpp_test.cc
  67. tests_cpp_test_LDADD= ${CLIENT_LDADD}
  68. test-burnin: tests/burnin_test
  69. @tests/burnin_test $(ARG1) $(ARG2)
  70. test-client: tests/client_test
  71. @tests/client_test $(ARG1) $(ARG2)
  72. test-round-robin: tests/round_robin_test
  73. @tests/round_robin_test $(ARG1) $(ARG2)
  74. test-worker: tests/worker_test
  75. @tests/worker_test $(ARG1) $(ARG2)
  76. test-internals: tests/internals_test
  77. @tests/internals_test $(ARG1) $(ARG2)
  78. check-local: tests/var gearmand-test-args client-test libtest-tests
  79. libtest-tests: test-client test-round-robin test-worker test-internals test-libmemcached test-sqlite test-tokyocabinet test-burnin
  80. gdb-client: ${noinst_PROGRAMS}
  81. @$(LIBTOOL) --mode=execute gdb tests/client_test
  82. gdb-round-robin: ${noinst_PROGRAMS}
  83. @$(LIBTOOL) --mode=execute gdb tests/round_robin_test
  84. gdb-worker: ${noinst_PROGRAMS}
  85. @$(LIBTOOL) --mode=execute gdb tests/worker_test
  86. gdb-internals: ${noinst_PROGRAMS}
  87. @$(LIBTOOL) --mode=execute gdb tests/internals_test
  88. gdb-burnin: ${noinst_PROGRAMS}
  89. @$(LIBTOOL) --mode=execute gdb tests/burnin_test
  90. valgrind-client:
  91. @$(VALGRIND_COMMAND) tests/client_test $(ARG1) $(ARG2)
  92. valgrind-round-robin:
  93. @$(VALGRIND_COMMAND) tests/round_robin_test $(ARG1) $(ARG2)
  94. valgrind-worker: tests/worker_test
  95. @$(VALGRIND_COMMAND) tests/worker_test $(ARG1) $(ARG2)
  96. valgrind-internals: tests/internals_test
  97. @$(VALGRIND_COMMAND) tests/internals_test $(ARG1) $(ARG2)
  98. valgrind-burnin: tests/burnin_test
  99. @$(VALGRIND_COMMAND) tests/burnin_test $(ARG1) $(ARG2)
  100. tests/var: tests/var/log tests/var/tmp
  101. $(mkdir_p) tests/var
  102. tests/var/log:
  103. $(mkdir_p) tests/var/log
  104. tests/var/tmp:
  105. $(mkdir_p) tests/var/tmp
  106. valgrind: ${noinst_PROGRAMS} valgrind-client valgrind-round-robin valgrind-worker valgrind-internals valgrind-sqlite valgrind-tokyocabinet valgrind-burnin
  107. include tests/httpd.am
  108. include tests/libdrizzle.am
  109. include tests/libmemcached.am
  110. include tests/postgres.am
  111. include tests/sqlite.am
  112. include tests/tokyocabinet.am
  113. bogus: