Debian Codegraph @

debian/tests/unittests3

raw
1 #!/bin/sh
2 set -efu
3
4 pythons="$(py3versions -s)"
5 cp -a src/c testing "$AUTOPKGTEST_TMP"
6
7 # Not appropriate:
8 rm "$AUTOPKGTEST_TMP"/testing/cffi0/test_version.py
9 rm "$AUTOPKGTEST_TMP"/testing/cffi1/test_parse_c_type.py
10
11 # Temporary hack until cffi defaults to calling virtualenv with --never-download
12 export VIRTUALENV_DOWNLOAD=no
13
14 # Delete any stale __pycache__s
15 find "$AUTOPKGTEST_TMP" -name '__pycache__' -print0 | xargs -0 rm -rf
16
17 cd "$AUTOPKGTEST_TMP"
18 for py in $pythons; do
19 echo "======= $py ======="
20 $py -m pytest --tb=native c testing
21 echo "======= $py-dbg ======="
22 $py-dbg -m pytest --tb=native c testing 2>&1
23 done