[python-hdf5storage] 03/04: Simplify the packaging testsuite.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Sep 14 16:11:00 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-hdf5storage.

commit af78e8aca075f5bbf3a8b8430782d4e380826a45
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Sep 13 18:09:40 2016 +0100

    Simplify the packaging testsuite.
---
 debian/tests/control | 16 ++++++----------
 debian/tests/python2 | 12 ------------
 debian/tests/python3 | 12 ------------
 3 files changed, 6 insertions(+), 34 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 6cbc03b..c3ecd7e 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,11 +1,7 @@
-Tests: python2
-Depends: python-all,
-         python-hdf5storage,
-         python-nose,
-         python-scipy
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP; python -m nose tests
+Depends: python-hdf5storage, python-nose, python-scipy
+Restrictions: allow-stderr
 
-Tests: python3
-Depends: python3-all,
-         python3-hdf5storage,
-         python3-nose,
-         python3-scipy
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP; python3 -m nose tests
+Depends: python3-hdf5storage, python3-nose, python3-scipy
+Restrictions: allow-stderr
diff --git a/debian/tests/python2 b/debian/tests/python2
deleted file mode 100755
index d9cfab7..0000000
--- a/debian/tests/python2
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-set -efu
-
-pys="$(pyversions -r 2>/dev/null)"
-
-cp -a ./tests "$ADTTMP"
-cd "$ADTTMP"
-
-for py in $pys; do
-	echo "=== $py ==="
-	$py -m nose -I test_matlab_compatibility 2>&1
-done
diff --git a/debian/tests/python3 b/debian/tests/python3
deleted file mode 100755
index f35ec5c..0000000
--- a/debian/tests/python3
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-set -efu
-
-pys="$(py3versions -r 2>/dev/null)"
-
-cp -a ./tests "$ADTTMP"
-cd "$ADTTMP"
-
-for py in $pys; do
-	echo "=== $py ==="
-	$py -m nose -I test_matlab_compatibility 2>&1
-done

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



More information about the debian-science-commits mailing list