forked from AuroraMiddleware/gtk
testsuite: Run the clipboard test in isolation
We can't have other test pop up windows, and possibly stealing focus and preventing us from getting data offers. So, run the clipboard test in isolation.
This commit is contained in:
parent
bef54a382d
commit
63647cace0
@ -10,36 +10,39 @@ clipboard_client = executable('clipboard-client',
|
|||||||
install_dir: testexecdir)
|
install_dir: testexecdir)
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
'array',
|
{ 'name': 'array' },
|
||||||
'cairo',
|
{ 'name': 'cairo' },
|
||||||
'clipboard',
|
{ 'name': 'clipboard', 'parallel': false, },
|
||||||
'contentformats',
|
{ 'name': 'contentformats' },
|
||||||
'contentserializer',
|
{ 'name': 'contentserializer' },
|
||||||
'cursor',
|
{ 'name': 'cursor' },
|
||||||
'display',
|
{ 'name': 'display' },
|
||||||
'displaymanager',
|
{ 'name': 'displaymanager' },
|
||||||
'encoding',
|
{ 'name': 'encoding' },
|
||||||
'keysyms',
|
{ 'name': 'keysyms' },
|
||||||
'memorytexture',
|
{ 'name': 'memorytexture' },
|
||||||
'pixbuf',
|
{ 'name': 'pixbuf' },
|
||||||
'rectangle',
|
{ 'name': 'rectangle' },
|
||||||
'rgba',
|
{ 'name': 'rgba' },
|
||||||
'seat',
|
{ 'name': 'seat' },
|
||||||
'texture',
|
{ 'name': 'texture' },
|
||||||
'texture-threads',
|
{ 'name': 'texture-threads' },
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach t : tests
|
foreach t : tests
|
||||||
test_exe = executable(t, '@0@.c'.format(t),
|
test_name = t.get('name')
|
||||||
|
test_exe = executable(test_name,
|
||||||
|
sources: '@0@.c'.format(test_name),
|
||||||
c_args: common_cflags,
|
c_args: common_cflags,
|
||||||
dependencies: libgtk_dep,
|
dependencies: libgtk_dep,
|
||||||
install: get_option('install-tests'),
|
install: get_option('install-tests'),
|
||||||
install_dir: testexecdir,
|
install_dir: testexecdir,
|
||||||
)
|
)
|
||||||
|
|
||||||
test(t, test_exe,
|
test(test_name, test_exe,
|
||||||
args: [ '--tap', '-k' ],
|
args: [ '--tap', '-k' ],
|
||||||
protocol: 'tap',
|
protocol: 'tap',
|
||||||
|
is_parallel: t.get('parallel', false),
|
||||||
env: [
|
env: [
|
||||||
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
||||||
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
||||||
@ -76,9 +79,10 @@ endforeach
|
|||||||
|
|
||||||
if get_option('install-tests')
|
if get_option('install-tests')
|
||||||
foreach t : tests
|
foreach t : tests
|
||||||
|
test_name = t.get('name')
|
||||||
test_cdata = configuration_data()
|
test_cdata = configuration_data()
|
||||||
test_cdata.set('testexecdir', testexecdir)
|
test_cdata.set('testexecdir', testexecdir)
|
||||||
test_cdata.set('test', t)
|
test_cdata.set('test', test_name)
|
||||||
configure_file(input: 'gdk.test.in',
|
configure_file(input: 'gdk.test.in',
|
||||||
output: '@0@.test'.format(t),
|
output: '@0@.test'.format(t),
|
||||||
configuration: test_cdata,
|
configuration: test_cdata,
|
||||||
|
Loading…
Reference in New Issue
Block a user