File: qtawesome-tests

package info (click to toggle)
python-qtawesome 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,948 kB
  • sloc: python: 1,693; makefile: 177; sh: 10
file content (19 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e -u

# Make the tests use the API specified
export QT_API=$1
export PYTEST_QT_API=$1

cp -a example.py qtawesome/tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -s)
do
    echo ">>>> Testing unit tests with $py:"
    $py -m pytest tests
    # example.py, and so probably qtawesome itself, is currently broken:
    # see https://github.com/spyder-ide/qtawesome/issues/284
    # echo ">>>> Running example.py with $py:"
    # xvfb-run -a -s "-screen 0 1024x768x24 +extension GLX" $py example.py
done