Makefile.am 776 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
PYTESTS = error_test.sh

EXTRA_DIST = error.known
EXTRA_DIST += formerr1.db 
EXTRA_DIST += formerr2.db
EXTRA_DIST += formerr3.db
EXTRA_DIST += formerr4.db
EXTRA_DIST += formerr5.db
EXTRA_DIST += include.txt
EXTRA_DIST += keyerror1.db
EXTRA_DIST += keyerror2.db
EXTRA_DIST += keyerror3.db
13
#EXTRA_DIST += nofilenane.db
14
15
16
17
18
19
20
21
22
23
EXTRA_DIST += originerr1.db
EXTRA_DIST += originerr2.db

# later will have configure option to choose this, like: coverage run --branch
PYCOVERAGE = $(PYTHON)
# test using command-line arguments, so use check-local target instead of TESTS
check-local:
	for pytest in $(PYTESTS) ; do \
	echo Running test: $$pytest ; \
	env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/bin/loadzone \
24
	$(SHELL) $(abs_builddir)/$$pytest || exit ; \
25
	done