summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@debian.org>2018-08-05 08:48:23 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2018-08-05 09:05:12 +0200
commitb2a39a11b92c52e5f566bf7ec990091112fa6ea5 (patch)
treea8ba2d0edc5d296e2720ea9dca1546e6bd82ee26
parenta353c00eb6fdbc4480748aaffd5b2d5705debcdc (diff)
Put all autopkgtest into a control.autodep8
-rw-r--r--debian/tests/control11
-rw-r--r--debian/tests/control.autodep811
-rwxr-xr-xdebian/tests/python214
-rwxr-xr-xdebian/tests/python2-dbg14
-rwxr-xr-xdebian/tests/python314
-rwxr-xr-xdebian/tests/python3-dbg14
6 files changed, 11 insertions, 67 deletions
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644
index b1a8732..0000000
--- a/debian/tests/control
+++ /dev/null
@@ -1,11 +0,0 @@
-Tests: python2
-Depends: python-silx, python-all
-
-Tests: python2-dbg
-Depends: python-silx-dbg, python-all-dbg
-
-Tests: python3
-Depends: python3-silx, pyfai, python3-all
-
-Tests: python3-dbg
-Depends: python3-silx-dbg, python3-all-dbg \ No newline at end of file
diff --git a/debian/tests/control.autodep8 b/debian/tests/control.autodep8
new file mode 100644
index 0000000..a9eefa0
--- /dev/null
+++ b/debian/tests/control.autodep8
@@ -0,0 +1,11 @@
+Test-Command: set -efu ; for py in $(pyversions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -m unittest discover silx 2>&1 ; done
+Depends: python-all, python-silx
+
+Test-Command: set -efu ; for py in $(pyversions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py-dbg:" ; $py-dbg -m unittest discover silx 2>&1 ; done
+Depends: python-all-dbg, python-silx-dbg
+
+Test-Command: set -efu ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -m unittest discover silx 2>&1 ; done
+Depends: python3-all, python3-silx
+
+Test-Command: set -efu ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py-dbg:" ; $py-dbg -m unittest discover silx 2>&1 ; done
+Depends: python3-all-dbg, python3-silx-dbg
diff --git a/debian/tests/python2 b/debian/tests/python2
deleted file mode 100755
index 39734a1..0000000
--- a/debian/tests/python2
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -efu
-
-export LC_ALL=C.UTF-8
-
-pys="$(pyversions -rv 2> /dev/null)"
-
-cp -a silx/test "$AUTOPKGTEST_TMP"
-cd "$AUTOPKGTEST_TMP"
-
-for py in $pys; do
- echo "=== python$py ==="
- python$py -m unittest discover test/ 2>&1
-done
diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg
deleted file mode 100755
index 0c86b9a..0000000
--- a/debian/tests/python2-dbg
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -efu
-
-export LC_ALL=C.UTF-8
-
-pys="$(pyversions -rv 2> /dev/null)"
-
-cp -a silx/test "$AUTOPKGTEST_TMP"
-cd "$AUTOPKGTEST_TMP"
-
-for py in $pys; do
- echo "=== python$py ==="
- python$py-dbg -m unittest discover test/ 2>&1
-done
diff --git a/debian/tests/python3 b/debian/tests/python3
deleted file mode 100755
index e63e9c5..0000000
--- a/debian/tests/python3
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -efu
-
-export LC_ALL=C.UTF-8
-
-pys="$(py3versions -rv 2> /dev/null)"
-
-cp -a silx/test "$AUTOPKGTEST_TMP"
-cd "$AUTOPKGTEST_TMP"
-
-for py in $pys; do
- echo "=== python$py ==="
- python$py -m unittest discover test/ 2>&1
-done
diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg
deleted file mode 100755
index ae791ae..0000000
--- a/debian/tests/python3-dbg
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -efu
-
-export LC_ALL=C.UTF-8
-
-pys="$(py3versions -rv 2> /dev/null)"
-
-cp -a silx/test "$AUTOPKGTEST_TMP"
-cd "$AUTOPKGTEST_TMP"
-
-for py in $pys; do
- echo "=== python$py ==="
- python$py-dbg -m unittest discover test/ 2>&1
-done