meson: add tools tests

This commit is contained in:
Christoph Reiter 2019-04-13 13:11:16 +02:00
parent 014320bfb0
commit 77c1424582
3 changed files with 25 additions and 0 deletions

View File

@ -2,3 +2,4 @@ subdir('gtk')
subdir('gdk')
subdir('css')
subdir('a11y')
subdir('tools')

View File

@ -17,6 +17,7 @@ EXTRA_DIST += \
$(test_simplify) \
test-simplify.in \
test-settings.in \
meson.build \
$(NULL)
TESTS_ENVIRONMENT = \

View File

@ -0,0 +1,23 @@
bash = find_program('bash', required : false)
if bash.found()
test_env = environment()
foreach t : ['test-simplify', 'test-settings']
configure_file(output: t,
input: '@0@.in'.format(t),
copy: true)
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(gtk_builder_tool.full_path()),
'GTK_QUERY_SETTINGS=@0@'.format(gtk_query_settings.full_path())
],
suite: 'tools')
endforeach
endif