dh_auto_clean
override_dh_auto_test:
- # Tests are stumbling upon missing ex1.bam file ...
- ln -s pysam_data/ex1.bam tests
cd tests && make -C pysam_data
# dh_auto_test # unfortunately this does not work out of the box
# see https://lists.debian.org/debian-python/2015/07/msg00064.html
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="cd tests && if [ {version} = 2.7 ] ; then nosetests -s ; else nosetests3 -s -v ; fi" dh_auto_test || \
echo "Ignoring test failures"
- # remove ex1.bam that was created above
- rm -f tests/ex1.bam
# The so-symlinks above need to be removed - otherwise dh_python3 will fail
find .pybuild -type l -name "*.so" -delete