Makefile.am 620 Bytes
Newer Older
1
SUBDIRS = data .
2 3 4 5 6 7 8

SHTESTS = memfile_tests.sh

if HAVE_MYSQL
SHTESTS += mysql_tests.sh
endif

9 10 11 12
if HAVE_PGSQL
SHTESTS += pgsql_tests.sh
endif

Tomek Mrugalski's avatar
Tomek Mrugalski committed
13 14
if HAVE_CQL
SHTESTS += cql_tests.sh
15
endif
16

17 18
noinst_SCRIPTS = $(SHTESTS)

19
EXTRA_DIST = dhcpdb_create_1.0.mysql
20
EXTRA_DIST += dhcpdb_create_1.0.pgsql
21
EXTRA_DIST += dhcpdb_create_1.0.cql
22

23
CLEANFILES = *.log
Tomek Mrugalski's avatar
Tomek Mrugalski committed
24
DISTCLEANFILES = memfile_tests.sh mysql_tests.sh pgsql_tests.sh cql_tests.sh
25 26 27 28 29 30 31 32

# Execute all test scripts.
check-local:
	for shtest in $(SHTESTS) ; do \
	echo Running test: $$shtest ; \
	chmod +x $(abs_builddir)/$$shtest ; \
	${SHELL} $(abs_builddir)/$$shtest || exit ; \
	done