2017-10-18 02:41:57 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'tools')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'tools')
|
|
|
|
|
2017-03-22 13:39:14 +00:00
|
|
|
bash = find_program('bash', required : false)
|
|
|
|
if bash.found()
|
|
|
|
test_env = environment()
|
|
|
|
|
2019-05-05 15:23:59 +00:00
|
|
|
foreach t : ['simplify', 'simplify-3to4', 'settings']
|
2019-03-29 13:59:58 +00:00
|
|
|
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
|
2017-10-17 18:50:05 +00:00
|
|
|
test(t, bash,
|
2017-10-18 16:46:12 +00:00
|
|
|
args: t,
|
2017-10-18 02:41:57 +00:00
|
|
|
workdir: meson.current_build_dir(),
|
2020-03-13 19:48:33 +00:00
|
|
|
protocol: 'tap',
|
2017-10-18 08:55:02 +00:00
|
|
|
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
|
|
|
'GSETTINGS_BACKEND=memory',
|
2020-02-03 14:11:35 +00:00
|
|
|
'GDK_DEBUG=default-settings',
|
2017-10-18 08:55:02 +00:00
|
|
|
'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())
|
|
|
|
],
|
2017-10-18 02:41:57 +00:00
|
|
|
suite: 'tools')
|
2017-03-22 13:39:14 +00:00
|
|
|
endforeach
|
2017-10-18 02:41:57 +00:00
|
|
|
endif
|
2017-03-22 13:39:14 +00:00
|
|
|
|
2017-10-18 02:41:57 +00:00
|
|
|
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
|
2017-03-22 13:39:14 +00:00
|
|
|
|
2017-10-18 02:41:57 +00:00
|
|
|
install_subdir('simplify-data', install_dir: testexecdir)
|
2019-05-05 15:23:59 +00:00
|
|
|
install_subdir('simplify-data-3to4', install_dir: testexecdir)
|
2017-10-18 02:41:57 +00:00
|
|
|
endif
|