diff options
| author | Ionen Wolkens <ionen@gentoo.org> | 2023-08-21 08:36:05 -0400 |
|---|---|---|
| committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-05 09:01:03 -0400 |
| commit | 424c9f5509023644cc713412233d8fcd7a614e50 (patch) | |
| tree | a85208fb3925fbd3ffacf193affb14458dae9aff /dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | |
| parent | 8eb85e6dd5b2f3fc683fed0eda7381ad49628593 (diff) | |
| download | gentoo-424c9f5509023644cc713412233d8fcd7a614e50.tar.gz gentoo-424c9f5509023644cc713412233d8fcd7a614e50.tar.bz2 gentoo-424c9f5509023644cc713412233d8fcd7a614e50.zip | |
dev-qt/qtwebengine: various adjustments for tests (qt6)
* use -j1 (similarly to when I tried to use python-xdist on
qutebrowser which uses qtwebengine, parallel tests don't
seem to work so well here either)
* skip tests that need network
* skip cert test, not looked too closely but likely missing
something or (maybe) expirations are causing issues
* export various variables to stop it from using the system's
qtwebengine (otherwise fails if not installed)
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtwebengine/qtwebengine-6.9999.ebuild')
| -rw-r--r-- | dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild index c7527f95be63..31ce642b8e27 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild @@ -243,3 +243,31 @@ src_configure() { qt6-build_src_configure } + +src_test() { + if [[ ${EUID} == 0 ]]; then + # almost every tests fail, so skip entirely + ewarn "Skipping tests due to running as root (chromium refuses this configuration)." + return + fi + + local CMAKE_SKIP_TESTS=( + # fails with network sandbox + tst_loadsignals + tst_qquickwebengineview + tst_qwebengineview + # certs verfication seems flaky and gives expiration warnings + tst_qwebengineclientcertificatestore + ) + + # prevent using the system's qtwebengine + # (use glob to avoid unnecessary complications with arch dir) + local resources=( "${BUILD_DIR}/src/core/${CMAKE_BUILD_TYPE}/"* ) + [[ -d ${resources[0]} ]] || die "invalid resources path: ${resources[0]}" + local -x QTWEBENGINEPROCESS_PATH=${BUILD_DIR}${QT6_LIBEXECDIR#"${QT6_PREFIX}"}/QtWebEngineProcess + local -x QTWEBENGINE_LOCALES_PATH=${resources[0]}/qtwebengine_locales + local -x QTWEBENGINE_RESOURCES_PATH=${resources[0]} + + # random failures in several tests without -j1 + qt6-build_src_test -j1 +} |
