From e7b9dfac98d30eb4ea5489c10b8dfef3bb8331f4 Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Mon, 3 Apr 2023 09:46:26 -0400 Subject: mtest: wildcard selection Allow the use of wildcards (e.g. *) to match test names in `meson test`. Raise an error is given test name does not match any test. Optimize the search by looping through the list of tests only once. --- docs/markdown/snippets/test_name_filters.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/test_name_filters.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/test_name_filters.md b/docs/markdown/snippets/test_name_filters.md new file mode 100644 index 000000000..14e62a9d5 --- /dev/null +++ b/docs/markdown/snippets/test_name_filters.md @@ -0,0 +1,9 @@ +## Wildcards in list of tests to run + +The `meson test` command now accepts wildcards in the list of test names. +For example `meson test basic*` will run all tests whose name begins +with "basic". + +meson will report an error if the given test name does not match any +existing test. meson will log a warning if two redundant test names +are given (for example if you give both "proj:basic" and "proj:"). -- cgit v1.2.3