testsuite/gsk: Only run Broadway tests if enabled

We may not have enabled building the broadway renderer for our build, so don't
run the broadway renderer tests unless it is enabled.
This commit is contained in:
Chun-wei Fan 2020-08-03 16:23:30 +08:00
parent cf5a6a003a
commit f454c6f9d0

View File

@ -92,7 +92,8 @@ renderers = [
foreach renderer : renderers
foreach test : compare_render_tests
if (renderer[1] == '' or not test.contains(renderer[1]))
if ((renderer[1] == '' or not test.contains(renderer[1])) and
(renderer[0] != 'broadway' or broadway_enabled))
test(renderer[0] + ' ' + test, compare_render,
args: ['--output', join_paths(meson.current_build_dir(), 'compare', renderer[0]),
join_paths(meson.current_source_dir(), 'compare', test + '.node'),