[Python-modules-commits] [sphinxcontrib-doxylink] 03/05: Simplify the packaging testsuite.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 23 17:37:12 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 sphinxcontrib-doxylink.

commit 3f745c710eb185b03f6e62d4ee6a513533a07dc5
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Nov 22 19:26:28 2016 +0000

    Simplify the packaging testsuite.
---
 debian/tests/control | 14 ++++++++++----
 debian/tests/python2 | 12 ------------
 debian/tests/python3 | 12 ------------
 3 files changed, 10 insertions(+), 28 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 0a92c80..1234729 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,11 @@
-Tests: python2
-Depends: python-all, python-sphinxcontrib.doxylink
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP
+ ; cd $AUTOPKGTEST_TMP
+ ; python -m unittest discover
+Depends: python-sphinxcontrib.doxylink
+Restrictions: allow-stderr
 
-Tests: python3
-Depends: python3-all, python3-sphinxcontrib.doxylink
+Test-Command: cp -a ./tests $AUTOPKGTEST_TMP
+ ; cd $AUTOPKGTEST_TMP
+ ; python3 -m unittest discover
+Depends: python3-sphinxcontrib.doxylink
+Restrictions: allow-stderr
diff --git a/debian/tests/python2 b/debian/tests/python2
deleted file mode 100755
index bd28308..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 unittest discover 2>&1
-done
diff --git a/debian/tests/python3 b/debian/tests/python3
deleted file mode 100755
index 2e143c0..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 unittest discover 2>&1
-done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinxcontrib-doxylink.git



More information about the Python-modules-commits mailing list