diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-02 09:27:16 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-02 11:23:33 +0100 |
commit | c7c2bc8db111a5be277aeb14aecfe0d28ab286a9 (patch) | |
tree | 127faceadf8c8299c65e0c8fd41b5991e5a76cee /docs/markdown | |
parent | e7b587c81fdea066d258517e9c4862e57cb22e02 (diff) | |
download | meson-c7c2bc8db111a5be277aeb14aecfe0d28ab286a9.zip meson-c7c2bc8db111a5be277aeb14aecfe0d28ab286a9.tar.gz meson-c7c2bc8db111a5be277aeb14aecfe0d28ab286a9.tar.bz2 |
interpreter, mtest: introduce add_test_setup(exclude_suites: ...)
This new keyword argument makes it possible to run specific
test setups only on a subset of the tests. For example, to
mark some tests as slow and avoid running them by default:
add_test_setup('quick', exclude_suites: ['slow'], is_default: true)
add_test_setup('slow')
It will then be possible to run the slow tests with either
`meson test --setup slow` or `meson test --suite slow`.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index f7b35ff..d3a4f01 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -125,6 +125,9 @@ the following: - `is_default` *(since 0.49.0)*: a bool to set whether this is the default test setup. If `true`, the setup will be used whenever `meson test` is run without the `--setup` option. +- `exclude_suites` *(since 0.57.0)*: a list of test suites that should be + excluded when using this setup. Suites specified in the `--suite` option + to `meson test` will always run, overriding `add_test_setup` if necessary. To use the test setup, run `meson test --setup=*name*` inside the build dir. |