Makefile.am 872 Bytes
Newer Older
1
PYCOVERAGE = @PYCOVERAGE@
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PYTESTS = correct_test.sh
EXTRA_DIST = get_zonedatas.py
EXTRA_DIST += include.db
EXTRA_DIST += inclsub.db
EXTRA_DIST += known.test.out
EXTRA_DIST += mix1.db
EXTRA_DIST += mix1sub1.db
EXTRA_DIST += mix1sub2.db
EXTRA_DIST += mix2.db
EXTRA_DIST += mix2sub1.txt
EXTRA_DIST += mix2sub2.txt
EXTRA_DIST += ttl1.db
EXTRA_DIST += ttl2.db
EXTRA_DIST += ttlext.db
16
EXTRA_DIST += example.db
17
18
19

# test using command-line arguments, so use check-local target instead of TESTS
check-local:
20
21
22
23
24
if ENABLE_PYTHON_COVERAGE
	touch $(abs_top_srcdir)/.coverage 
	rm -f .coverage
	${LN_S} $(abs_top_srcdir)/.coverage .coverage
endif
25
26
	for pytest in $(PYTESTS) ; do \
	echo Running test: $$pytest ; \
27
	env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/bin/loadzone \
28
	$(SHELL) $(abs_builddir)/$$pytest || exit ; \
29
	done