gtk2/testsuite/tools/meson.build
Matthias Clasen f8f94ab329 Install tools tests
At the same time, update the expected test output to match
the current tools output, and write diff and ref files in /tmp.
2017-10-18 17:30:20 +02:00

38 lines
1.3 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()
test_env.set('GTK_BUILDER_TOOL', get_variable('gtk4_builder_tool').full_path())
test_env.set('GTK_QUERY_SETTINGS', get_variable('gtk4_query_settings').full_path())
foreach t : ['simplify', 'settings']
configure_file(output: t,
input: '@0@.in'.format(t),
configuration: configuration_data(),
install: get_option('install-tests'),
install_dir: testexecdir)
test(t, bash,
args: 'test-@0@'.format(t),
workdir: meson.current_build_dir(),
env: test_env,
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: true,
install_dir: testdatadir)
endforeach
install_subdir('simplify-data', install_dir: testexecdir)
endif