Provide file tests/ex1.bam that is required in nosetest
authorAndreas Tille <tille@debian.org>
Tue, 21 Jul 2015 09:30:39 +0000 (11:30 +0200)
committerAndreas Tille <tille@debian.org>
Tue, 21 Jul 2015 09:30:39 +0000 (11:30 +0200)
debian/rules

index 4315e30c6198bfbcc17ee7f724d69c410ac20575..41caf792a288196b4350bedf1018409c387dc923 100755 (executable)
@@ -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