[med-svn] [python-skbio] 01/02: Add Autopkgtests

Kevin Murray daube-guest at moszumanska.debian.org
Sun Feb 14 02:12:33 UTC 2016


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

daube-guest pushed a commit to branch master
in repository python-skbio.

commit 1507ed31ec3e267e24aff8f0b15b5f78f893fddd
Author: Kevin Murray <spam at kdmurray.id.au>
Date:   Sat Feb 13 11:10:23 2016 -0800

    Add Autopkgtests
---
 debian/changelog          |  1 +
 debian/tests/control      |  3 +++
 debian/tests/import-skbio | 10 ++++++++++
 debian/tests/testsuite    | 10 ++++++++++
 4 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 26ab87a..44a1640 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 python-skbio (0.4.1-2) unstable; urgency=medium
 
+  * Add basic autopkgtests
   * Don't build pdf figures (fixes unreproducible build)
   * Secure vcs-git url
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..6b8aca2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: import-skbio testsuite
+Depends: python-skbio, python3-skbio
+Restrictions: allow-stderr
diff --git a/debian/tests/import-skbio b/debian/tests/import-skbio
new file mode 100644
index 0000000..8a7c4a8
--- /dev/null
+++ b/debian/tests/import-skbio
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd /tmp
+echo "backend: agg" > matplotlibrc
+
+python2 -c 'import skbio'
+
+python3 -c 'import skbio'
+
+rm -f matplotlibrc
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100644
index 0000000..d046b72
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd /tmp
+echo "backend: agg" > matplotlibrc
+
+python2 -m skbio.test
+
+python3 -m skbio.test
+
+rm -f matplotlibrc

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



More information about the debian-med-commit mailing list