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 /CC | |
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 'CC')
-rw-r--r-- | CC/test/EXPRESSIONS | 6 | ||||
-rw-r--r-- | CC/test/RULES | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS index 368d53e..b0a7f2b 100644 --- a/CC/test/EXPRESSIONS +++ b/CC/test/EXPRESSIONS @@ -10,6 +10,7 @@ , "HOST_ARCH" , "TARGET_ARCH" , "ARCH_DISPATCH" + , "TEST_SUMMARY_EXECUTION_PROPERTIES" , "CC" , "CXX" , "CFLAGS" @@ -280,6 +281,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" diff --git a/CC/test/RULES b/CC/test/RULES index 057d3da..7444551 100644 --- a/CC/test/RULES +++ b/CC/test/RULES @@ -27,6 +27,7 @@ , "CC_TEST_LAUNCHER" , "RUNS_PER_TEST" , "ARCH_DISPATCH" + , "TEST_SUMMARY_EXECUTION_PROPERTIES" ] , "implicit": { "defaults": [["./", "..", "defaults"]] @@ -130,6 +131,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." + ] } , "artifacts_doc": [ "result: the result of this test (\"PASS\" or \"FAIL\"); useful for" |