tests are now python version dependent
authorJorge Soares <j.s.soares@gmail.com>
Fri, 28 Nov 2014 13:53:54 +0000 (13:53 +0000)
committerJorge Soares <j.s.soares@gmail.com>
Fri, 28 Nov 2014 13:53:54 +0000 (13:53 +0000)
debian/python3-tests/control [new file with mode: 0644]
debian/python3-tests/run-unit-test [new file with mode: 0644]
debian/tests/control [deleted file]
debian/tests/run-unit-test [deleted file]

diff --git a/debian/python3-tests/control b/debian/python3-tests/control
new file mode 100644 (file)
index 0000000..f1a4bf7
--- /dev/null
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python-pysam-tests, samtools, make
+Restrictions: allow-stderr
diff --git a/debian/python3-tests/run-unit-test b/debian/python3-tests/run-unit-test
new file mode 100644 (file)
index 0000000..44e94b4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/python-pysam-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/python-pysam/tests/* $ADTTMP
+gunzip -r *.py.gz \
+        ex9_fail.bam.gz \
+        ex9_nofail.bam.gz \
+        example_empty_header.bam.gz \
+        issue100.bam.gz
+chmod u+x ./pysam_test_offline.py
+./pysam_test_offline.py
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644 (file)
index f1a4bf7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Tests: run-unit-test
-Depends: @, python-pysam-tests, samtools, make
-Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
deleted file mode 100644 (file)
index 44e94b4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh -e
-
-if [ "$ADTTMP" = "" ] ; then
-  ADTTMP=`mktemp -d /tmp/python-pysam-test.XXXXXX`
-fi
-cd $ADTTMP
-cp -a /usr/share/doc/python-pysam/tests/* $ADTTMP
-gunzip -r *.py.gz \
-        ex9_fail.bam.gz \
-        ex9_nofail.bam.gz \
-        example_empty_header.bam.gz \
-        issue100.bam.gz
-chmod u+x ./pysam_test_offline.py
-./pysam_test_offline.py