[pyevolve] 78/81: rules: Run autopkgtest after build against build result

Christian Kastner chrisk-guest at moszumanska.debian.org
Sun Aug 17 21:12:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository pyevolve.

commit 99f34ff5ff395e11e9c3f5238f45971119792891
Author: Christian Kastner <debian at kvr.at>
Date:   Thu Aug 7 23:27:41 2014 +0200

    rules: Run autopkgtest after build against build result
---
 debian/rules | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/debian/rules b/debian/rules
index 9e521ea..b3e5614 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,6 +30,19 @@ override_dh_auto_build:
 	dh_auto_build
 	cd docs && sphinx-build -E -a -b html ./source ./html
 
+# Run the autopkgtest as unit test
+override_dh_auto_test:
+	# Simulate partial autopkgtest run by providing an ADTTMP and letting
+	# pybuild drive the test
+	testrundir=$$(mktemp -d) ;\
+		ADTTMP=$$testrundir \
+		PYBUILD_SYSTEM=custom \
+		PYBUILD_TEST_ARGS="/bin/sh $(CURDIR)/debian/tests/run-most-examples" \
+	dh_auto_test ;\
+	res=$$? ;\
+	rm -rf "$$testrundir" ;\
+	[ $$res -eq 0 ] || exit $$res
+
 # Override needed for multiple binary package;
 # script must be renamed, line endings converted to Unix
 override_dh_auto_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyevolve.git



More information about the debian-science-commits mailing list