testsuite: Add NGL and Vulkan renderer to compare tests

Add a testsuite called gsk-compare-vulkan to run
the gsk renderer tests with the Vulkan renderer and
gsk-compare-ngl to run them with the NGL renderer.

To run the tests locally, you can do:

meson test -C_build --suite gsk-compare-vulkan
This commit is contained in:
Matthias Clasen 2023-05-07 07:41:03 -04:00 committed by Benjamin Otte
parent 03cd652063
commit c8ae2d9002

View File

@ -155,6 +155,8 @@ renderers = [
{ 'name': 'gl' },
{ 'name': 'broadway' },
{ 'name': 'cairo' },
{ 'name': 'ngl' },
{ 'name': 'vulkan' },
]
compare_xfails = [
@ -184,10 +186,6 @@ foreach renderer : renderers
'gsk-compare-' + renderer_name,
]
if compare_xfails.contains(testname)
suites += 'failing'
endif
if compare_xfails_small_texture.contains(testname)
suites += 'wayland_gles2_failing'
endif
@ -200,7 +198,8 @@ foreach renderer : renderers
]
if ((not testname.contains(exclude_term)) and
(renderer_name != 'broadway' or broadway_enabled))
(renderer_name != 'broadway' or broadway_enabled) and
(renderer_name != 'vulkan' or have_vulkan))
test(renderer_name + ' ' + testname, compare_render,
args: [
'--output', join_paths(meson.current_build_dir(), 'compare', renderer_name),