testsuite: Add run for GLES
authorBenjamin Otte <otte@redhat.com>
Fri, 8 Oct 2021 16:38:51 +0000 (18:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 9 Oct 2021 04:27:21 +0000 (06:27 +0200)
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.

.gitlab-ci.yml
.gitlab-ci/run-tests.sh
testsuite/meson.build

index 70949b9e186d9fdeb06d3a099e1aa105c8be1d76..212c8576432afa958c8acd21d7c17c187b606dbb 100644 (file)
@@ -91,6 +91,7 @@ fedora-x86_64:
     - 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:
index fa29859b6f5da0b02e10e9ed3107b03b5ada736f..e68cf5a6c99dec51aafabf4c78966b30d5867a87 100755 (executable)
@@ -44,6 +44,24 @@ case "${backend}" in
     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)"
 
@@ -62,6 +80,12 @@ case "${backend}" in
     exit_code=0
     kill ${server}
     ;;
+
+  *)
+    echo "Failed to add ${backend} to .gitlab-ci/run-tests.sh"
+    exit 1
+    ;;
+
 esac
 
 cd ${builddir}
index 0b75c90811fbc4809a01a2c0eb1695e381b8f928..10fa16dfbc4c2f27317f0758992da8a85e73c7f5 100644 (file)
@@ -30,6 +30,18 @@ if wayland_enabled
                         '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