mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-13 12:56:15 +01:00
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:
parent
1594cf77eb
commit
6efbc7c624
@ -386,7 +386,7 @@ foreach test_name, extra_args : glib_tests
|
|||||||
)
|
)
|
||||||
|
|
||||||
depends = [extra_args.get('depends', [])]
|
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
|
timeout = suite.contains('slow') ? test_timeout_slow : test_timeout
|
||||||
|
|
||||||
if extra_args.get('can_fail', false)
|
if extra_args.get('can_fail', false)
|
||||||
@ -432,7 +432,7 @@ endif
|
|||||||
|
|
||||||
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 = ['glib', 'no-valgrind']
|
suite = ['glib', 'core', 'no-valgrind']
|
||||||
|
|
||||||
if extra_args.get('can_fail', false)
|
if extra_args.get('can_fail', false)
|
||||||
suite += 'failing'
|
suite += 'failing'
|
||||||
@ -488,7 +488,7 @@ if not meson.is_cross_build() and host_system != 'windows'
|
|||||||
test('gtester-xmllint-check', xmllint,
|
test('gtester-xmllint-check', xmllint,
|
||||||
args : ['--noout', tmpsample_xml],
|
args : ['--noout', tmpsample_xml],
|
||||||
env : test_env,
|
env : test_env,
|
||||||
suite : ['glib'],
|
suite : ['glib', 'core'],
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user