From b2a39a11b92c52e5f566bf7ec990091112fa6ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sun, 5 Aug 2018 08:48:23 +0200 Subject: Put all autopkgtest into a control.autodep8 --- debian/tests/control | 11 ----------- debian/tests/control.autodep8 | 11 +++++++++++ debian/tests/python2 | 14 -------------- debian/tests/python2-dbg | 14 -------------- debian/tests/python3 | 14 -------------- debian/tests/python3-dbg | 14 -------------- 6 files changed, 11 insertions(+), 67 deletions(-) delete mode 100644 debian/tests/control create mode 100644 debian/tests/control.autodep8 delete mode 100755 debian/tests/python2 delete mode 100755 debian/tests/python2-dbg delete mode 100755 debian/tests/python3 delete mode 100755 debian/tests/python3-dbg (limited to 'debian') 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 -- cgit v1.2.3