Skip some tests with small textures

When textures are too large, we will scale them down
to fit the max texture size, which will cause comparisons
to fail.
This commit is contained in:
Matthias Clasen
2023-05-01 16:00:24 -04:00
parent b79d4a3a22
commit a235b59089
3 changed files with 17 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ case "${backend}" in
--suite=gtk \
--no-suite=failing \
--no-suite=flaky \
--no-suite=${backend}_failing \
--no-suite=gsk-compare-broadway
exit_code=$?

View File

@@ -48,8 +48,7 @@ compare_render_tests = [
'empty-cross-fade',
'empty-debug',
'empty-inset-shadow',
# this test fails for some of the backends
# 'empty-linear-gradient',
'empty-linear-gradient',
'empty-mask',
'empty-opacity',
'empty-outset-shadow',
@@ -108,10 +107,16 @@ renderers = [
compare_xfails = [
# Both tests fail because of some font rendering issue
'empty-linear-gradient',
'unaligned-offscreen',
'upside-down-label-3d', # not really 3d, but cairo fails it
]
compare_xfails_small_texture = [
'big-checkerboard',
'big-checkerboard-scaled-down'
]
foreach renderer : renderers
foreach testname : compare_render_tests
@@ -129,6 +134,10 @@ foreach renderer : renderers
suites += 'failing'
endif
if compare_xfails_small_texture.contains(testname)
suites += 'wayland_smalltexture_failing'
endif
if ((exclude_term == '' or not testname.contains(exclude_term)) and
(renderer_name != 'broadway' or broadway_enabled))
test(renderer_name + ' ' + testname, compare_render,

View File

@@ -25,7 +25,7 @@ setups = [
{ 'backend': 'broadway', 'if': broadway_enabled, },
{ 'name': 'wayland_smalltexture',
'backend': 'wayland', 'if': wayland_enabled,
'env': ['GSK_MAX_TEXTURE_SIZE=1024'], },
'env': ['GSK_MAX_TEXTURE_SIZE=1024'] },
{ 'backend': 'win32', 'if': os_win32 },
]
@@ -39,6 +39,10 @@ foreach setup : setups
exclude += 'gsk-compare-broadway'
endif
if name == 'wayland_smalltexture'
exclude += 'wayland_smalltexture_failing'
endif
env = common_env + [
'GDK_BACKEND=@0@'.format(backend),
] + setup.get('env', [])