2017-10-18 01:19:44 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'gdk')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'gdk')
|
|
|
|
|
2017-03-22 11:39:27 +00:00
|
|
|
tests = [
|
|
|
|
'cairo',
|
|
|
|
'display',
|
|
|
|
'encoding',
|
|
|
|
'keysyms',
|
|
|
|
'rectangle',
|
|
|
|
'rgba',
|
|
|
|
'seat',
|
|
|
|
]
|
2016-08-21 16:01:14 +00:00
|
|
|
|
2017-03-22 11:39:27 +00:00
|
|
|
foreach t : tests
|
2017-10-18 01:19:44 +00:00
|
|
|
test_exe = executable(t, '@0@.c'.format(t),
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir)
|
|
|
|
|
|
|
|
test(t, test_exe,
|
|
|
|
args: [ '--tap', '-k' ],
|
2017-10-18 08:55:02 +00:00
|
|
|
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())
|
|
|
|
],
|
2017-10-18 01:19:44 +00:00
|
|
|
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',
|
2017-10-18 01:19:44 +00:00
|
|
|
output: '@0@.test'.format(t),
|
|
|
|
configuration: test_cdata,
|
|
|
|
install: true,
|
|
|
|
install_dir: testdatadir)
|
2017-10-18 01:52:48 +00:00
|
|
|
endif
|
|
|
|
endforeach
|