From 8d933591b2c530612f84c1575289a0a9dfa3d597 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Tue, 21 Jul 2015 11:30:39 +0200 Subject: [PATCH] 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 -- 2.30.2