tokyocabinet.am 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2011 Data Differential, http://datadifferential.com/
  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. #
  9. # Included from Top Level Makefile.am
  10. # All paths should be given relative to the root
  11. #
  12. test-tokyocabinet: test-tokyocabinet-args test-tokyocabinet-queue
  13. if HAVE_LIBTOKYOCABINET
  14. TOKYOCABINET_TEST= tests/tokyocabinet_test
  15. TOKYOCABINET_RM= @rm -f tests/gearman.tcb
  16. CLEANFILES+= tests/gearman.tcb
  17. noinst_PROGRAMS += tests/tokyocabinet_test
  18. endif
  19. tests_tokyocabinet_test_SOURCES= tests/tokyocabinet_test.cc tests/basic.cc
  20. tests_tokyocabinet_test_LDADD= ${CLIENT_LDADD}
  21. test-tokyocabinet-args: gearmand/gearmand
  22. if HAVE_LIBTOKYOCABINET
  23. @gearmand/gearmand --check-args --libtokyocabinet-file=tmp/file --libtokyocabinet-optimize
  24. endif
  25. test-tokyocabinet-queue:
  26. if HAVE_LIBTOKYOCABINET
  27. $(TOKYOCABINET_TEST) $(ARG1) $(ARG2)
  28. $(TOKYOCABINET_RM)
  29. endif
  30. valgrind-tokyocabinet:
  31. if HAVE_LIBTOKYOCABINET
  32. $(VALGRIND_COMMAND) $(TOKYOCABINET_TEST) $(ARG1) $(ARG2)
  33. $(TOKYOCABINET_RM)
  34. endif