summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control6
-rw-r--r--debian/tests/unittests14
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..cc74f8e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: unittests
+Depends: python3-all,
+ python3-markdown-it,
+ python3-pytest,
+ python3-pytest-regressions,
+ @,
diff --git a/debian/tests/unittests b/debian/tests/unittests
new file mode 100644
index 0000000..feb6ac6
--- /dev/null
+++ b/debian/tests/unittests
@@ -0,0 +1,14 @@
+#!/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 2>&1
+done