summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-17 15:02:26 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-17 15:02:26 +0200
commit2984aea3702b75f82f7a09cefecbf133c89960fa (patch)
tree74d32e11675479da1e2de21fdfd1bcceff36e69a /rules
parent5589def84ca8f43bf2a79b1b81efa81f53fd2d8e (diff)
downloadjustbuild-2984aea3702b75f82f7a09cefecbf133c89960fa.tar.gz
["CC/test", "test"] use stage expression
... instead of inlining the code. In this way, we also have all the checks that the test runner consists of precisely one artifact.
Diffstat (limited to 'rules')
-rw-r--r--rules/CC/test/RULES33
1 files changed, 7 insertions, 26 deletions
diff --git a/rules/CC/test/RULES b/rules/CC/test/RULES
index e09d08eb..ac1bff9d 100644
--- a/rules/CC/test/RULES
+++ b/rules/CC/test/RULES
@@ -195,32 +195,13 @@
, ["deps-transition", {"type": "var", "name": "host-trans"}]
, ["deps-fieldnames", ["private-deps", "defaults"]]
, [ "runner"
- , { "type": "map_union"
- , "$1":
- { "type": "foreach"
- , "var": "runner"
- , "range": {"type": "FIELD", "name": "runner"}
- , "body":
- { "type": "map_union"
- , "$1":
- { "type": "foreach"
- , "var": "runner"
- , "range":
- { "type": "values"
- , "$1":
- { "type": "DEP_ARTIFACTS"
- , "dep": {"type": "var", "name": "runner"}
- , "transition": {"type": "var", "name": "host-trans"}
- }
- }
- , "body":
- { "type": "singleton_map"
- , "key": "runner"
- , "value": {"type": "var", "name": "runner"}
- }
- }
- }
- }
+ , { "type": "let*"
+ , "bindings":
+ [ ["fieldname", "runner"]
+ , ["location", "runner"]
+ , ["transition", {"type": "var", "name": "host-trans"}]
+ ]
+ , "body": {"type": "CALL_EXPRESSION", "name": "stage"}
}
]
, ["test-args", {"type": "FIELD", "name": "args", "default": []}]