From: Afif Elghraoui Date: Sun, 12 Jul 2015 13:36:45 +0000 (-0700) Subject: Revert "Fix autopkgtests" X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~289^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=359a5ae8eb2921933bbace88592b9b5ffe74f352;p=python-pysam.git Revert "Fix autopkgtests" This reverts commit d9adfd86bbe73d4469781b728734579c2d09a7d4. We'll fix them another way.. --- diff --git a/debian/tests/control b/debian/tests/control index 105c539..1046737 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,7 +1,9 @@ -Test-Command: cd tests && make -C pysam_data && nosetests --nocapture -v -Depends: @, python-nose, samtools, make, cython -Restrictions: allow-stderr, rw-build-tree +Tests: run-nose-tests +Depends: @, python-nose, python-pysam-tests, samtools, make, + cython +Restrictions: allow-stderr -Test-Command: cd tests && make -C pysam_data && nosetests3 --nocapture -v -Depends: @, python3-nose, samtools, make, cython3 -Restrictions: allow-stderr, rw-build-tree +Tests: run-nose3-tests +Depends: @, python3-nose, python-pysam-tests, samtools, make, + cython3 +Restrictions: allow-stderr diff --git a/debian/tests/run-nose-tests b/debian/tests/run-nose-tests new file mode 100755 index 0000000..94fece9 --- /dev/null +++ b/debian/tests/run-nose-tests @@ -0,0 +1,11 @@ +#!/bin/sh -e + +if [ "$ADTTMP" = "" ] ; then + ADTTMP=`mktemp -d /tmp/python-pysam-test.XXXXXX` +fi +cd $ADTTMP +cp -ra /usr/share/doc/python-pysam/tests/* $ADTTMP +nosetests --nocapture +cd +rm -rf $ADTTMP + diff --git a/debian/tests/run-nose3-tests b/debian/tests/run-nose3-tests new file mode 100755 index 0000000..299a33a --- /dev/null +++ b/debian/tests/run-nose3-tests @@ -0,0 +1,11 @@ +#!/bin/sh -e + +if [ "$ADTTMP" = "" ] ; then + ADTTMP=`mktemp -d /tmp/python3-pysam-test.XXXXXX` +fi +cd $ADTTMP +cp -ra /usr/share/doc/python-pysam/tests/* $ADTTMP +nosetests3 --nocapture +cd +rm -rf $ADTTMP +