Debian Codegraph @

debian/tests/unittests

raw
1 #!/bin/sh
2 set -efu
3
4 pys="$(py3versions -s 2> /dev/null)"
5
6 cp -a pyproject.toml tests "$AUTOPKGTEST_TMP"
7
8 # needed by `test_expand_args`
9 mkdir $AUTOPKGTEST_TMP/docs
10 cp -a docs/conf.py $AUTOPKGTEST_TMP/docs
11 cp -a pyproject.toml "$AUTOPKGTEST_TMP"
12
13 cd "$AUTOPKGTEST_TMP"
14
15 for py in $pys; do
16 echo "=== $py ==="
17 $py -m pytest tests 2>&1
18 done