Add autopkgtest
This commit is contained in:
parent
97d092691e
commit
40c1e53d2a
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -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
4
debian/tests/control
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Tests: unittests
|
||||
Depends: @,
|
||||
@builddeps@,
|
||||
Restrictions: allow-stderr
|
18
debian/tests/unittests
vendored
Normal file
18
debian/tests/unittests
vendored
Normal 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
|
Loading…
Reference in a new issue