gtk2/testsuite/gdk/meson.build

50 lines
1.0 KiB
Meson
Raw Normal View History

testexecdir = join_paths(installed_test_bindir, 'gdk')
testdatadir = join_paths(installed_test_datadir, 'gdk')
tests = [
'array',
'cairo',
'clipboard',
2020-11-05 04:34:36 +00:00
'cursor',
'display',
'displaymanager',
'encoding',
'keysyms',
'memorytexture',
'rectangle',
'rgba',
'seat',
'texture',
]
2016-08-21 16:01:14 +00:00
foreach t : tests
test_exe = executable(t, '@0@.c'.format(t),
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,
)
test(t, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
],
suite: 'gdk',
)
2016-08-21 16:01:14 +00:00
2017-10-18 01:52:48 +00:00
if get_option('install-tests')
test_cdata = configuration_data()
test_cdata.set('testexecdir', testexecdir)
test_cdata.set('test', t)
configure_file(input: 'gdk.test.in',
output: '@0@.test'.format(t),
configuration: test_cdata,
install: true,
install_dir: testdatadir,
)
2017-10-18 01:52:48 +00:00
endif
endforeach