diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-17 15:02:26 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-17 15:02:26 +0200 |
commit | 2984aea3702b75f82f7a09cefecbf133c89960fa (patch) | |
tree | 74d32e11675479da1e2de21fdfd1bcceff36e69a | |
parent | 5589def84ca8f43bf2a79b1b81efa81f53fd2d8e (diff) | |
download | justbuild-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.
-rw-r--r-- | rules/CC/test/RULES | 33 |
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": []}] |