| 1 | #!/bin/sh |
| 2 | set -e -u |
| 3 | |
| 4 | # Make the tests use the API specified |
| 5 | export QT_API=$1 |
| 6 | export PYTEST_QT_API=$1 |
| 7 | |
| 8 | cp -a example.py qtawesome/tests "$AUTOPKGTEST_TMP" |
| 9 | cd "$AUTOPKGTEST_TMP" |
| 10 | |
| 11 | for py in $(py3versions -s) |
| 12 | do |
| 13 | echo ">>>> Testing unit tests with $py:" |
| 14 | $py -m pytest tests |
| 15 | # example.py, and so probably qtawesome itself, is currently broken: |
| 16 | # see https://github.com/spyder-ide/qtawesome/issues/284 |
| 17 | # echo ">>>> Running example.py with $py:" |
| 18 | # xvfb-run -a -s "-screen 0 1024x768x24 +extension GLX" $py example.py |
| 19 | done |