mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
e3f39bf0c3
Some testcases rely on X11 support, which is not always available, typically on win32. Skip them if the x11 backend is disabled.
92 lines
2.1 KiB
Meson
92 lines
2.1 KiB
Meson
clipboard_client = executable('clipboard-client',
|
|
sources: ['clipboard-client.c'],
|
|
include_directories: [confinc],
|
|
c_args: common_cflags,
|
|
dependencies: [ libgtk_dep ],
|
|
install: false,
|
|
)
|
|
|
|
tests = [
|
|
{ 'name': 'array' },
|
|
{ 'name': 'cairo' },
|
|
{ 'name': 'clipboard', 'parallel': false, 'suites': 'flaky' },
|
|
{ 'name': 'contentformats' },
|
|
{ 'name': 'contentserializer' },
|
|
{ 'name': 'cursor' },
|
|
{ 'name': 'displaymanager' },
|
|
{ 'name': 'glcontext' },
|
|
{ 'name': 'keysyms' },
|
|
{ 'name': 'memorytexture' },
|
|
{ 'name': 'rectangle' },
|
|
{ 'name': 'rgba' },
|
|
{ 'name': 'seat' },
|
|
{ 'name': 'texture-threads' },
|
|
{ 'name': 'toplevellayout' },
|
|
{ 'name': 'popuplayout' },
|
|
]
|
|
|
|
if x11_enabled
|
|
tests += [
|
|
{ 'name': 'display' },
|
|
{ 'name': 'encoding' },
|
|
]
|
|
endif
|
|
|
|
foreach t : tests
|
|
test_name = t.get('name')
|
|
test_exe = executable(test_name,
|
|
sources: '@0@.c'.format(test_name),
|
|
c_args: common_cflags,
|
|
dependencies: libgtk_dep,
|
|
install: false,
|
|
)
|
|
|
|
suites = ['gdk'] + t.get('suites', [])
|
|
|
|
test(test_name, test_exe,
|
|
args: [ '--tap', '-k' ],
|
|
protocol: 'tap',
|
|
is_parallel: t.get('parallel', false),
|
|
env: [
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
'DBUS_SESSION_BUS_ADDRESS=',
|
|
],
|
|
suite: suites,
|
|
)
|
|
endforeach
|
|
|
|
internal_tests = [
|
|
{ 'name': 'image' },
|
|
{ 'name': 'texture' },
|
|
{ 'name': 'gltexture' },
|
|
]
|
|
|
|
if host_machine.system() != 'windows'
|
|
internal_tests += { 'name': 'dmabuftexture', 'suites': 'failing' }
|
|
endif
|
|
|
|
|
|
foreach t : internal_tests
|
|
test_name = t.get('name')
|
|
test_exe = executable(test_name,
|
|
sources: '@0@.c'.format(test_name),
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
|
dependencies: libgtk_static_dep,
|
|
install: false,
|
|
)
|
|
|
|
suites = ['gdk'] + t.get('suites', [])
|
|
|
|
test(test_name, 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()),
|
|
'DBUS_SESSION_BUS_ADDRESS=',
|
|
],
|
|
suite: suites,
|
|
)
|
|
endforeach
|