[med-svn] [python-pysam] 07/08: Provide file tests/ex1.bam that is required in nosetest

Andreas Tille tille at debian.org
Tue Jul 21 09:49:09 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 8d933591b2c530612f84c1575289a0a9dfa3d597
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jul 21 11:30:39 2015 +0200

    Provide file tests/ex1.bam that is required in nosetest
---
 debian/rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/rules b/debian/rules
index 4315e30..41caf79 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,18 +22,24 @@ override_dh_auto_clean:
 	find . -name "tmp_*" -delete
 	find . -name "*.bai*" -delete
 	find . -name "*.cram*" -delete
+	find . -name "*.bam" -delete
 	rm -rf	tests/pysam_test_work \
 		tests/example_htslib.gtf.gz.tbi \
 		tests/log.txt \
 		tests/test.bam \
 		tests/_compile_test.c \
+		tests/pysam_ex2.sam \
 		pysam/calignmentfile.c \
 		pysam/cbcf.c
 
 override_dh_auto_test:
+	# Tests are stumbling upon missing ex1.bam file ...
+	ln -s pysam_data/ex1.bam tests
 	PYBUILD_SYSTEM=custom \
 	PYBUILD_TEST_ARGS="cd tests && make -C pysam_data && if [ {version} = 2.7 ] ; then echo ""This should be 2.7 / python2.7: {version} / {interpreter}"" ; nosetests -s -v ; else echo ""This should be 3 / python3.4: {version} / {interpreter}"" ; nosetests3 -s -v ; fi" dh_auto_test || \
 		echo "Ignoring test failures"
+	# remove ex1.bam that was created above
+	rm -f tests/ex1.bam
 
 get-orig-source:
 	uscan --verbose --force-download --repack --compression xz

-- 
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