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
13CLEANFILES+= tests/gearman.sql tests/gearman.sql-journal tests/gearmand.log*
14
15if HAVE_LIBSQLITE3
16tests_sqlite_test_CFLAGS=
17tests_sqlite_test_CXXFLAGS=
18tests_sqlite_test_LDADD=
19tests_sqlite_test_SOURCES=
20
21tests_sqlite_test_CFLAGS+= @SQLITE3_CFLAGS@
22tests_sqlite_test_CXXFLAGS+= @SQLITE3_CFLAGS@
23tests_sqlite_test_LDADD+= @SQLITE3_LDFLAGS@
24tests_sqlite_test_SOURCES+= tests/basic.cc
25tests_sqlite_test_SOURCES+= tests/sqlite_test.cc
26tests_sqlite_test_LDADD+= $(CLIENT_LDADD)
27check_PROGRAMS+= tests/sqlite_test
28noinst_PROGRAMS+= tests/sqlite_test
29
30test-sqlite: tests/sqlite_test gearmand/gearmand
31	@tests/sqlite_test
32
33gdb-sqlite: tests/sqlite_test gearmand/gearmand
34	@$(GDB_COMMAND) tests/sqlite_test
35
36helgrind-sqlite: tests/sqlite_test gearmand/gearmand
37	@$(HELGRIND_COMMAND) tests/sqlite_test
38
39valgrind-sqlite: tests/sqlite_test gearmand/gearmand
40	@$(VALGRIND_COMMAND) tests/sqlite_test
41endif
42