| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | cd ${AUTOPKGTEST_TMP} |
| 5 | |
| 6 | for modulename in nwdiag rackdiag packetdiag ; do |
| 7 | for py in `py3versions -s` ; do |
| 8 | echo "testing module ${modulename} with interpreter ${py}" |
| 9 | ln -s /usr/lib/python3/dist-packages/${modulename}/tests ${AUTOPKGTEST_TMP}/tests |
| 10 | ${py} -m pytest ${AUTOPKGTEST_TMP}/tests |
| 11 | # because the modules share test (file)names, they need to not share cache |
| 12 | rm -rf ${AUTOPKGTEST_TMP}/tests .pytest_cache |
| 13 | done |
| 14 | done |