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',
|
2018-03-12 04:12:54 +00:00
|
|
|
'memorytexture',
|
2017-03-22 11:39:27 +00:00
|
|
|
'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',
|
2020-02-03 14:11:35 +00:00
|
|
|
'GDK_DEBUG=default-settings',
|
2017-10-18 08:55:02 +00:00
|
|
|
'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
|