[python-arrayfire] 04/07: Simplify packaging testsuite.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Sep 16 09:58:38 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-arrayfire.

commit c32928a76e87118c232538f97934893ba305a416
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 16 08:07:13 2016 +0100

    Simplify packaging testsuite.
---
 debian/tests/control  | 23 +++++++++++++----------
 debian/tests/examples |  9 ---------
 debian/tests/python2  | 12 ------------
 debian/tests/python3  | 12 ------------
 4 files changed, 13 insertions(+), 43 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index f486052..8d348e4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,12 +1,15 @@
-Tests: python2
-Depends: python-all,
-         python-arrayfire
+Test-Command: cp -r ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
+ python -m tests
+Depends: python-arrayfire
 
-Tests: python3
-Depends: python3-all,
-         python3-arrayfire
+Test-Command: cp -r ./tests $AUTOPKGTEST_TMP; cd $AUTOPKGTEST_TMP;
+ python3 -m tests
+Depends: python3-arrayfire
 
-Tests: examples
-Depends: python-arrayfire,
-         python-arrayfire-doc,
-         python3-arrayfire
+Test-Command: cp /usr/share/doc/python-arrayfire-doc/examples/getting_started/intro.py $AUTOPKGTEST_TMP;
+ cd $AUTOPKGTEST_TMP;
+ echo "=== python 2 ===";
+ python ./intro.py;
+ echo "=== python 3 ===";
+ python3 ./intro.py;
+Depends: @
diff --git a/debian/tests/examples b/debian/tests/examples
deleted file mode 100755
index 671262b..0000000
--- a/debian/tests/examples
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-set -efu
-
-cd "$ADTTMP"
-EXAMPLE="/usr/share/doc/python-arrayfire-doc/examples/getting_started/intro.py"
-echo "=== python2 ==="
-python "$EXAMPLE" 2>&1
-echo "=== python3 ==="
-python3 "$EXAMPLE" 2>&1
diff --git a/debian/tests/python2 b/debian/tests/python2
deleted file mode 100755
index 6275f8a..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 tests/__main__.py 2>&1
-done
diff --git a/debian/tests/python3 b/debian/tests/python3
deleted file mode 100755
index f194587..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 tests/__main__.py 2>&1
-done

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



More information about the debian-science-commits mailing list