File: qtconsole-tests

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

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

cp -r debian/run_tests qtconsole/tests "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -s); do
    echo "Testing with $py (pytest call):"
    # give it five chances; PySide 6 is quite flaky
    xvfb-run -a -s "-screen 0 1024x768x24" \
        ./run_tests $py -m pytest -v --color=no --deselect tests/test_inprocess_kernel.py tests
    echo "Testing with $py (unittest call):"
    xvfb-run -a -s "-screen 0 1024x768x24" \
        $py -m unittest -v tests/test_inprocess_kernel.py
done