Debian Codegraph @

debian/tests/unittests

raw
1 #!/bin/sh
2 set -efu
3
4 pythons="$(py3versions -sv)"
5
6 cp -a tests $AUTOPKGTEST_TMP
7 mkdir $AUTOPKGTEST_TMP/utils
8 ln -s /usr/share/python3-pycparser/fake_libc_include $AUTOPKGTEST_TMP/utils
9 ln -s /usr/share/doc/python3-pycparser/examples $AUTOPKGTEST_TMP/
10 cd "$AUTOPKGTEST_TMP"
11
12 for py in $pythons; do
13 echo "=== python$py ==="
14 python$py -m unittest discover -v 2>&1
15 done