diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-05 11:24:27 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-05 17:28:36 +0200 |
commit | 4f60c5b43a7b33052e62caa78a7b705b3057028b (patch) | |
tree | 530efca372e1cb611b9fcd338b7437c128eedcd8 /shell/test | |
parent | 23e2b86ab2acb99b7625fa77c8fe9f81a1ec6099 (diff) | |
download | rules-cc-4f60c5b43a7b33052e62caa78a7b705b3057028b.tar.gz |
tests: support additional remote-execution properties for summaries
If a test is run several times (as set by RUNS_PER_TEST), a summary of
the individual test runs is computed using a summarizer as configured
in the target layer of the rules. As the inputs for computing that
test summary are all the individual test runs, that action has a
large number of files as input, including a large number of identical
files, e.g., the ones indicating the outcome of an individual run.
Therefore, allow setting additional remote-execution properties
allowing to dispatch that action to a suitable end point.
Diffstat (limited to 'shell/test')
-rw-r--r-- | shell/test/RULES | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/test/RULES b/shell/test/RULES index 6539622..af18828 100644 --- a/shell/test/RULES +++ b/shell/test/RULES @@ -10,6 +10,7 @@ , "TIMEOUT_SCALE" , "TARGET_ARCH" , "ARCH_DISPATCH" + , "TEST_SUMMARY_EXECUTION_PROPERTIES" ] , "field_doc": { "test": @@ -78,6 +79,10 @@ , "the specified execution properties (i.e., on the target architecture);" , "all building will be done on the host architecture." ] + , "TEST_SUMMARY_EXECUTION_PROPERTIES": + [ "Additional remote-execution properties for the test-summarizing action" + , "in case RUNS_PER_TEST is set; defaults to the empty map." + ] } , "tainted": ["test"] , "artifacts_doc": @@ -212,6 +217,11 @@ , "outs": ["stdout", "stderr", "result", "time-start", "time-stop"] , "cmd": ["./summarizer"] + , "execution properties": + { "type": "var" + , "name": "TEST_SUMMARY_EXECUTION_PROPERTIES" + , "default": {"type": "empty_map"} + } } ] , [ "artifacts" |