Makefile.am 595 Bytes
Newer Older
Jeremy C. Reed's avatar
Jeremy C. Reed committed
1 2 3
PYTESTS = cmdctl_test.py
EXTRA_DIST = $(PYTESTS)

4 5 6 7 8 9
# 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 ; \
10
	env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/bin/cmdctl \
11 12
	CMDCTL_SPEC_PATH=$(abs_top_builddir)/src/bin/cmdctl \
	CMDCTL_SRC_PATH=$(abs_top_srcdir)/src/bin/cmdctl \
13
	$(PYCOVERAGE) $(abs_srcdir)/$$pytest || exit ; \
14
	done