[med-svn] [python-xopen] 01/02: Run build time tests

Andreas Tille tille at debian.org
Thu Jun 8 07:10:21 UTC 2017


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

tille pushed a commit to branch master
in repository python-xopen.

commit c7d40e6b0ba7019c43e8be9373c2763797f85d08
Author: Andreas Tille <tille at debian.org>
Date:   Fri Mar 17 23:20:03 2017 +0100

    Run build time tests
---
 debian/control |  4 +++-
 debian/rules   | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b8bed70..e0c6b18 100644
--- a/debian/control
+++ b/debian/control
@@ -7,8 +7,10 @@ Build-Depends: debhelper (>= 10),
                dh-python,
                python,
                python-setuptools,
+               python-nose,
                python3,
-               python3-setuptools
+               python3-setuptools,
+               python3-nose
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-xopen.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/python-xopen.git
diff --git a/debian/rules b/debian/rules
index 46b79e4..fa454dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,18 @@
 DH_VERBOSE := 1
 export PYBUILD_NAME=xopen
 
+PYTHON2 := $(shell pyversions -r)
+PYTHON3 := $(shell py3versions -r)
+
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	for py in $(PYTHON2) ; do\
+	    $$py setup.py nosetests -v ; \
+	done
+	for py in $(PYTHON3) ; do\
+	    $$py setup.py nosetests -v ; \
+	done
+endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-xopen.git



More information about the debian-med-commit mailing list