From 7c94e91d120d1efddd75ddf75e18edf26dcbd022 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:49:26 +0200 Subject: Adding debian version 2024.03.10-1. Signed-off-by: Daniel Baumann --- debian/tests/control | 6 ++++++ debian/tests/upstream-tests.sh | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 debian/tests/control create mode 100755 debian/tests/upstream-tests.sh (limited to 'debian/tests') diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..3d4e912 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,6 @@ +Tests: upstream-tests.sh +Depends: + @, + @builddeps@, + python3-all, +Restrictions: allow-stderr diff --git a/debian/tests/upstream-tests.sh b/debian/tests/upstream-tests.sh new file mode 100755 index 0000000..aeb1205 --- /dev/null +++ b/debian/tests/upstream-tests.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +set -u + +export LC_ALL=C.UTF-8 +unset http_proxy https_proxy no_proxy + +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 and not websockets" +done -- cgit v1.2.3