From: Jorge Soares Date: Fri, 28 Nov 2014 13:53:54 +0000 (+0000) Subject: tests are now python version dependent X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~353 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6bc00f823d34d58eb6fdfbd5de6c6d90384c5d1;p=python-pysam.git tests are now python version dependent --- diff --git a/debian/python3-tests/control b/debian/python3-tests/control new file mode 100644 index 0000000..f1a4bf7 --- /dev/null +++ b/debian/python3-tests/control @@ -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 index 0000000..44e94b4 --- /dev/null +++ b/debian/python3-tests/run-unit-test @@ -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 index f1a4bf7..0000000 --- a/debian/tests/control +++ /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 index 44e94b4..0000000 --- a/debian/tests/run-unit-test +++ /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