[python-dtcwt] 02/04: Simplify packaging testsuite using Test-Command.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Aug 4 08:13:58 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository python-dtcwt.

commit 9da469bb2f79f478ef2c3fbe2b4e623e576fac3e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Aug 3 12:59:39 2016 +0100

    Simplify packaging testsuite using Test-Command.
---
 debian/tests/control | 12 ++++--------
 debian/tests/python2 | 12 ------------
 debian/tests/python3 | 12 ------------
 3 files changed, 4 insertions(+), 32 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 4c7a737..ad66b18 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,9 +1,5 @@
-Tests: python2
-Depends: python-all,
-         python-dtcwt,
-         python-pytest
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP ; cd $AUTOPKGTEST_TMP ; py.test
+Depends: python-dtcwt, python-pytest
 
-Tests: python3
-Depends: python3-all,
-         python3-dtcwt,
-         python3-pytest
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP ; cd $AUTOPKGTEST_TMP ; py.test-3
+Depends: python3-dtcwt, python3-pytest
diff --git a/debian/tests/python2 b/debian/tests/python2
deleted file mode 100755
index 4b0f8a4..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 pytest tests 2>&1
-done
diff --git a/debian/tests/python3 b/debian/tests/python3
deleted file mode 100755
index 60b3055..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 pytest tests 2>&1
-done

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



More information about the debian-science-commits mailing list