[med-svn] [python-pysam] 01/01: The automatic nosetest trigger does not work and this it is switched back to manual nosetests invocation
Andreas Tille
tille at debian.org
Wed Jul 22 20:24:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-pysam.
commit 8fe0ebe76a56085fb23a5c9364fee17dba545877
Author: Andreas Tille <tille at debian.org>
Date: Wed Jul 22 22:23:39 2015 +0200
The automatic nosetest trigger does not work and this it is switched back to manual nosetests invocation
---
debian/rules | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 35c3884..05e4a0e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@ HTSLIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
export HTSLIB_INCLUDE_DIR=/usr/include
+export PYBUILD_TEST_NOSE=1
+export PYBUILD_TEST_ARGS={dir}/tests
+
# DEB_BUILD_OPTIONS := nocheck
%:
@@ -35,13 +38,17 @@ override_dh_auto_clean:
override_dh_auto_test:
# Tests are stumbling upon missing ex1.bam file ...
ln -s pysam_data/ex1.bam tests
+ cd tests && make -C pysam_data
+ # dh_auto_test # unfortunately this does not work out of the box
+ # see https://lists.debian.org/debian-python/2015/07/msg00064.html
+ # thus trying manually with unusual tricks
# For some strange reasons the extension of so files in Python 3.4
# build tree are named .cpython-34m.so and thus will not be found
# by the test scripts. For the moment set some symlinks here to
# enable running the test suite
for so in `find .pybuild -name "*.cpython-34m.so"` ; do sso=`echo $${so} | sed 's/.cpython-34m//'`; ln -s `basename $${so}` $${sso} ; done
PYBUILD_SYSTEM=custom \
- PYBUILD_TEST_ARGS="cd tests && make -C pysam_data && if [ {version} = 2.7 ] ; then nosetests -s ; else nosetests3 -s -v ; fi" dh_auto_test || \
+ PYBUILD_TEST_ARGS="cd tests && if [ {version} = 2.7 ] ; then nosetests -s ; else nosetests3 -s -v ; fi" dh_auto_test || \
echo "Ignoring test failures"
# remove ex1.bam that was created above
rm -f tests/ex1.bam
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git
More information about the debian-med-commit
mailing list