|
@@ -1,15 +1,15 @@
|
|
|
-if HAVE_BOOST_PYTHON
|
|
|
-
|
|
|
PYTESTS = xfrin_test.py
|
|
|
EXTRA_DIST = $(PYTESTS)
|
|
|
|
|
|
+if HAVE_BOOST_PYTHON
|
|
|
+
|
|
|
# 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/dns/.libs:$(abs_top_srcdir)/src/bin/xfrin:$(abs_top_srcdir)/src/lib/python \
|
|
|
+ env PYTHONPATH=$(abs_top_builddir)/src/lib/dns/.libs:$(abs_top_builddir)/src/bin/xfrin:$(abs_top_srcdir)/src/lib/python \
|
|
|
$(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \
|
|
|
done
|
|
|
|