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

@@ -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