include.am 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2011 DataDifferential
  4. # Copyright (C) 2009 Brian Aker, Eric Day, Monty Taylor
  5. # Copyright (C) 2008 Brian Aker, Eric Day
  6. #
  7. # All rights reserved.
  8. #
  9. # Use and distribution licensed under the BSD license. See
  10. # the COPYING file in the parent directory for full text.
  11. #
  12. # Included from Top Level Makefile.am
  13. # All paths should be given relative to the root
  14. noinst_HEADERS+= bin/arguments.h
  15. noinst_HEADERS+= bin/error.h
  16. noinst_HEADERS+= bin/function.h
  17. bin_PROGRAMS+= bin/gearman
  18. bin_PROGRAMS+= bin/gearadmin
  19. bin_gearadmin_SOURCES=
  20. bin_gearadmin_SOURCES+= bin/gearadmin.cc
  21. bin_gearadmin_SOURCES+= util/instance.cc
  22. bin_gearadmin_SOURCES+= util/operation.cc
  23. bin_gearadmin_LDADD=
  24. bin_gearadmin_LDADD+= @BOOST_PROGRAM_OPTIONS_LIB@
  25. bin_gearadmin_LDFLAGS=
  26. if ENABLE_SSL
  27. if ENABLE_WOLFSSL
  28. bin_gearadmin_LDADD+= @WOLFSSL_LIB@
  29. bin_gearadmin_LDFLAGS+= @WOLFSSL_LDFLAGS@
  30. else
  31. if ENABLE_OPENSSL
  32. bin_gearadmin_LDADD+= @OPENSSL_LIBS@
  33. bin_gearadmin_LDFLAGS+= @OPENSSL_LDFLAGS@
  34. endif
  35. endif
  36. endif
  37. bin_gearman_SOURCES=
  38. bin_gearman_SOURCES+= bin/arguments.cc
  39. bin_gearman_SOURCES+= bin/function.cc
  40. bin_gearman_SOURCES+= bin/gearman.cc
  41. bin_gearman_SOURCES+= bin/error.cc
  42. bin_gearman_SOURCES+= util/pidfile.cc
  43. bin_gearman_LDADD= libgearman/libgearman.la
  44. GEARMAN_CLIENT_TEST= bin/gearman
  45. GEARMAN_VALGRIND_CLIENT_TEST= $(VALGRIND_COMMAND) bin/gearman
  46. GEARMAN_PIDFILE = ${abs_top_builddir}/tests/var/tmp/Xugear.pid
  47. GEARMAND_PIDFILE = ${abs_top_builddir}/tests/var/tmp/Xugearmand.pid
  48. GEARMAND_PORT = 5999
  49. client-test: client-test-basic
  50. client-test-basic: $(GEARMAN_CLIENT_TEST)
  51. @$(GEARMAN_CLIENT_TEST) -H 2>&1 > /dev/null
  52. @$(GEARMAN_CLIENT_TEST) -w -f true -d -i $(GEARMAN_PIDFILE) -- false
  53. @libtest/wait $(GEARMAN_PIDFILE)
  54. @cat $(GEARMAN_PIDFILE) | xargs kill
  55. client-test-wc: $(GEARMAN_CLIENT_TEST)
  56. @gearmand/gearmand --port=$(GEARMAND_PORT) --daemon --pid-file=$(GEARMAND_PIDFILE)
  57. @echo "1" > $(GEARMAN_TMP)/test_file
  58. @$(GEARMAN_CLIENT_TEST) -w -f wc -d -i $(GEARMAN_PIDFILE) -- wc -l
  59. @$(GEARMAN_CLIENT_TEST) -f wc < $(GEARMAN_TMP)/test_file > $(GEARMAN_TMP)/out_file
  60. @diff -q $(GEARMAN_TMP)/test_file $(GEARMAN_TMP)/out_file
  61. @rm $(GEARMAN_TMP)/test_file $(GEARMAN_TMP)/out_file
  62. @libtest/wait $(GEARMAN_PIDFILE)
  63. @libtest/wait $(GEARMAND_PIDFILE)
  64. @cat $(GEARMAN_PIDFILE) | xargs kill
  65. @cat $(GEARMAND_PIDFILE) | xargs kill
  66. client-test-lp738917: $(GEARMAN_CLIENT_TEST)
  67. @gearmand/gearmand --port=$(GEARMAND_PORT) --daemon --pid-file=$(GEARMAND_PIDFILE)
  68. @echo "1" > $(GEARMAN_TMP)/test_file
  69. @$(GEARMAN_CLIENT_TEST) -w -f wc -d -i $(GEARMAN_PIDFILE) -- wc -l
  70. @$(GEARMAN_CLIENT_TEST) -f wc < $(GEARMAN_TMP)/test_file > $(GEARMAN_TMP)/out_file
  71. @$(GEARMAN_CLIENT_TEST) -f wc < $(GEARMAN_TMP)/test_file > $(GEARMAN_TMP)/out_file
  72. @$(GEARMAN_CLIENT_TEST) -f wc < $(GEARMAN_TMP)/test_file > $(GEARMAN_TMP)/out_file
  73. @diff -q $(GEARMAN_TMP)/test_file $(GEARMAN_TMP)/out_file
  74. @rm $(GEARMAN_TMP)/test_file $(GEARMAN_TMP)/out_file
  75. @libtest/wait $(GEARMAN_PIDFILE)
  76. @libtest/wait $(GEARMAND_PIDFILE)
  77. @cat $(GEARMAN_PIDFILE) | xargs kill
  78. @cat $(GEARMAND_PIDFILE) | xargs kill
  79. valgrind-client-test: $(GEARMAN_CLIENT_TEST)
  80. @$(GEARMAN_VALGRIND_CLIENT_TEST) -H 2>&1 > /dev/null
  81. @$(GEARMAN_CLIENT_TEST) -w -f true -d -i $(GEARMAN_PIDFILE) -- false
  82. @libtest/wait $(GEARMAN_PIDFILE)
  83. @cat $(GEARMAN_PIDFILE) | xargs kill