| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e -u |
| 4 | |
| 5 | PYTEST_OPTIONS="-k 'not test_detect_all_and_detect_one_should_agree'" |
| 6 | |
| 7 | cp -a setup.cfg test.py tests "${AUTOPKGTEST_TMP}" |
| 8 | |
| 9 | for py3vers in $(py3versions -s); do |
| 10 | echo |
| 11 | echo "***************************" |
| 12 | echo "*** Testing with ${py3vers}" |
| 13 | echo "***************************" |
| 14 | echo |
| 15 | cd ${AUTOPKGTEST_TMP} && \ |
| 16 | echo -e "Content of current working folder:\n" && \ |
| 17 | ls -la && \ |
| 18 | echo -e "Running tests...\n" && \ |
| 19 | eval ${py3vers} -m pytest -sv test.py ${PYTEST_OPTIONS} && \ |
| 20 | rm -rf __pycache__ .hypothesis || exit 1 |
| 21 | done |
| 22 | |
| 23 | echo |
| 24 | |
| 25 | exit 0 |