test: allow skipping tests on Xephyr with GLES

The GLES tests need an actual GPU (/dev/dri/* device), which is not available
within github CI runners, so we need to skip those when running there.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-28 11:10:34 +02:00
parent dad67772fb
commit 1115ac52ac
3 changed files with 8 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ on:
jobs:
xserver-build-ubuntu:
env:
MESON_ARGS: -Dc_args="-fno-common" -Dprefix=/usr -Dxephyr=true -Dwerror=false -Dxcsecurity=true -Dxorg=true -Dxvfb=true -Dxnest=true
MESON_ARGS: -Dc_args="-fno-common" -Dprefix=/usr -Dxephyr=true -Dwerror=false -Dxcsecurity=true -Dxorg=true -Dxvfb=true -Dxnest=true -Dtest_xephyr_gles=false
LIBGL_ALWAYS_SOFTWARE: 1
GALLIUM_DRIVER: llvmpipe
PIGLIT_PLATFORM: x11_egl

View File

@@ -152,3 +152,5 @@ option('legacy_nvidia_padding', type: 'boolean', value: false,
# testsuite fine tuning - some things might not run everywhere
option('test_rendercheck_triangles', type: 'boolean', value: false,
description: 'testsuite: run rendercheck triangles tests (might fail on Xephyr)')
option('test_xephyr_gles', type: 'boolean', value: true,
description: 'testsuite: run gles2/gles3 tests on Xephyr (might fail w/o DRI)')

View File

@@ -112,7 +112,11 @@ if get_option('xvfb')
endif
if get_option('xephyr') and build_glamor
foreach testsuite : ['','-gles2','-gles3']
glamor_tests = ['']
if get_option('test_xephyr_gles')
glamor_tests += ['-gles2','-gles3']
endif
foreach testsuite : glamor_tests
test_env = piglit_env
if(testsuite == '-gles2')
test_env = gles20_env