gtk2/testsuite/gdk/meson.build
Christoph Reiter 3c2b5cda74 meson: port installed tests and reftests
I couldn't get all reftests to work reliably, so the tests failing
on either CI or on my machine are skipped for now.

Installed tests are disabled by default and can be enabled with "-Dinstalled_tests=true"
2019-11-15 12:52:03 +01:00

29 lines
742 B
Meson

tests = [
'cairo',
'display',
'encoding',
'keysyms',
'rectangle',
'rgba',
'seat',
'visual',
]
foreach t : tests
test_exe = executable(t, '@0@.c'.format(t),
dependencies: libgtk_dep,
install: get_option('installed_tests'),
install_dir: installed_test_bindir)
test(t, test_exe,
args: [ '--tap', '-k' ],
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())
],
suite: 'gdk')
endforeach