From: Andreas Tille Date: Tue, 21 Jul 2015 09:30:39 +0000 (+0200) Subject: Provide file tests/ex1.bam that is required in nosetest X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~293 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d933591b2c530612f84c1575289a0a9dfa3d597;p=python-pysam.git Provide file tests/ex1.bam that is required in nosetest --- 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