[lmfit-py] 06/06: add autopkgtest

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Tue Dec 30 17:57:47 UTC 2014


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

picca pushed a commit to branch master
in repository lmfit-py.

commit d3f97a74dbac9bbcb22391a42f43caa6d796d614
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Tue Dec 30 18:57:09 2014 +0100

    add autopkgtest
---
 debian/changelog     |  1 +
 debian/control       |  1 +
 debian/tests/control |  5 +++++
 debian/tests/python2 |  9 +++++++++
 debian/tests/python3 | 10 ++++++++++
 5 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4a8ea48..7011b48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ lmfit-py (0.8.2+dfsg.1-1) UNRELEASED; urgency=medium
   * Imported Upstream version 0.8.2+dfsg.1
   * Run the test suite during the build
   * Standards-Version bumped to 3.9.6 (no other changes required)
+  * Add the autopkgtest test suite.
 
  -- Picca Frédéric-Emmanuel <picca at debian.org>  Thu, 30 Dec 2014 14:18:53 +0100
 
diff --git a/debian/control b/debian/control
index b422d58..483f818 100644
--- a/debian/control
+++ b/debian/control
@@ -33,6 +33,7 @@ Vcs-Git: git://anonscm.debian.org/debian-science/packages/lmfit-py.git
 Homepage: http://lmfit.github.io/lmfit-py/
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.2
+XS-Testsuite: autopkgtest
 
 Package: python-lmfit
 Architecture: all
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..5583f53
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: python2
+Depends: python-lmfit, python-all, python-tk, python-nose, python-matplotlib, python-pandas, python-scipy
+
+Tests: python3
+Depends: python3-lmfit, python3-all, python3-tk, python3-nose, python3-matplotlib, python3-pandas, python3-scipy
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..611dd26
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e -u
+cp -a tests/ "$ADTTMP"
+cd "$ADTTMP/tests/"
+
+for python in $(pyversions -i); do
+        PYTHONWARNINGS=d $python /usr/bin/nosetests -v 2>&1
+done
+
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..5f9e74d
--- /dev/null
+++ b/debian/tests/python3
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e -u
+
+cp -a tests "$ADTTMP"
+cd "$ADTTMP/tests/"
+
+for python in $(py3versions -i); do
+        PYTHONWARNINGS=d $python /usr/bin/nosetests3 -v 2>&1
+done
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lmfit-py.git



More information about the debian-science-commits mailing list