From fa5c2363eb1dd94058aac1a4045d2ab546eed7b9 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 4 Sep 2020 04:50:15 -0400 Subject: introspect: add test dependencies info to test/benchmark JSON Add the ids of any target that needs to be rebuilt before running the tests as computed by the backend, to the introspection data for tests and benchmarks. This also includes anything that appears on the test's command line. Without this information, IDEs must update the entire build before running any test. They can now instead selectively build the test executable itself and anything that is needed to run it. Signed-off-by: Paolo Bonzini --- docs/markdown/IDE-integration.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/markdown/IDE-integration.md') diff --git a/docs/markdown/IDE-integration.md b/docs/markdown/IDE-integration.md index 816225f..5188359 100644 --- a/docs/markdown/IDE-integration.md +++ b/docs/markdown/IDE-integration.md @@ -247,6 +247,7 @@ line arguments, environment variable settings and how to process the output. "is_parallel": true / false, "protocol": "exitcode" / "tap", "cmd": ["command", "to", "run"], + "depends": ["target1-id", "target2-id"], "env": { "VARIABLE1": "value 1", "VARIABLE2": "value 2" @@ -254,6 +255,11 @@ line arguments, environment variable settings and how to process the output. } ``` +The `depends` entry *(since 0.56.0)* contains target ids; they can be +looked up in the targets introspection data. The executable +pointed to by `cmd` is also included in the entry, as are any +arguments to the test that are build products. + ## Build system files It is also possible to get Meson build files used in your current project. This -- cgit v1.1