diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-08-03 13:58:11 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-08-03 14:08:43 +0200 |
commit | 530cfffd5c0abccadb0d875d5561a9f0e425c298 (patch) | |
tree | 701845495bff5aa1de38913624fee2401318d03d | |
parent | 302d3bcf3ef555284ce1bcf5cd7cd371addfa608 (diff) |
Added AutoPkgTests
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/tests/control | 11 | ||||
-rwxr-xr-x | debian/tests/python2 | 14 | ||||
-rwxr-xr-x | debian/tests/python2-dbg | 14 | ||||
-rwxr-xr-x | debian/tests/python3 | 14 | ||||
-rwxr-xr-x | debian/tests/python3-dbg | 14 |
6 files changed, 73 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 472053a..be81d6c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +silx (0.8.0+dfsg-2) UNRELEASED; urgency=medium + + * Add autopkgtests + + -- Picca Frédéric-Emmanuel <picca@debian.org> Tue, 31 Jul 2018 16:24:57 +0200 + silx (0.8.0+dfsg-1) unstable; urgency=medium * New upstream version 0.8.0+dfsg diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..b1a8732 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,11 @@ +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/python2 b/debian/tests/python2 new file mode 100755 index 0000000..31e3d64 --- /dev/null +++ b/debian/tests/python2 @@ -0,0 +1,14 @@ +#!/bin/sh +set -efu + +export LC_ALL=C.UTF-8 + +pys="$(pyversions -rv 2> /dev/null)" + +cp -a tests "$AUTOPKGTEST_TMP" +cd "$AUTOPKGTEST_TMP" + +for py in $pys; do + echo "=== python$py ===" + python$py -m unittest discover silx/test/ 2>&1 +done diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg new file mode 100755 index 0000000..f43398e --- /dev/null +++ b/debian/tests/python2-dbg @@ -0,0 +1,14 @@ +#!/bin/sh +set -efu + +export LC_ALL=C.UTF-8 + +pys="$(pyversions -rv 2> /dev/null)" + +cp -a tests "$AUTOPKGTEST_TMP" +cd "$AUTOPKGTEST_TMP" + +for py in $pys; do + echo "=== python$py ===" + python$py-dbg -m unittest discover silx/test/ 2>&1 +done diff --git a/debian/tests/python3 b/debian/tests/python3 new file mode 100755 index 0000000..51858b8 --- /dev/null +++ b/debian/tests/python3 @@ -0,0 +1,14 @@ +#!/bin/sh +set -efu + +export LC_ALL=C.UTF-8 + +pys="$(py3versions -rv 2> /dev/null)" + +cp -a tests "$AUTOPKGTEST_TMP" +cd "$AUTOPKGTEST_TMP" + +for py in $pys; do + echo "=== python$py ===" + python$py -m unittest discover silx/test/ 2>&1 +done diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg new file mode 100755 index 0000000..d9c1208 --- /dev/null +++ b/debian/tests/python3-dbg @@ -0,0 +1,14 @@ +#!/bin/sh +set -efu + +export LC_ALL=C.UTF-8 + +pys="$(py3versions -rv 2> /dev/null)" + +cp -a tests "$AUTOPKGTEST_TMP" +cd "$AUTOPKGTEST_TMP" + +for py in $pys; do + echo "=== python$py ===" + python$py-dbg -m unittest discover silx/test/ 2>&1 +done |