Enable GUI tests in Fedora CI job

Use wlheadless-run to run them under Weston.

Closes #23403.
This commit is contained in:
Scott Talbert
2026-09-10 17:54:24 +02:00
committed by Vadim Zeitlin
parent 684420c9fa
commit 98e52b4994
2 changed files with 18 additions and 1 deletions
+17
View File
@@ -62,6 +62,23 @@ jobs:
cd tests
WX_TEST_WEBREQUEST_URL="0" ./test
- run:
name: Run GUI tests
command: |
cat > /usr/local/bin/bwrap \<<'EOF'
#!/bin/sh
# glycin's loader sandbox needs user namespaces unavailable in this container;
# run glycin image loaders unsandboxed, pass everything else to the real bwrap.
for a in "$@"; do case "$a" in /usr/libexec/glycin-loaders/*)
while [ $# -gt 0 ]; do case "$1" in /usr/libexec/glycin-loaders/*) exec "$@";; esac; shift; done;;
esac; done
exec /usr/bin/bwrap "$@"
EOF
chmod +x /usr/local/bin/bwrap
cd tests
wlheadless-run -- ./test_gui
- run:
name: Show ccache statistics
when: always
+1 -1
View File
@@ -128,7 +128,7 @@ case $(uname -s) in
fi
if [ -f /etc/redhat-release ]; then
dnf install -y ${WX_EXTRA_PACKAGES} gawk expat-devel findutils g++ git-core gspell-devel gstreamer1-plugins-base-devel gtk3-devel make libayatana-appindicator-gtk3-devel libcurl-devel libjpeg-devel libnotify-devel libpng-devel libSM-devel libsecret-devel libtiff-devel SDL-devel wayland-protocols-devel webkit2gtk4.1-devel zlib-devel
dnf install -y ${WX_EXTRA_PACKAGES} gawk expat-devel findutils g++ git-core gspell-devel gstreamer1-plugins-base-devel gtk3-devel make libayatana-appindicator-gtk3-devel libcurl-devel libjpeg-devel libnotify-devel libpng-devel libSM-devel libsecret-devel libtiff-devel SDL-devel wayland-protocols-devel webkit2gtk4.1-devel weston xwayland-run zlib-devel
fi
;;