Add upstream testsuite as autopkgtest.

This commit is contained in:
Håvard Flaget Aasen 2021-11-28 18:56:39 +01:00
parent 79456ea535
commit 798e099483
No known key found for this signature in database
GPG key ID: F9377598F04C830A
2 changed files with 15 additions and 0 deletions

4
debian/tests/control vendored Normal file
View file

@ -0,0 +1,4 @@
Tests: upstream
Depends: @,
python3-all,
python3-pytest,

11
debian/tests/upstream vendored Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -efu
cp -rv tests "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
for py in $(py3versions -s); do
echo "[*] testing $py:"
$py -m pytest
done