[med-svn] [python-biom-format] 02/11: Add packaging testsuite.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Mar 5 18:16:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-biom-format.

commit d3d48aba1676b5a1ff7fccb5b484d521ce083b1a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Mar 5 15:37:03 2016 +0000

    Add packaging testsuite.
---
 debian/control       |  1 +
 debian/tests/control |  4 ++++
 debian/tests/python2 | 12 ++++++++++++
 3 files changed, 17 insertions(+)

diff --git a/debian/control b/debian/control
index bc3d946..d3107a9 100644
--- a/debian/control
+++ b/debian/control
@@ -2,6 +2,7 @@ Source: python-biom-format
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Section: python
+Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-python,
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..9eb6a76
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Tests: python2
+Depends: python-all,
+         python-biom-format,
+         python-nose
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100644
index 0000000..eb87761
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(pyversions -r 2>/dev/null)"
+
+cp -a ./examples ./tests "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py -m nose tests 2>&1
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-biom-format.git



More information about the debian-med-commit mailing list