1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/bin/bash
set -e
# Make the tests use the API specified
export QT_API=$1
# qtwebengine is only supported on selected architectures.
# We therefore skip qtwebengine tests if the appropriate qtwebengine package
# is not available.
qtwebengine_test=""
declare -A qtpkg
qtpkg=(
[pyqt5]=python3-pyqt5.qtwebengine
[pyqt6]=python3-pyqt6.qtwebengine
[pyside6]=python3-pyside6.qtwebenginecore
)
if ! $( dpkg -s ${qtpkg[$QT_API]} 2>/dev/null | grep "Status:" | grep -q "install ok installed" )
then
qtwebengine_test="not webengine and"
fi
SKIP_TEST="${qtwebengine_test} not test_isalive"
# One test segfaults on ci.debian.net, though it works fine in an
# schroot. We therefore simply skip it.
if [ $(dpkg --print-architecture) == arm64 ]
then
SKIP_TEST="${SKIP_TEST} and not test_qfiledialog_dir_compat"
fi
export USE_CONDA=No
mkdir "$AUTOPKGTEST_TMP"/qtpy
cp pytest.ini "$AUTOPKGTEST_TMP"
cp -r qtpy/tests "$AUTOPKGTEST_TMP"/qtpy
PYS=$(py3versions -s)
for py in $PYS; do
cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -m pytest -v -k "$SKIP_TEST"
done
|