summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-05 11:24:27 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-05 17:28:36 +0200
commit85058bbc6871923f5dc948a36d75efc226057263 (patch)
treea69738f79aeda4fda3fd031df5b78a4b04152024 /rules
parentd34686aebc0c52d7cf9d1982c8a32ae1b994a3de (diff)
downloadjustbuild-85058bbc6871923f5dc948a36d75efc226057263.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 'rules')
-rw-r--r--rules/CC/test/EXPRESSIONS6
-rw-r--r--rules/CC/test/RULES5
-rw-r--r--rules/shell/test/RULES10
3 files changed, 21 insertions, 0 deletions
diff --git a/rules/CC/test/EXPRESSIONS b/rules/CC/test/EXPRESSIONS
index 368d53ed..b0a7f2b4 100644
--- a/rules/CC/test/EXPRESSIONS
+++ b/rules/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/rules/CC/test/RULES b/rules/CC/test/RULES
index 057d3dad..74445516 100644
--- a/rules/CC/test/RULES
+++ b/rules/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"
diff --git a/rules/shell/test/RULES b/rules/shell/test/RULES
index 65396227..af188280 100644
--- a/rules/shell/test/RULES
+++ b/rules/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"