From c10221f6702adcd7c91a39c1e5f01fae52aad47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 15 Dec 2022 22:42:40 +0100 Subject: [PATCH] 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. --- glib/tests/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/tests/meson.build b/glib/tests/meson.build index 16ba33492..49c44be27 100644 --- a/glib/tests/meson.build +++ b/glib/tests/meson.build @@ -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