Browse Source

forgot to add makefile for lib/dns/python/tests

git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1920 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
057f541fa8
1 changed files with 17 additions and 0 deletions
  1. 17 0
      src/lib/dns/python/tests/Makefile.am

+ 17 - 0
src/lib/dns/python/tests/Makefile.am

@@ -0,0 +1,17 @@
+PYTESTS = message_python_test.py
+PYTESTS += question_python_test.py
+PYTESTS += rrset_python_test.py
+PYTESTS += rrtype_python_test.py
+
+EXTRA_DIST = $(PYTESTS)
+
+# 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_srcdir)/src/lib/dns/python/.libs \
+	TESTDATA_PATH=$(abs_top_srcdir)/src/lib/dns/tests/testdata \
+	$(PYCOVERAGE) $(abs_srcdir)/$$pytest ; \
+	done