diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-03-22 13:39:14 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:55 +0100 |
commit | 7cbf92505c0bd627127783827d2291123f8bea0e (patch) | |
tree | 135ebbf0bfd84510ad78ab97e6775eba78423a5d /testsuite | |
parent | b95a5678f460e73886a7fe2f8ffa1eb96c58937c (diff) | |
download | gtk+-7cbf92505c0bd627127783827d2291123f8bea0e.tar.gz |
meson: testsuites: tools: add meson build
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/meson.build | 2 | ||||
-rw-r--r-- | testsuite/tools/meson.build | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/testsuite/meson.build b/testsuite/meson.build index 59a07774e9..fef8506bbd 100644 --- a/testsuite/meson.build +++ b/testsuite/meson.build @@ -2,5 +2,5 @@ subdir('gtk') subdir('gdk') subdir('css') subdir('a11y') -# subdir('tools') # FIXME +subdir('tools') # subdir('reftests') # FIXME: needs more work diff --git a/testsuite/tools/meson.build b/testsuite/tools/meson.build new file mode 100644 index 0000000000..d705601c62 --- /dev/null +++ b/testsuite/tools/meson.build @@ -0,0 +1,31 @@ +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 : 'test-@0@'.format(t), + input : 'test-@0@.in'.format(t), + configuration : configuration_data()) + + test('test-@0@'.format(t), bash, + args : 'test-@0@'.format(t), + workdir : meson.current_build_dir(), + env : test_env) + endforeach +endif # bash found + +# Installed data + +test_simplify_data = [ + 'simplify/test1.ui', 'simplify/test1.expected', + 'simplify/test2.ui', 'simplify/test2.expected', + 'simplify/test3.ui', 'simplify/test3.expected', + 'simplify/test4.ui', 'simplify/test4.expected', + 'simplify/test5.ui', 'simplify/test5.expected', + 'simplify/test6.ui', 'simplify/test6.expected', + 'simplify/test7.ui', 'simplify/test7.expected', + 'simplify/test8.ui', 'simplify/test8.expected', +] +# TODO: install in case of installed tests - install_data() |