tests: conditionally skip part of alpha-blending

One of the three fixture setups of alpha-blending test requires
color-lcms.so. If color-lcms.so is not built, that fixture fails.

Make it skip as necessary, making the test suite pass with
color-management-lcms=false build option.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2024-01-26 14:31:35 +02:00
parent f18455c3a8
commit 4a028ade32
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,7 @@
if not get_option('color-management-lcms')
build_color_lcms = get_option('color-management-lcms')
config_h.set10('BUILD_COLOR_LCMS', build_color_lcms)
if not build_color_lcms
subdir_done()
endif

View file

@ -73,6 +73,10 @@ fixture_setup(struct weston_test_harness *harness, const struct setup_args *arg)
setup.shell = SHELL_TEST_DESKTOP;
if (arg->color_management) {
#if !BUILD_COLOR_LCMS
return RESULT_SKIP;
#endif
weston_ini_setup(&setup,
cfgln("[core]"),
cfgln("color-management=true"));