[med-svn] [python-pbh5tools] 04/06: Enable build-time running of nose-tests

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Aug 13 07:17:50 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-pbh5tools.

commit 749812f1a6b4db66d5b0cbb94978798f82f115a2
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Aug 12 23:53:59 2015 -0700

    Enable build-time running of nose-tests
---
 debian/patches/enable-nosetests | 20 ++++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    |  3 +++
 3 files changed, 24 insertions(+)

diff --git a/debian/patches/enable-nosetests b/debian/patches/enable-nosetests
new file mode 100644
index 0000000..9c095d4
--- /dev/null
+++ b/debian/patches/enable-nosetests
@@ -0,0 +1,20 @@
+Description: Configure nosetests to run with setup.py test
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: not-needed
+Last-Update: 2015-08-12
+--- python-pbh5tools.orig/setup.py
++++ python-pbh5tools/setup.py
+@@ -26,6 +26,7 @@
+                'bin/cmph5tools.py'],
+     packages = find_packages("."),
+     package_dir = {'':'.'},
++    test_suite = 'nose.collector',
+     ext_modules=[Extension('pbh5tools/ci', ['pbh5tools/ci.c'],
+                            extra_compile_args=["-O3","-shared"])],
+     zip_safe = False,
+--- /dev/null
++++ python-pbh5tools/setup.cfg
+@@ -0,0 +1,3 @@
++[nosetests]
++verbosity=2
++where=tests
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..3eb9e0b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+enable-nosetests
diff --git a/debian/rules b/debian/rules
index a5a8f32..159c935 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,6 @@ export PYBUILD_NAME = pbh5tools
 # the meantime.
 # cram's source is at https://bitbucket.org/brodie/cram
 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-pbh5tools.git



More information about the debian-med-commit mailing list