diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 3 | ||||
-rwxr-xr-x | debian/tests/upstream.sh | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..80e8c6e --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: upstream.sh +Depends: python3-all, python3-pot, python3-pytest +Restrictions: allow-stderr diff --git a/debian/tests/upstream.sh b/debian/tests/upstream.sh new file mode 100755 index 0000000..419d9a6 --- /dev/null +++ b/debian/tests/upstream.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e +set -u + +testdir=test +cp -R $testdir $AUTOPKGTEST_TMP +cd $AUTOPKGTEST_TMP + +for py3ver in $(py3versions -vs) +do + echo "Running tests with Python ${py3ver}." + /usr/bin/python${py3ver} -B -m pytest $testdir + rm -rf .pytest_cache + echo "**********" +done |