| 1 |
testexecdir = join_paths(installed_test_bindir) |
| 2 |
testdatadir = join_paths(installed_test_datadir) |
| 3 |
|
| 4 |
bash = find_program('bash', required : false) |
| 5 |
if bash.found() |
| 6 |
test_env = environment() |
| 7 |
|
| 8 |
foreach t : ['test-simplify', 'test-settings'] |
| 9 |
if get_option('installed_tests') |
| 10 |
configure_file(output: t, |
| 11 |
input: '@[email protected]'.format(t), |
| 12 |
copy: true, |
| 13 |
install_dir: testexecdir) |
| 14 |
else |
| 15 |
configure_file(output: t, |
| 16 |
input: '@[email protected]'.format(t), |
| 17 |
copy: true) |
| 18 |
endif |
| 19 |
test(t, bash, |
| 20 |
args: t, |
| 21 |
workdir: meson.current_build_dir(), |
| 22 |
env: [ 'GIO_USE_VOLUME_MONITOR=unix', |
| 23 |
'GSETTINGS_BACKEND=memory', |
| 24 |
'GTK_CSD=1', |
| 25 |
'G_ENABLE_DIAGNOSTIC=0', |
| 26 |
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()), |
| 27 |
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()), |
| 28 |
'GTK_BUILDER_TOOL=@0@'.format(gtk_builder_tool.full_path()), |
| 29 |
'GTK_QUERY_SETTINGS=@0@'.format(gtk_query_settings.full_path()) |
| 30 |
], |
| 31 |
suite: 'tools') |
| 32 |
endforeach |
| 33 |
endif |
| 34 |
|
| 35 |
if get_option('installed_tests') |
| 36 |
foreach t : ['test-simplify', 'test-settings'] |
| 37 |
test_conf = configuration_data() |
| 38 |
test_conf.set('testexecdir', testexecdir) |
| 39 |
test_conf.set('test', t) |
| 40 |
configure_file(output: '@[email protected]'.format(t), |
| 41 |
input: 'tools.test.in', |
| 42 |
configuration: test_conf, |
| 43 |
install_dir: testdatadir) |
| 44 |
endforeach |
| 45 |
|
| 46 |
install_subdir('simplify', install_dir: testexecdir) |
| 47 |
endif |