summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control5
-rwxr-xr-xdebian/tests/upstream-tests.sh16
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..cd70b0a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: upstream-tests.sh
+Depends:
+ @,
+ @builddeps@,
+ python3-all,
diff --git a/debian/tests/upstream-tests.sh b/debian/tests/upstream-tests.sh
new file mode 100755
index 0000000..b496061
--- /dev/null
+++ b/debian/tests/upstream-tests.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+set -u
+
+export LC_ALL=C.UTF-8
+
+cp -rv devscripts "$AUTOPKGTEST_TMP"
+cp -rv test "$AUTOPKGTEST_TMP"
+cp -rv yt_dlp "$AUTOPKGTEST_TMP"
+
+cd "$AUTOPKGTEST_TMP"
+
+for python in $(py3versions --supported);do
+ printf "###\\n### Now testing %s\\n###\\n" "$python"
+ "$python" -m pytest -k "not download"
+done