Commit 1618697d authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Pekka Paalanen

build: add test-gl-renderer option

This shall be used by CI due to https://gitlab.freedesktop.org/mesa/mesa/issues/2219

It defaults to true, meaning that people by default will be running the
GL-renderer tests. It works fine on hardware drivers, just not llvmpipe.
Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
parent 007ab1e5
......@@ -115,6 +115,8 @@ config_h.set_quoted('LIBEXECDIR', dir_libexec)
config_h.set_quoted('MODULEDIR', dir_module_weston)
config_h.set_quoted('LIBWESTON_MODULEDIR', dir_module_libweston)
config_h.set10('TEST_GL_RENDERER', get_option('test-gl-renderer'))
backend_default = get_option('backend-default')
if backend_default == 'auto'
foreach b : [ 'headless', 'fbdev', 'x11', 'wayland', 'drm' ]
......
......@@ -204,6 +204,12 @@ option(
value: true,
description: 'Tests: output JUnit XML results'
)
option(
'test-gl-renderer',
type: 'boolean',
value: true,
description: 'Tests: allow running with GL-renderer'
)
option(
'doc',
type: 'boolean',
......
......@@ -229,6 +229,13 @@ execute_compositor(const struct compositor_setup *setup,
}
#endif
#if !TEST_GL_RENDERER
if (setup->renderer == RENDERER_GL) {
fprintf(stderr, "GL-renderer disabled for tests, skipping.\n");
return RESULT_SKIP;
}
#endif
prog_args_init(&args);
/* argv[0] */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment