summaryrefslogtreecommitdiffstats
path: root/debian/tests/nosetests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/nosetests13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/nosetests b/debian/tests/nosetests
new file mode 100755
index 0000000..9d858b8
--- /dev/null
+++ b/debian/tests/nosetests
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+cp -r tests "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP"
+
+for py in $(py3versions -s); do
+ $py -m nose2 --verbose --plugin nose2.plugins.doctests --with-doctest \
+ --start-dir /usr/share/dh-python/dhpython
+
+ PYTHONPATH=/usr/share/dh-python $py -m nose2 -v tests
+done