This is supposed to test the most fallback GL stuff, so we might want to
set even more env vars here.
Also enable the run for the Fedora builder in CI.
- meson compile -C _build_hello
- .gitlab-ci/run-tests.sh _build x11
- .gitlab-ci/run-tests.sh _build wayland
+ - .gitlab-ci/run-tests.sh _build waylandgles
- .gitlab-ci/run-tests.sh _build broadway
release-build:
kill ${compositor}
;;
+ waylandgles)
+ export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
+
+ weston --backend=headless-backend.so --socket=wayland-6 --idle-time=0 &
+ compositor=$!
+ export WAYLAND_DISPLAY=wayland-6
+
+ meson test -C ${builddir} \
+ --timeout-multiplier "${MESON_TEST_TIMEOUT_MULTIPLIER}" \
+ --print-errorlogs \
+ --setup=${backend} \
+ --suite=gtk \
+ --no-suite=gsk-compare-broadway
+
+ exit_code=$?
+ kill ${compositor}
+ ;;
+
broadway)
export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
exit_code=0
kill ${server}
;;
+
+ *)
+ echo "Failed to add ${backend} to .gitlab-ci/run-tests.sh"
+ exit 1
+ ;;
+
esac
cd ${builddir}
'TEST_OUTPUT_SUBDIR=wayland',
])
+ if get_option('debug')
+ gdk_debug = 'GDK_DEBUG=gl-gles,default-settings'
+ else
+ gdk_debug = 'GDK_DEBUG=gl-gles'
+ endif
+ add_test_setup ('waylandgles',
+ env: common_env + [
+ 'GDK_BACKEND=wayland',
+ 'TEST_OUTPUT_SUBDIR=waylandgles',
+ gdk_debug,
+ ])
+
endif
if os_win32