summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:21:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:21:11 +0000
commit3eda4e08d7de7923b6f4faf3cabd4eaeaebdf0d3 (patch)
tree58db4e5b1587dfa44ff3f19fa188964f4512b078 /debian/tests
parentAdding upstream version 0.6.0+dfsg1. (diff)
downloadpython-installer-3eda4e08d7de7923b6f4faf3cabd4eaeaebdf0d3.tar.xz
python-installer-3eda4e08d7de7923b6f4faf3cabd4eaeaebdf0d3.zip
Adding debian version 0.6.0+dfsg1-1.debian/0.6.0+dfsg1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control6
-rwxr-xr-xdebian/tests/unittests13
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bde3414
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: unittests
+Depends:
+ python3-all,
+ python3-installer,
+ python3-mock,
+ python3-pytest
diff --git a/debian/tests/unittests b/debian/tests/unittests
new file mode 100755
index 0000000..d2fecdc
--- /dev/null
+++ b/debian/tests/unittests
@@ -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 tests
+done