[pyfai] 03/04: add the unit test during the build

Frédéric-Emmanuel Picca picca at alioth.debian.org
Fri Sep 6 14:32:06 UTC 2013


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

picca pushed a commit to branch experimental
in repository pyfai.

commit 868cc3a551ccb66b37118fbf32c9b4ced66dfaac
Author: Frédéric-Emmanuel PICCA <picca at synchrotron-soleil.fr>
Date:   Fri Sep 6 16:25:42 2013 +0200

    add the unit test during the build
---
 debian/changelog |    3 ++-
 debian/control   |    8 +++++++-
 debian/rules     |   13 +++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 624d90d..c61a9a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-pyfai (0.9.0~rc6-1) UNRELEASED; urgency=low
+pyfai (0.9.0-1) UNRELEASED; urgency=low
 
   * Import new upstream version
   * debian/control
@@ -10,6 +10,7 @@ pyfai (0.9.0~rc6-1) UNRELEASED; urgency=low
     - use copyright-format/1.0
   * debian/rules
     - use dh_numpy for better binary dependency.
+    - add the unittests during the build
 
  -- Picca Frédéric-Emmanuel <picca at debian.org>  Mon, 12 Nov 2012 15:34:53 +0100
 
diff --git a/debian/control b/debian/control
index c01b172..8a86eb6 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,13 @@ Section: science
 Priority: extra
 Build-Depends: debhelper (>= 8),
                python-all-dev,
-               python-numpy
+               python-fabio,
+               python-fftw,
+               python-lxml,
+               python-matplotlib,
+               python-numpy,
+               python-scipy,
+               python-tk
 Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/pyfai.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/pyfai.git
diff --git a/debian/rules b/debian/rules
index adf9378..755f541 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,22 @@
 #!/usr/bin/make -f
 
+export DH_VERBOSE=1
+
+PYVERS=$(shell pyversions -vs)
+
 override_dh_auto_install:
 	dh_auto_install
 	dh_numpy
 
+override_dh_auto_test:
+	dh_auto_test
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e -x; \
+	for py in $(PYVERS); do \
+		python$$py setup.py test;\
+	done
+endif
+
 %:
 	dh $@ --with python2 --buildsystem=python_distutils
 

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



More information about the debian-science-commits mailing list