
Add a test for everything related to event delivery. The first test we add here is making sure we don't regress on the bug fixed with commit edc226a04d75d23189232ed69d73b6a20c69da58. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2697>
83 lines
1.9 KiB
Meson
83 lines
1.9 KiB
Meson
clutter_tests_conform_c_args = [
|
|
'-DG_LOG_DOMAIN="Clutter-Conform"',
|
|
'-DCOGL_DISABLE_DEPRECATION_WARNINGS',
|
|
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
|
]
|
|
clutter_tests_conform_c_args += clutter_debug_c_args
|
|
|
|
clutter_tests_conform_link_args = [
|
|
'-Wl,--export-dynamic',
|
|
]
|
|
|
|
clutter_conform_tests_actor_tests = [
|
|
'actor-clone',
|
|
'actor-color-state',
|
|
'actor-destroy',
|
|
'actor-event-hold',
|
|
'actor-graph',
|
|
'actor-invariants',
|
|
'actor-iter',
|
|
'actor-layout',
|
|
'actor-meta',
|
|
'actor-offscreen-redirect',
|
|
'actor-paint-opacity',
|
|
'actor-pick',
|
|
'actor-pivot-point',
|
|
'actor-shader-effect',
|
|
'actor-size',
|
|
]
|
|
|
|
clutter_conform_tests_classes_tests = [
|
|
'text',
|
|
]
|
|
|
|
clutter_conform_tests_general_tests = [
|
|
'binding-pool',
|
|
'color',
|
|
'event-delivery',
|
|
'frame-clock',
|
|
'frame-clock-timeline',
|
|
'grab',
|
|
'interval',
|
|
'script-parser',
|
|
'timeline',
|
|
'timeline-interpolate',
|
|
'timeline-progress',
|
|
'timeline-rewind',
|
|
'units',
|
|
]
|
|
|
|
clutter_conform_tests = []
|
|
clutter_conform_tests += clutter_conform_tests_actor_tests
|
|
clutter_conform_tests += clutter_conform_tests_classes_tests
|
|
clutter_conform_tests += clutter_conform_tests_general_tests
|
|
|
|
test_env = environment()
|
|
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
test_env.set('G_ENABLE_DIAGNOSTIC', '0')
|
|
test_env.set('CLUTTER_ENABLE_DIAGNOSTIC', '0')
|
|
test_env.set('MUTTER_TEST_PLUGIN_PATH', '@0@'.format(default_plugin.full_path()))
|
|
|
|
foreach test : clutter_conform_tests
|
|
test_executable = executable('@0@'.format(test),
|
|
sources: [
|
|
'@0@.c'.format(test),
|
|
clutter_test_utils,
|
|
],
|
|
include_directories: clutter_includes,
|
|
c_args: clutter_tests_conform_c_args,
|
|
link_args: clutter_tests_conform_link_args,
|
|
dependencies: [
|
|
libmutter_test_dep,
|
|
],
|
|
install: false,
|
|
)
|
|
|
|
test(test, test_executable,
|
|
suite: ['clutter', 'clutter/conform'],
|
|
env: test_env,
|
|
is_parallel: false,
|
|
)
|
|
endforeach
|