mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
9f1716edaa
They are always going to fail in that case anyway.
91 lines
2.6 KiB
Meson
91 lines
2.6 KiB
Meson
testexecdir = join_paths(installed_test_bindir, 'gsk')
|
|
testdatadir = join_paths(installed_test_datadir, 'gsk')
|
|
|
|
test_render_nodes = executable(
|
|
'test-render-nodes',
|
|
['test-render-nodes.c',
|
|
'reftest-compare.c'],
|
|
dependencies: libgtk_dep,
|
|
install: get_option('install-tests'),
|
|
install_dir: testexecdir
|
|
)
|
|
|
|
test('nodes (cairo)', test_render_nodes,
|
|
args: [ '--tap', '-k' ],
|
|
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
|
'GSETTINGS_BACKEND=memory',
|
|
'GTK_CSD=1',
|
|
'G_ENABLE_DIAGNOSTIC=0',
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
'GSK_RENDERER=cairo'
|
|
],
|
|
suite: 'gsk')
|
|
|
|
if have_vulkan
|
|
vulkan_test_env = environment()
|
|
vulkan_test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
vulkan_test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
vulkan_test_env.set('GSETTINGS_BACKEND', 'memory')
|
|
vulkan_test_env.set('GTK_CSD', '1')
|
|
vulkan_test_env.set('G_ENABLE_DIAGNOSTIC', '0')
|
|
vulkan_test_env.set('GSK_RENDERER', 'vulkan')
|
|
|
|
test('nodes (vulkan)', test_render_nodes,
|
|
args: [ '--tap', '-k' ],
|
|
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
|
'GSETTINGS_BACKEND=memory',
|
|
'GTK_CSD=1',
|
|
'G_ENABLE_DIAGNOSTIC=0',
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
'GSK_RENDERER=vulkan'
|
|
],
|
|
suite: 'gsk')
|
|
endif
|
|
|
|
test_data = [
|
|
'blendmode.node',
|
|
'blendmode.png',
|
|
'blendmode.vulkan.png',
|
|
'blendmodes.node',
|
|
'blendmodes.png',
|
|
'blendmodes.vulkan.png',
|
|
'cairo.node',
|
|
'cairo.png',
|
|
'colors.cairo.png',
|
|
'colors.node',
|
|
'colors.vulkan.png',
|
|
'cross-fade.node',
|
|
'cross-fade.png',
|
|
'cross-fades.node',
|
|
'cross-fades.png',
|
|
'cross-fades.vulkan.png',
|
|
'ducky.png',
|
|
'repeat.node',
|
|
'repeat.png',
|
|
'transform.node',
|
|
'transform.png',
|
|
'transform.vulkan.png',
|
|
'opacity.node',
|
|
'opacity.png',
|
|
'opacity.vulkan.png',
|
|
]
|
|
|
|
if get_option('install-tests')
|
|
conf = configuration_data()
|
|
conf.set('libexecdir', gtk_libexecdir)
|
|
configure_file(input: 'render-nodes-cairo.test.in',
|
|
output: 'render-nodes-cairo.test',
|
|
configuration: conf,
|
|
install_dir: testdatadir)
|
|
configure_file(input: 'render-nodes-vulkan.test.in',
|
|
output: 'render-nodes-vulkan.test',
|
|
configuration: conf,
|
|
install_dir: testdatadir)
|
|
|
|
install_data(test_data, install_dir: testexecdir)
|
|
|
|
endif
|
|
|