sqlite.am 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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-sqlite: tests-sqlite-args test-sqlite-queue
  13. tests-sqlite-args: gearmand/gearmand
  14. if HAVE_LIBSQLITE3
  15. @gearmand/gearmand --check-args --libsqlite3-db=tmp/schema --libsqlite3-table=tmp/table
  16. endif
  17. if HAVE_LIBSQLITE3
  18. SQLITE_TEST= tests/sqlite_test
  19. CLEANFILES+= tests/gearman.sql tests/gearman.sql-journal tests/gearmand.log*
  20. noinst_PROGRAMS += tests/sqlite_test
  21. endif
  22. tests_sqlite_test_SOURCES= \
  23. tests/basic.cc \
  24. tests/sqlite_test.cc
  25. tests_sqlite_test_LDADD= ${CLIENT_LDADD}
  26. test-sqlite-queue:
  27. if HAVE_LIBSQLITE3
  28. $(SQLITE_TEST) $(ARG1) $(ARG2)
  29. endif
  30. gdb-sqlite:
  31. if HAVE_LIBSQLITE3
  32. $(LIBTOOL) --mode=execute gdb tests/sqlite_test
  33. endif
  34. valgrind-sqlite:
  35. if HAVE_LIBSQLITE3
  36. $(VALGRIND_COMMAND) $(SQLITE_TEST) $(ARG1) $(ARG2)
  37. endif