Add package carrying test data
authorAndreas Tille <tille@debian.org>
Mon, 10 Feb 2014 18:09:46 +0000 (19:09 +0100)
committerAndreas Tille <tille@debian.org>
Mon, 10 Feb 2014 18:09:46 +0000 (19:09 +0100)
debian/control
debian/python-pysam-tests.README.Debian [new file with mode: 0644]
debian/python-pysam-tests.install [new file with mode: 0644]
debian/python-pysam-tests.postinst [new file with mode: 0644]

index f7c530c556f35df651a87c31c6cd07d5e8526338..d4a5f8487379954789b445dd2b2d7659d36bb296 100644 (file)
@@ -25,3 +25,19 @@ Depends: ${shlibs:Depends},
 Description: interface for the SAM/BAM sequence alignment and mapping format
  Pysam is a python module for reading and manipulating Samfiles. It's a
  lightweight wrapper of the samtools C-API. 
+
+Package: python-pysam-tests
+Architecture: any
+Priority: extra
+Enhances: python-pysam
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends},
+         python-pysam,
+         python-pyrex
+Description: interface for the SAM/BAM sequence alignment and mapping format (test data)
+ Pysam is a python module for reading and manipulating Samfiles. It's a
+ lightweight wrapper of the samtools C-API. 
+ .
+ This package contains the data provided by upstream to run the pysam
+ test suite.
diff --git a/debian/python-pysam-tests.README.Debian b/debian/python-pysam-tests.README.Debian
new file mode 100644 (file)
index 0000000..6ec9300
--- /dev/null
@@ -0,0 +1,11 @@
+Pysam for Debian
+================
+
+To verify whether your python-pysam modules are working correctly
+you can run the test suite manually via
+
+    cd /var/lib/pysam/tests
+    ./pysam_test.py
+
+ -- Andreas Tille <tille@debian.org>  Fri, 07 Feb 2014 18:29:40 +0100
+
diff --git a/debian/python-pysam-tests.install b/debian/python-pysam-tests.install
new file mode 100644 (file)
index 0000000..5717f36
--- /dev/null
@@ -0,0 +1 @@
+tests  var/lib/pysam
diff --git a/debian/python-pysam-tests.postinst b/debian/python-pysam-tests.postinst
new file mode 100644 (file)
index 0000000..353fb13
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+        chmod a+w /var/lib/pysam/tests
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#