summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control4
-rw-r--r--debian/tests/unittests10
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..9f5e81a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Tests: unittests
+Depends:
+ @builddeps@,
+Restrictions: allow-stderr
diff --git a/debian/tests/unittests b/debian/tests/unittests
new file mode 100644
index 0000000..a4c6cc7
--- /dev/null
+++ b/debian/tests/unittests
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+set -x
+
+CWD=$(pwd)
+PYTHON3S=$(py3versions -vs)
+for i in ${PYTHON3S} ; do
+ PYTHON=python${i} python${i} -m pytest -v tests
+done