forked from AuroraMiddleware/gtk
meson: add tools tests
This commit is contained in:
parent
014320bfb0
commit
77c1424582
@ -2,3 +2,4 @@ subdir('gtk')
|
||||
subdir('gdk')
|
||||
subdir('css')
|
||||
subdir('a11y')
|
||||
subdir('tools')
|
||||
|
@ -17,6 +17,7 @@ EXTRA_DIST += \
|
||||
$(test_simplify) \
|
||||
test-simplify.in \
|
||||
test-settings.in \
|
||||
meson.build \
|
||||
$(NULL)
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
|
23
testsuite/tools/meson.build
Normal file
23
testsuite/tools/meson.build
Normal 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
|
Loading…
Reference in New Issue
Block a user