mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
3121f88265
We no longer use installed tests in CI, so lets reap the benefit and simplify our build setup for tests.
26 lines
828 B
Meson
26 lines
828 B
Meson
bash = find_program('bash', required : false)
|
|
if bash.found()
|
|
test_env = environment()
|
|
|
|
foreach t : ['simplify', 'simplify-3to4', 'validate', 'settings']
|
|
configure_file(output: t,
|
|
input: '@0@.in'.format(t),
|
|
copy: true,
|
|
)
|
|
test(t, bash,
|
|
args: t,
|
|
workdir: meson.current_build_dir(),
|
|
protocol: 'tap',
|
|
env: [
|
|
'TEST_RESULT_DIR=@0@'.format(join_paths(meson.current_build_dir(), 'output')),
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
'GTK_A11Y=test',
|
|
'GTK_BUILDER_TOOL=@0@'.format(get_variable('gtk4_builder_tool').full_path()),
|
|
'GTK_QUERY_SETTINGS=@0@'.format(get_variable('gtk4_query_settings').full_path())
|
|
],
|
|
suite: 'tools',
|
|
)
|
|
endforeach
|
|
endif
|