Makefile.am 850 Bytes
Newer Older
1
2
3
PYTESTS = notify_out_test.py
EXTRA_DIST = $(PYTESTS)

4
5
# If necessary (rare cases), explicitly specify paths to dynamic libraries
# required by loadable python modules.
6
LIBRARY_PATH_PLACEHOLDER =
7
if SET_ENV_LIBRARY_PATH
8
LIBRARY_PATH_PLACEHOLDER += $(ENV_LIBRARY_PATH)=$(abs_top_builddir)/src/lib/dns/.libs:$(abs_top_builddir)/src/lib/exceptions/.libs:$$$(ENV_LIBRARY_PATH)
9
10
endif

11
12
13
14
15
16
# 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 ; \
Jelte Jansen's avatar
Jelte Jansen committed
17
	env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/lib/dns/python/.libs \
18
	$(LIBRARY_PATH_PLACEHOLDER) \
19
20
	$(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \
	done