mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02:00
build: Move tests/refcount/closures to gobject/tests/closure-refcount
One step towards removing the top-level tests/ directory. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1434
This commit is contained in:
@@ -43,6 +43,7 @@ gobject_tests = {
|
|||||||
'source' : 'private.c',
|
'source' : 'private.c',
|
||||||
},
|
},
|
||||||
'closure' : {},
|
'closure' : {},
|
||||||
|
'closure-refcount' : { 'suite': ['slow'] },
|
||||||
'object' : {},
|
'object' : {},
|
||||||
'signal-handler' : {},
|
'signal-handler' : {},
|
||||||
'ifaceproperties' : {},
|
'ifaceproperties' : {},
|
||||||
@@ -95,6 +96,13 @@ foreach test_name, extra_args : gobject_tests
|
|||||||
|
|
||||||
suite = ['gobject'] + extra_args.get('suite', [])
|
suite = ['gobject'] + extra_args.get('suite', [])
|
||||||
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
|
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
|
||||||
|
|
||||||
|
# FIXME: https://gitlab.gnome.org/GNOME/glib/issues/1316
|
||||||
|
# aka https://bugs.debian.org/880883
|
||||||
|
if test_name == 'closure-refcount' and ['arm', 'aarch64'].contains(host_cpu_family)
|
||||||
|
timeout = timeout * 10
|
||||||
|
endif
|
||||||
|
|
||||||
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
|
test(test_name, exe, env : test_env, timeout : timeout, suite : suite,
|
||||||
args: ['--tap'])
|
args: ['--tap'])
|
||||||
endforeach
|
endforeach
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
refcount_tests = {
|
refcount_tests = {
|
||||||
'closures' : {'suite' : ['slow']},
|
|
||||||
'objects' : {},
|
'objects' : {},
|
||||||
'objects2' : {'suite' : ['slow']},
|
'objects2' : {'suite' : ['slow']},
|
||||||
'properties' : {},
|
'properties' : {},
|
||||||
@@ -56,12 +55,6 @@ foreach test_name, extra_args : refcount_tests
|
|||||||
suite = ['refcount'] + extra_args.get('suite', [])
|
suite = ['refcount'] + extra_args.get('suite', [])
|
||||||
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
|
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
|
||||||
|
|
||||||
# https://gitlab.gnome.org/GNOME/glib/issues/1316
|
|
||||||
# aka https://bugs.debian.org/880883
|
|
||||||
if test_name == 'closures' and ['arm', 'aarch64'].contains(host_cpu_family)
|
|
||||||
timeout = timeout * 10
|
|
||||||
endif
|
|
||||||
|
|
||||||
# FIXME? TESTS_ENVIRONMENT = LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
|
# FIXME? TESTS_ENVIRONMENT = LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset
|
||||||
test(test_name, exe, env : test_env, timeout : timeout, suite : suite)
|
test(test_name, exe, env : test_env, timeout : timeout, suite : suite)
|
||||||
endforeach
|
endforeach
|
||||||
|
Reference in New Issue
Block a user