mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
ba3a502079
The `install` argument for configure_file() was introduced in Meson 0.50, and was ignored in earlier versions. Since we're still using Meson 0.48 as a baseline, and since it doesn't cost us nothing to use a conditional in the only place where we used the `install` argument, let's drop it. This avoids a warning in newer releases of Meson.
48 lines
1.6 KiB
Meson
48 lines
1.6 KiB
Meson
testexecdir = join_paths(installed_test_bindir, 'tools')
|
|
testdatadir = join_paths(installed_test_datadir, 'tools')
|
|
|
|
bash = find_program('bash', required : false)
|
|
if bash.found()
|
|
test_env = environment()
|
|
|
|
foreach t : ['simplify', 'settings']
|
|
if get_option('install-tests')
|
|
configure_file(output: t,
|
|
input: '@0@.in'.format(t),
|
|
copy: true,
|
|
install_dir: testexecdir)
|
|
else
|
|
configure_file(output: t,
|
|
input: '@0@.in'.format(t),
|
|
copy: true)
|
|
endif
|
|
test(t, bash,
|
|
args: t,
|
|
workdir: meson.current_build_dir(),
|
|
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()),
|
|
'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
|
|
|
|
if get_option('install-tests')
|
|
foreach t : ['simplify', 'settings']
|
|
test_conf = configuration_data()
|
|
test_conf.set('testexecdir', testexecdir)
|
|
test_conf.set('test', t)
|
|
configure_file(output: '@0@.test'.format(t),
|
|
input: 'tools.test.in',
|
|
configuration: test_conf,
|
|
install_dir: testdatadir)
|
|
endforeach
|
|
|
|
install_subdir('simplify-data', install_dir: testexecdir)
|
|
endif
|