Do not provide a code copy of the test script in README.Debian but rather provide...
authorAndreas Tille <tille@debian.org>
Sun, 2 Mar 2014 08:18:00 +0000 (09:18 +0100)
committerAndreas Tille <tille@debian.org>
Sun, 2 Mar 2014 08:34:49 +0000 (09:34 +0100)
debian/changelog
debian/python-pysam-tests.README.Debian
debian/python-pysam-tests.docs [new file with mode: 0644]
debian/tests/run-unit-test

index aed98f620f14016770077cb6882443a7718950fb..c926407f22b1394d66c83c6ba2adf4abdf7bcc84 100644 (file)
@@ -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 <tille@debian.org>  Sat, 01 Mar 2014 23:40:21 +0100
 
index 61a30cd96f38bdbc50b90976656021f2c351ca80..ed86b396fdb3f53bb662a82aa765a8d97d9ca23b 100644 (file)
@@ -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 <tille@debian.org>  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 (file)
index 0000000..760739f
--- /dev/null
@@ -0,0 +1 @@
+debian/tests/run-unit-test
index 50eac1fac2443ee98dd7bea56b2929f0865e92c2..e0a0efa7f32cec2638154189676f6df38c9fcbe2 100644 (file)
@@ -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 \