From 530cfffd5c0abccadb0d875d5561a9f0e425c298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Fri, 3 Aug 2018 13:58:11 +0200 Subject: Added AutoPkgTests --- debian/changelog | 6 ++++++ debian/tests/control | 11 +++++++++++ debian/tests/python2 | 14 ++++++++++++++ debian/tests/python2-dbg | 14 ++++++++++++++ debian/tests/python3 | 14 ++++++++++++++ debian/tests/python3-dbg | 14 ++++++++++++++ 6 files changed, 73 insertions(+) create mode 100644 debian/tests/control create mode 100755 debian/tests/python2 create mode 100755 debian/tests/python2-dbg create mode 100755 debian/tests/python3 create mode 100755 debian/tests/python3-dbg (limited to 'debian') 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 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 -- cgit v1.2.3