diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 4 | ||||
-rw-r--r-- | debian/tests/pytest | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..2d2d015 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,4 @@ +Tests: pytest +Depends: python3-all, + python3-pytest, + @, diff --git a/debian/tests/pytest b/debian/tests/pytest new file mode 100644 index 0000000..54ef298 --- /dev/null +++ b/debian/tests/pytest @@ -0,0 +1,13 @@ +#!/bin/sh +set -efu + +pys="$(py3versions -s 2> /dev/null)" + +cp -a tests "$AUTOPKGTEST_TMP" +cd "$AUTOPKGTEST_TMP" + + +for py in $pys; do + echo "=== $py ===" + $py -m pytest +done |