From: Andreas Tille Date: Sun, 2 Mar 2014 08:18:00 +0000 (+0100) Subject: Do not provide a code copy of the test script in README.Debian but rather provide... X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~396 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d998823d2b037d4c38c7234d2cfc13278484c511;p=python-pysam.git Do not provide a code copy of the test script in README.Debian but rather provide the script for execution; create temp dir using mktemp; upload to unstable --- diff --git a/debian/changelog b/debian/changelog index aed98f6..c926407 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ -python-pysam (0.7.5-3) UNRELEASED; urgency=medium +python-pysam (0.7.5-3) unstable; urgency=medium * Do not install tests in world writable dir + Closes: #739575 -- Andreas Tille Sat, 01 Mar 2014 23:40:21 +0100 diff --git a/debian/python-pysam-tests.README.Debian b/debian/python-pysam-tests.README.Debian index 61a30cd..ed86b39 100644 --- a/debian/python-pysam-tests.README.Debian +++ b/debian/python-pysam-tests.README.Debian @@ -2,12 +2,11 @@ Pysam for Debian ================ To verify whether your python-pysam modules are working correctly -you can run the test suite manually via +you can run the test suite manually by running the script - cp -a /usr/share/doc/python-pysam/tests /tmp - cd /tmp/tests - gunzip -r * - ./pysam_test.py + run-unit-test + +in this directory. -- Andreas Tille Fri, 07 Feb 2014 18:29:40 +0100 diff --git a/debian/python-pysam-tests.docs b/debian/python-pysam-tests.docs new file mode 100644 index 0000000..760739f --- /dev/null +++ b/debian/python-pysam-tests.docs @@ -0,0 +1 @@ +debian/tests/run-unit-test diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test index 50eac1f..e0a0efa 100644 --- a/debian/tests/run-unit-test +++ b/debian/tests/run-unit-test @@ -1,7 +1,8 @@ #!/bin/sh -e -cp -a /usr/share/doc/python-pysam/tests /tmp -cd /tmp/tests +TMPDIR=`mktemp -d /tmp/python-pysam-test.XXXXXX` +cp -a /usr/share/doc/python-pysam/tests/* $TMPDIR +cd $TMPDIR gunzip -r *.py.gz \ ex10.bam.gz \ ex9_fail.bam.gz \