diff options
-rw-r--r-- | docs/markdown/IDE-integration.md | 3 | ||||
-rw-r--r-- | docs/markdown/snippets/introspect.md | 4 | ||||
-rw-r--r-- | mesonbuild/mintro.py | 1 | ||||
-rwxr-xr-x | run_unittests.py | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/docs/markdown/IDE-integration.md b/docs/markdown/IDE-integration.md index 1c66d53..77e00bd 100644 --- a/docs/markdown/IDE-integration.md +++ b/docs/markdown/IDE-integration.md @@ -235,7 +235,7 @@ When these tests fail, the user probably wants to run the failing test in a debugger. To make this as integrated as possible, extract the tests from the `intro-tests.json` and `intro-benchmarks.json` files. This provides you with all the information needed to run the test: what command to execute, command -line arguments and environment variable settings. +line arguments, environment variable settings and how to process the output. ```json { @@ -244,6 +244,7 @@ line arguments and environment variable settings. "timeout": "the test timeout", "suite": ["list", "of", "test", "suites"], "is_parallel": true / false, + "protocol": "exitcode" / "tap", "cmd": ["command", "to", "run"], "env": { "VARIABLE1": "value 1", diff --git a/docs/markdown/snippets/introspect.md b/docs/markdown/snippets/introspect.md index 097fd17..9efa4d7 100644 --- a/docs/markdown/snippets/introspect.md +++ b/docs/markdown/snippets/introspect.md @@ -5,3 +5,7 @@ dependencies (--dependencies, intro-dependencies.json): scanning dependencies (--scan-dependencies): - added the `version` key containing the required dependency version + +tests and benchmarks (--tests, --benchmarks, intro-tests.json, +intro-benchmarks.json): +- added the `protocol` key diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index 1c9c542..ff9f1d9 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -302,6 +302,7 @@ def get_test_list(testdata) -> List[Dict[str, Union[str, int, List[str], Dict[st to['suite'] = t.suite to['is_parallel'] = t.is_parallel to['priority'] = t.priority + to['protocol'] = t.protocol result.append(to) return result diff --git a/run_unittests.py b/run_unittests.py index a7a0d26..703673f 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2620,7 +2620,6 @@ int main(int argc, char **argv) { 'disttest-1.4.3/subprojects/vcssub/meson.build']), sorted(z.namelist())) - def test_rpath_uses_ORIGIN(self): ''' Test that built targets use $ORIGIN in rpath, which ensures that they @@ -3813,6 +3812,7 @@ recommended as it is not supported on some platforms''') ('timeout', int), ('suite', list), ('is_parallel', bool), + ('protocol', str), ] buildoptions_keylist = [ |