[python-scientific] 07/07: Execute the test suite during the build
Frédéric-Emmanuel Picca
picca at moszumanska.debian.org
Thu Jan 23 16:41:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
picca pushed a commit to branch master
in repository python-scientific.
commit abad4902faab0f28b9fd2df60d698421c6cf44b2
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date: Thu Jan 23 16:09:44 2014 +0100
Execute the test suite during the build
---
debian/changelog | 1 +
debian/rules | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 09b3283..c55759a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ python-scientific (2.9.3-1) unstable; urgency=medium
* Bump Standards-Version 3.9.5 (nothing to do)
* Build-Depends on cython and use the .pyx files instead of the
pre-compiled .c extensions.
+ * Execute the test suite during the build
* debian/patches
- deleted (applyed by upstream)
- 0001-replace-PyObject_NEW-Pyobject_new.patch
diff --git a/debian/rules b/debian/rules
index 6e2ddc6..6f707be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,7 @@ OPENMPI_ARCH = alpha amd64 armel armhf i386 ia64 powerpc powerpcspe ppc64 sparc
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
pv = $(shell pyversions -vd)
+PY2VERS=$(shell pyversions -vs)
PYTHON = /usr/bin/python #$(pv)
%:
@@ -32,6 +33,17 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),$(OPENMPI_ARCH)))
cd Src/MPI && PYTHONPATH=$$(echo $(CURDIR)/build/lib.*-$(pv)) USE_OPENMPI=yes $(PYTHON) compile.py
endif
+override_dh_auto_test:
+ dh_auto_test
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ set -e -x; \
+ for py in $(PY2VERS); do \
+ for f in Tests/*.py; do \
+ PYTHONPATH=$$(echo $(CURDIR)/build/lib.*-$$py) python$$py $$f; \
+ done \
+ done
+endif
+
override_dh_install:
# rename the task_manager to avoid a name conflict
mv debian/tmp/usr/bin/task_manager \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-scientific.git
More information about the debian-science-commits
mailing list