Fix autopkgtests
authorAfif Elghraoui <afif@ghraoui.name>
Sat, 11 Jul 2015 22:17:02 +0000 (15:17 -0700)
committerAfif Elghraoui <afif@ghraoui.name>
Sat, 11 Jul 2015 22:38:40 +0000 (15:38 -0700)
debian/tests/control
debian/tests/run-nose-tests [deleted file]
debian/tests/run-nose3-tests [deleted file]

index 1046737c4741388e5fececf0acfcbe8e2d51be85..105c539bababf2c42423d31b36823175db621b5d 100644 (file)
@@ -1,9 +1,7 @@
-Tests: run-nose-tests
-Depends: @, python-nose, python-pysam-tests, samtools, make,
-        cython
-Restrictions: allow-stderr
+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-nose3-tests
-Depends: @, python3-nose, python-pysam-tests, samtools, make,
-        cython3
-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
diff --git a/debian/tests/run-nose-tests b/debian/tests/run-nose-tests
deleted file mode 100755 (executable)
index 94fece9..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
deleted file mode 100755 (executable)
index 299a33a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
-