meson: Add 'core' suite to glib (only) tests

As per meson default, the project name is a suite per se that is always
added to a test, so running `meson test --suite=glib` is the same as not
passing the `--suite` argument at all, and so making all the tests to run.

To be able to only run the *glib* tests without using the `--no-suite` args,
add a `core` suite that only targets the glib folder tests.
This commit is contained in:
Marco Trevisan (Treviño) 2022-12-15 22:42:40 +01:00
parent 1594cf77eb
commit 6efbc7c624

View File

@ -386,7 +386,7 @@ foreach test_name, extra_args : glib_tests
)
depends = [extra_args.get('depends', [])]
suite = ['glib'] + extra_args.get('suite', [])
suite = ['glib', 'core'] + extra_args.get('suite', [])
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
if extra_args.get('can_fail', false)
@ -432,7 +432,7 @@ endif
foreach test_name, extra_args : python_tests
depends = [extra_args.get('depends', [])]
suite = ['glib', 'no-valgrind']
suite = ['glib', 'core', 'no-valgrind']
if extra_args.get('can_fail', false)
suite += 'failing'
@ -488,7 +488,7 @@ if not meson.is_cross_build() and host_system != 'windows'
test('gtester-xmllint-check', xmllint,
args : ['--noout', tmpsample_xml],
env : test_env,
suite : ['glib'],
suite : ['glib', 'core'],
)
endif
endif