| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e -u |
| 4 | |
| 5 | cp -a test "${AUTOPKGTEST_TMP}" |
| 6 | |
| 7 | PYBUILD_OPTIONS="-k \ |
| 8 | not test_script_execution_details and \ |
| 9 | not test_module_execution_details and \ |
| 10 | not test_path_execution_details and \ |
| 11 | not test_program_passed_as_string_execution_details \ |
| 12 | " |
| 13 | |
| 14 | |
| 15 | for py3vers in $(py3versions -s); do |
| 16 | echo |
| 17 | echo "***************************" |
| 18 | echo "*** Testing with ${py3vers}" |
| 19 | echo "***************************" |
| 20 | echo |
| 21 | cd ${AUTOPKGTEST_TMP} && \ |
| 22 | echo -e "Content of current working folder:\n" && \ |
| 23 | ls -la && \ |
| 24 | echo -e "Running tests...\n" && \ |
| 25 | PYTHONPATH=. "${py3vers}" -m pytest -v "${PYBUILD_OPTIONS}" test && \ |
| 26 | rm -rf .pytest_cache || exit 1 |
| 27 | done |
| 28 | |
| 29 | echo |
| 30 | |
| 31 | exit 0 |
| 32 |