diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-12 15:30:49 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-12 15:30:49 +0200 |
commit | 5f4fa5258f2e8ea9aef74fd51c551347c8060c58 (patch) | |
tree | 00fc33610ac950b5d03e7ba9f06219f00e12996b /rules/test/EXPRESSIONS | |
parent | c1a57f2d8c924840ed38ba513c8bb56b3ffb9843 (diff) | |
parent | c5f9f2ade139a994147eeff8fb5495e5703680b1 (diff) | |
download | rules-cc-5f4fa5258f2e8ea9aef74fd51c551347c8060c58.tar.gz |
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/test/EXPRESSIONS')
-rw-r--r-- | rules/test/EXPRESSIONS | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/rules/test/EXPRESSIONS b/rules/test/EXPRESSIONS new file mode 100644 index 0000000..006e804 --- /dev/null +++ b/rules/test/EXPRESSIONS @@ -0,0 +1,60 @@ +{ "matrix": + { "vars": ["TEST_MATRIX"] + , "expression": + { "type": "foldl" + , "var": "VAR" + , "accum_var": "so far" + , "range": + { "type": "keys" + , "$1": + { "type": "var" + , "name": "TEST_MATRIX" + , "default": {"type": "empty_map"} + } + } + , "start": [{"type": "'", "$1": {"": {"TEST_MATRIX": null}}}] + , "body": + { "type": "++" + , "$1": + { "type": "foreach_map" + , "var_key": "stage" + , "var_val": "VALUE" + , "range": + { "type": "lookup" + , "key": {"type": "var", "name": "VAR"} + , "map": {"type": "var", "name": "TEST_MATRIX"} + } + , "body": + { "type": "++" + , "$1": + { "type": "foreach" + , "range": {"type": "var", "name": "so far"} + , "body": + { "type": "foreach_map" + , "range": + { "type": "to_subdir" + , "subdir": {"type": "var", "name": "stage"} + , "$1": {"type": "var", "name": "_"} + } + , "body": + { "type": "singleton_map" + , "key": {"type": "var", "name": "_"} + , "value": + { "type": "map_union" + , "$1": + [ {"type": "var", "name": "$_"} + , { "type": "singleton_map" + , "key": {"type": "var", "name": "VAR"} + , "value": {"type": "var", "name": "VALUE"} + } + ] + } + } + } + } + } + } + } + } + } +} |