Merge branch 'meson-test-cleanup' into 'master'

Meson: Cleanup a FIXME now that we have dict addition

See merge request GNOME/glib!418
This commit is contained in:
Philip Withnall 2018-10-30 11:33:20 +00:00
commit 09799a8b25

View File

@ -4,9 +4,6 @@ glib_tests = {
'atomic' : {
'c_args' : cc.get_id() == 'gcc' ? ['-Wstrict-aliasing=2'] : [],
},
'autoptr' : {
'skip' : cc.get_id() == 'msvc',
},
'base64' : {},
'bitlock' : {},
'bookmarkfile' : {},
@ -32,19 +29,10 @@ glib_tests = {
'source' : ['gwakeuptest.c', '../gwakeup.c'],
'install' : false,
},
'gwakeup-fallback' : {
'skip' : not glib_conf.has('HAVE_EVENTFD'),
'source' : ['gwakeuptest.c', '../gwakeup.c'],
'c_args' : ['-DTEST_EVENTFD_FALLBACK'],
'install' : false,
},
'hash' : {},
'hmac' : {},
'hook' : {},
'hostutils' : {},
'include' : {
'skip' : host_machine.system() == 'windows',
},
'keyfile' : {},
'list' : {},
'logging' : {},
@ -109,9 +97,6 @@ glib_tests = {
'utf8-misc' : {},
'utils' : {},
'unicode' : {},
'unix' : {
'skip' : host_machine.system() == 'windows',
},
'uri' : {},
'1bit-mutex' : {},
'1bit-emufutex' : {
@ -130,6 +115,27 @@ glib_tests = {
},
}
if cc.get_id() != 'msvc'
glib_tests += {'autoptr' : {}}
endif
if glib_conf.has('HAVE_EVENTFD')
glib_tests += {
'gwakeup-fallback' : {
'source' : ['gwakeuptest.c', '../gwakeup.c'],
'c_args' : ['-DTEST_EVENTFD_FALLBACK'],
'install' : false,
},
}
endif
if host_machine.system() != 'windows'
glib_tests += {
'include' : {},
'unix' : {},
}
endif
if installed_tests_enabled
install_data(
'keyfiletest.ini',
@ -159,10 +165,6 @@ test_deps = [libm, thread_dep, libglib_dep]
test_cargs = ['-DG_LOG_DOMAIN="GLib"']
foreach test_name, extra_args : glib_tests
# FIXME: This condition is ugly, meson should either have 'continue'
# keyword (https://github.com/mesonbuild/meson/issues/3601), or support
# mutable to dictionaries (https://github.com/mesonbuild/meson/pull/3820).
if not extra_args.get('skip', false)
source = extra_args.get('source', test_name + '.c')
install = installed_tests_enabled and extra_args.get('install', true)
@ -189,7 +191,6 @@ foreach test_name, extra_args : glib_tests
timeout = suite.contains('slow') ? 120 : 30
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
args : ['--tap'])
endif
endforeach
# test-spawn-echo helper binary required by the spawn tests above