summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-24 14:50:47 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-24 16:10:14 +0200
commit538e367d4c976646a5ae58a006e30a227bb3bee9 (patch)
tree7a463834994d4d764c7763b721d91b1d2270f693
parentcb266253493b9060ccbfd9e4667cbdc1cbde1473 (diff)
downloadrules-cc-538e367d4c976646a5ae58a006e30a227bb3bee9.tar.gz
["CC/test", "test"]: factor out test-input
In this way, the test action gets canonical, so adding RUNS_PER_TEST support to this rule should be easily mergable into downstream rules.
-rw-r--r--CC/test/RULES28
1 files changed, 15 insertions, 13 deletions
diff --git a/CC/test/RULES b/CC/test/RULES
index 6903580..fc7b332 100644
--- a/CC/test/RULES
+++ b/CC/test/RULES
@@ -271,22 +271,24 @@
[{"type": "var", "name": "stage"}, {"type": "var", "name": "name"}]
}
]
+ , [ "test input"
+ , { "type": "map_union"
+ , "$1":
+ [ { "type": "to_subdir"
+ , "subdir": "work"
+ , "$1": {"type": "var", "name": "data"}
+ }
+ , {"type": "var", "name": "runner"}
+ , {"type": "var", "name": "test-args"}
+ , {"type": "var", "name": "test-launcher"}
+ , {"type": "var", "name": "staged test binary"}
+ ]
+ }
+ ]
, [ "test-results"
, { "type": "ACTION"
, "outs": ["result", "stdout", "stderr", "time-start", "time-stop"]
- , "inputs":
- { "type": "map_union"
- , "$1":
- [ { "type": "to_subdir"
- , "subdir": "work"
- , "$1": {"type": "var", "name": "data"}
- }
- , {"type": "var", "name": "runner"}
- , {"type": "var", "name": "test-args"}
- , {"type": "var", "name": "test-launcher"}
- , {"type": "var", "name": "staged test binary"}
- ]
- }
+ , "inputs": {"type": "var", "name": "test input"}
, "cmd": ["./runner"]
, "env":
{ "type": "var"