autopkgtest: Add a first basic setup
Carsten Schoenert
1 year, 6 months ago
0 | #! /bin/sh | |
1 | ||
2 | cp -r tests ${AUTOPKGTEST_TMP} | |
3 | ||
4 | for py3vers in $(py3versions -s); do | |
5 | echo | |
6 | echo "***************************" | |
7 | echo "*** Testing with ${py3vers}" | |
8 | echo "***************************" | |
9 | echo | |
10 | cd ${AUTOPKGTEST_TMP} && \ | |
11 | echo "Content of current working folder:\n" && \ | |
12 | ls -la && \ | |
13 | echo "Running tests...\n" && \ | |
14 | PYTHONPATH=. ${py3vers} -m pytest -v tests && \ | |
15 | rm -rf .pytest_cache || exit 1 | |
16 | done |