2017-10-18 00:48:16 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'gsk')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'gsk')
|
|
|
|
|
2017-12-25 11:56:21 +00:00
|
|
|
compare_render = executable(
|
|
|
|
'compare-render',
|
|
|
|
['compare-render.c', 'reftest-compare.c'],
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir
|
|
|
|
)
|
|
|
|
|
2019-03-19 04:29:20 +00:00
|
|
|
node_parser = executable(
|
|
|
|
'node-parser',
|
|
|
|
['node-parser.c'],
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir
|
|
|
|
)
|
|
|
|
|
2019-04-23 16:08:06 +00:00
|
|
|
serialize_deserialize = executable(
|
|
|
|
'serialize-deserialize',
|
|
|
|
['serialize-deserialize.c'],
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
|
|
|
)
|
|
|
|
|
2019-03-19 07:16:07 +00:00
|
|
|
compare_render_tests = [
|
2019-05-09 01:56:25 +00:00
|
|
|
'blend-normal',
|
|
|
|
'blend-difference',
|
2019-03-21 05:47:36 +00:00
|
|
|
'clip-coordinates-3d',
|
2019-03-19 07:16:07 +00:00
|
|
|
'clipped_rounded_clip',
|
2019-05-09 01:56:25 +00:00
|
|
|
'color-blur0',
|
2019-04-24 10:48:59 +00:00
|
|
|
'cross-fade-in-opacity',
|
2019-03-19 07:16:07 +00:00
|
|
|
'opacity_clip',
|
|
|
|
'outset_shadow_offset_both',
|
|
|
|
'outset_shadow_offset_x',
|
|
|
|
'outset_shadow_offset_y',
|
|
|
|
'outset_shadow_rounded_top',
|
|
|
|
'outset_shadow_simple',
|
2019-04-24 11:25:32 +00:00
|
|
|
'shadow-in-opacity',
|
2019-05-09 01:56:25 +00:00
|
|
|
'texture-url',
|
2019-05-18 07:22:44 +00:00
|
|
|
'color-matrix-identity',
|
2019-03-19 07:16:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
renderers = [
|
2019-03-21 05:47:36 +00:00
|
|
|
# name exclude term
|
|
|
|
[ 'opengl', '' ],
|
|
|
|
[ 'cairo', '-3d' ],
|
2019-03-19 07:16:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach renderer : renderers
|
|
|
|
foreach test : compare_render_tests
|
2019-03-21 05:47:36 +00:00
|
|
|
if (renderer[1] == '' or not test.contains(renderer[1]))
|
|
|
|
test(renderer[0] + ' ' + test, compare_render,
|
|
|
|
args: [join_paths(meson.current_source_dir(), 'compare', test + '.node'),
|
|
|
|
join_paths(meson.current_source_dir(), 'compare', test + '.png')],
|
|
|
|
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=' + renderer[0]
|
|
|
|
],
|
|
|
|
suite: [ 'gsk', 'gsk-compare', 'gsk-' + renderer[0], 'gsk-compare-' + renderer[0] ])
|
|
|
|
endif
|
2019-03-19 07:16:07 +00:00
|
|
|
endforeach
|
|
|
|
endforeach
|
|
|
|
|
2019-03-19 04:29:20 +00:00
|
|
|
node_parser_tests = [
|
2019-05-14 01:20:09 +00:00
|
|
|
'crash1.errors',
|
|
|
|
'crash1.node',
|
|
|
|
'crash1.ref.node',
|
|
|
|
'crash2.errors',
|
|
|
|
'crash2.node',
|
|
|
|
'crash2.ref.node',
|
|
|
|
'crash3.node',
|
|
|
|
'crash3.ref.node',
|
|
|
|
'crash4.errors',
|
|
|
|
'crash4.node',
|
|
|
|
'crash4.ref.node',
|
2019-05-19 19:34:13 +00:00
|
|
|
'empty-blend.node',
|
|
|
|
'empty-blend.ref.node',
|
|
|
|
'empty-blur.node',
|
|
|
|
'empty-blur.ref.node',
|
|
|
|
'empty-border.node',
|
|
|
|
'empty-border.ref.node',
|
|
|
|
'empty-clip.node',
|
|
|
|
'empty-clip.ref.node',
|
|
|
|
'empty-color.node',
|
|
|
|
'empty-color.ref.node',
|
|
|
|
'empty-color-matrix.node',
|
|
|
|
'empty-color-matrix.ref.node',
|
|
|
|
'empty-container.node',
|
|
|
|
'empty-container.ref.node',
|
|
|
|
'empty-cross-fade.node',
|
|
|
|
'empty-cross-fade.ref.node',
|
|
|
|
'empty-debug.node',
|
|
|
|
'empty-debug.ref.node',
|
|
|
|
'empty-inset-shadow.node',
|
|
|
|
'empty-inset-shadow.ref.node',
|
|
|
|
'empty-linear-gradient.node',
|
|
|
|
'empty-linear-gradient.ref.node',
|
|
|
|
'empty-opacity.node',
|
|
|
|
'empty-opacity.ref.node',
|
|
|
|
'empty-outset-shadow.node',
|
|
|
|
'empty-outset-shadow.ref.node',
|
|
|
|
'empty-repeat.node',
|
|
|
|
'empty-repeat.ref.node',
|
|
|
|
'empty-rounded-clip.node',
|
|
|
|
'empty-rounded-clip.ref.node',
|
|
|
|
'empty-shadow.node',
|
|
|
|
'empty-shadow.ref.node',
|
|
|
|
'empty-text.node',
|
|
|
|
'empty-text.ref.node',
|
|
|
|
'empty-texture.node',
|
|
|
|
'empty-texture.ref.node',
|
|
|
|
'empty-transform.node',
|
|
|
|
'empty-transform.ref.node',
|
2019-03-19 04:29:20 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach test : node_parser_tests
|
2019-05-14 01:20:09 +00:00
|
|
|
if test.endswith('.node') and not test.endswith('.ref.node')
|
|
|
|
test('parser ' + test, node_parser,
|
|
|
|
args: [ join_paths(meson.current_source_dir(), 'nodeparser', test)
|
|
|
|
],
|
|
|
|
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=opengl'
|
|
|
|
],
|
|
|
|
suite: 'gsk')
|
|
|
|
endif
|
2019-03-19 04:29:20 +00:00
|
|
|
endforeach
|
|
|
|
|
2019-04-23 16:08:06 +00:00
|
|
|
serialize_deserialize_tests = [
|
2019-04-27 07:03:51 +00:00
|
|
|
'blend',
|
2019-04-23 16:08:06 +00:00
|
|
|
'border',
|
2019-04-27 07:03:51 +00:00
|
|
|
'color',
|
2019-05-02 18:09:31 +00:00
|
|
|
'debug',
|
2019-05-01 13:29:38 +00:00
|
|
|
'rounded-rect',
|
2019-04-24 09:26:17 +00:00
|
|
|
'shadow',
|
2019-04-23 16:08:06 +00:00
|
|
|
'testswitch',
|
2019-04-24 06:00:04 +00:00
|
|
|
'widgetfactory',
|
2019-04-23 16:08:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach test : serialize_deserialize_tests
|
|
|
|
test('serialize-deserialize ' + test, serialize_deserialize,
|
|
|
|
args: [join_paths(meson.current_source_dir(), 'serializedeserialize', test + '.node')],
|
|
|
|
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=opengl'
|
|
|
|
],
|
|
|
|
suite: 'gsk')
|
|
|
|
endforeach
|