[med-svn] [python-pbcore] 04/04: Set up build-time testing
Afif Elghraoui
afif-guest at moszumanska.debian.org
Wed Aug 5 08:59:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository python-pbcore.
commit a3130aff4e632c03215f329b73acb72b292ffc2d
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Wed Aug 5 01:59:10 2015 -0700
Set up build-time testing
---
debian/patches/enable-build-time-testing.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 +++-
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/debian/patches/enable-build-time-testing.patch b/debian/patches/enable-build-time-testing.patch
new file mode 100644
index 0000000..e5c7bbc
--- /dev/null
+++ b/debian/patches/enable-build-time-testing.patch
@@ -0,0 +1,18 @@
+--- python-pbcore.orig/setup.cfg
++++ python-pbcore/setup.cfg
+@@ -1,2 +1,5 @@
+ [metadata]
+ description-file = README.md
++[nosetests]
++verbosity=2
++where=tests
+--- python-pbcore.orig/setup.py
++++ python-pbcore/setup.py
+@@ -29,6 +29,7 @@
+ },
+ use_2to3 = True,
+ zip_safe = False,
++ test_suite = 'nose.collector',
+ install_requires=[
+ 'h5py >= 2.0.1',
+ 'numpy >= 1.7.1',
diff --git a/debian/patches/series b/debian/patches/series
index 20bb1a0..c6733f2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
support-python3.patch
remove-convenience-script.patch
doc-theme.patch
+enable-build-time-testing.patch
diff --git a/debian/rules b/debian/rules
index 0865054..b986e1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,5 +18,7 @@ override_dh_installdocs:
get-orig-source:
uscan --verbose --force-download --repack --rename --compression xz
-# test requires the package itself to be installed...
override_dh_auto_test:
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
+ dh_auto_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pbcore.git
More information about the debian-med-commit
mailing list