From: Andreas Tille Date: Mon, 20 Jul 2015 18:50:36 +0000 (+0200) Subject: Tests are triggered by nosetest X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~294 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8c9a6f5c81861133e2a6c0944bea09a686564069;p=python-pysam.git Tests are triggered by nosetest --- diff --git a/debian/rules b/debian/rules index 61bc5be..4315e30 100755 --- a/debian/rules +++ b/debian/rules @@ -19,10 +19,20 @@ override_dh_auto_clean: $(MAKE) -C tests/pysam_data clean find . -name "*.pyc" -delete find . -name "*.pyxbldc" -delete + find . -name "tmp_*" -delete + find . -name "*.bai*" -delete + find . -name "*.cram*" -delete + rm -rf tests/pysam_test_work \ + tests/example_htslib.gtf.gz.tbi \ + tests/log.txt \ + tests/test.bam \ + tests/_compile_test.c \ + pysam/calignmentfile.c \ + pysam/cbcf.c override_dh_auto_test: PYBUILD_SYSTEM=custom \ - PYBUILD_TEST_ARGS="cd tests && {interpreter} pysam_test.py" dh_auto_test || \ + 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" get-orig-source: