| 1 | #!/bin/sh |
| 2 | set -e -u -x |
| 3 | cp -r pyproject.toml conftest.py tests/ "$AUTOPKGTEST_TMP" |
| 4 | cd "$AUTOPKGTEST_TMP/tests/" |
| 5 | export PYTHONWARNINGS=d |
| 6 | export FORBID_MISSING_APT_PKG=1 |
| 7 | export FORBID_MISSING_GPGV=1 |
| 8 | export FORBID_MISSING_AR=1 |
| 9 | |
| 10 | for py in $(py3versions -s); do |
| 11 | echo "----------------------------------------------" |
| 12 | echo "Testing with $py" |
| 13 | echo "----------------------------------------------" |
| 14 | # text mode file opening is locale dependent so try both ASCII and UTF-8 |
| 15 | LC_ALL=C $py -m pytest |
| 16 | LC_ALL=C.UTF-8 $py -m pytest |
| 17 | done |