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 /mesonbuild/build.py | |
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 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 65af0d6..5adbc51 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -2617,11 +2617,13 @@ class Data: class TestSetup: def __init__(self, exe_wrapper: T.Optional[T.List[str]], gdb: bool, - timeout_multiplier: int, env: EnvironmentVariables): + timeout_multiplier: int, env: EnvironmentVariables, + exclude_suites: T.List[str]): self.exe_wrapper = exe_wrapper self.gdb = gdb self.timeout_multiplier = timeout_multiplier self.env = env + self.exclude_suites = exclude_suites def get_sources_string_names(sources, backend): ''' |