aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori86@gmail.com>2018-04-14 21:17:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-14 22:17:02 +0300
commit717f7db67e27fedc4a3eb68bf2b46bf4384997c6 (patch)
treed70fd65054a35974d75137f2290220d373a72e9e /docs
parent2e5b2813d55f374e684f7ec9095cc681e30d8f46 (diff)
downloadmeson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.zip
meson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.tar.gz
meson-717f7db67e27fedc4a3eb68bf2b46bf4384997c6.tar.bz2
improve suite of meson test (#3369)
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md6
-rw-r--r--docs/markdown/Unit-tests.md8
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 0d3d1aa..da4c92b 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1243,6 +1243,12 @@ Keyword arguments are the following:
- `should_fail` when true the test is considered passed if the
executable returns a non-zero return value (i.e. reports an error)
+- `suite` `'label'` (or list of labels `['label1', 'label2']`)
+ attached to this test. The suite name is qualified by a (sub)project
+ name resulting in `(sub)project_name:label`. In the case of a list
+ of strings, the suite names will be `(sub)project_name:label1`,
+ `(sub)project_name:label2`, etc.
+
- `timeout` the amount of seconds the test is allowed to run, a test
that exceeds its time limit is always considered failed, defaults to
30 seconds
diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md
index 53ce9ec..e5e4107 100644
--- a/docs/markdown/Unit-tests.md
+++ b/docs/markdown/Unit-tests.md
@@ -71,6 +71,14 @@ You can also run only a single test by giving its name:
$ meson test testname
```
+Tests belonging to a suite `suite` can be run as follows
+
+```console
+$ meson test --suite (sub)project_name:suite
+```
+
+Since version *0.46*, `(sub)project_name` can be omitted if it is the top-level project.
+
Sometimes you need to run the tests multiple times, which is done like this:
```console