Add autopkgtest
authorAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 16:27:25 +0000 (17:27 +0100)
committerAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 16:31:43 +0000 (17:31 +0100)
debian/control
debian/tests/control [new file with mode: 0644]
debian/tests/run-unit-test [new file with mode: 0644]

index 934bc6ace2ed604008d542662f40e381a02674f6..c6143b69b6b1c3b79fded2d62599871c2f9ac32f 100644 (file)
@@ -3,6 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.
 Uploaders: Charles Plessy <plessy@debian.org>,
            Andreas Tille <tille@debian.org>
 Section: python
+XS-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
                python-all-dev,
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644 (file)
index 0000000..516915b
--- /dev/null
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python-pysam-tests
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644 (file)
index 0000000..ffba74b
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+cd /var/lib/pysam/tests
+./pysam_test_offline.py