Add autopkgtest

This commit is contained in:
Sandro Tosi 2022-01-02 21:19:53 -05:00
parent 97d092691e
commit 40c1e53d2a
3 changed files with 28 additions and 0 deletions

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
python-click (8.0.3-2) UNRELEASED; urgency=medium
* Add autopkgtest
-- Sandro Tosi <morph@debian.org> Sun, 02 Jan 2022 21:19:45 -0500
python-click (8.0.3-1) unstable; urgency=medium
* New upstream release

4
debian/tests/control vendored Normal file
View file

@ -0,0 +1,4 @@
Tests: unittests
Depends: @,
@builddeps@,
Restrictions: allow-stderr

18
debian/tests/unittests vendored Normal file
View file

@ -0,0 +1,18 @@
#!/bin/sh
set -efu
pys="$(py3versions -r 2> /dev/null)"
cp -a setup.cfg tests "$AUTOPKGTEST_TMP"
# needed by `test_expand_args`
mkdir $AUTOPKGTEST_TMP/docs
cp -a docs/conf.py $AUTOPKGTEST_TMP/docs
cp -a setup.cfg "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
for py in $pys; do
echo "=== $py ==="
$py -m pytest tests 2>&1
done