File: qtpy-tests

package info (click to toggle)
python-qtpy 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 812 kB
  • sloc: python: 3,208; sh: 11; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -e

# qtwebengine is only supported on selected architectures
# skip qtwebengine tests if python3-pyqt5.qtwebengine is not available
if ! $( dpkg -s python3-pyqt5.qtwebengine | grep "Status:" | grep -q "install ok installed" ); then
  SKIP_TEST=(-k 'not webengine')
fi

cp -r qtpy/tests "$AUTOPKGTEST_TMP"
PYS=$(py3versions -s)
for py in $PYS; do
  cd "$AUTOPKGTEST_TMP"
  echo "Testing with $py:"
  xvfb-run -a $py -m pytest -v "${SKIP_TEST[@]}"
done