meson: Add all the gdbus-codegen based tests to the proper suite

So it's easier to run them all with --suite=gdbus-codegen
This commit is contained in:
Marco Trevisan (Treviño) 2023-06-30 02:51:44 +02:00
parent ec754e5404
commit 1b345e411f

View File

@ -170,7 +170,10 @@ test_extra_programs = {
python_tests = { python_tests = {
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/2764 # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/2764
'codegen.py' : { 'can_fail' : host_system == 'freebsd' }, 'codegen.py' : {
'can_fail' : host_system == 'freebsd',
'suite': ['gdbus-codegen'],
},
} }
test_env = environment() test_env = environment()
@ -458,6 +461,7 @@ if host_machine.system() != 'windows'
'gdbus-test-codegen' : { 'gdbus-test-codegen' : {
'extra_sources' : [extra_sources, gdbus_test_codegen_generated, gdbus_test_codegen_generated_interface_info], 'extra_sources' : [extra_sources, gdbus_test_codegen_generated, gdbus_test_codegen_generated_interface_info],
'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32'], 'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32'],
'suite': ['gdbus-codegen'],
}, },
'gdbus-threading' : { 'gdbus-threading' : {
'extra_sources' : extra_sources, 'extra_sources' : extra_sources,
@ -476,11 +480,13 @@ if host_machine.system() != 'windows'
'extra_sources' : [extra_sources, gdbus_test_codegen_generated, gdbus_test_codegen_generated_interface_info], 'extra_sources' : [extra_sources, gdbus_test_codegen_generated, gdbus_test_codegen_generated_interface_info],
'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36', 'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36'], '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36'],
'suite': ['gdbus-codegen'],
}, },
'gdbus-test-codegen-min-required-2-64' : { 'gdbus-test-codegen-min-required-2-64' : {
'source' : 'gdbus-test-codegen.c', 'source' : 'gdbus-test-codegen.c',
'extra_sources' : [extra_sources, gdbus_test_codegen_generated_min_required_2_64, gdbus_test_codegen_generated_interface_info], 'extra_sources' : [extra_sources, gdbus_test_codegen_generated_min_required_2_64, gdbus_test_codegen_generated_interface_info],
'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_64'], 'c_args' : ['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_64'],
'suite': ['gdbus-codegen'],
}, },
'gapplication' : { 'gapplication' : {
'extra_sources' : extra_sources, 'extra_sources' : extra_sources,
@ -1045,7 +1051,7 @@ endforeach
foreach test_name, extra_args : python_tests foreach test_name, extra_args : python_tests
depends = [extra_args.get('depends', [])] depends = [extra_args.get('depends', [])]
suite = ['gio', 'no-valgrind'] suite = ['gio', 'no-valgrind'] + extra_args.get('suite', [])
if extra_args.get('can_fail', false) if extra_args.get('can_fail', false)
suite += 'failing' suite += 'failing'