diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 17:04:17 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 17:04:17 +0200 |
commit | 591339c7e794162250b01aec5a8b43049b49079b (patch) | |
tree | 3b7dc4f2a07a2ddb0f50f8b1c531fc7c88e332b3 /test/RULES | |
parent | 5dd29fdb85b881ce4a67f1bc42b9c82ef653c829 (diff) | |
parent | 22534d3549a0584c889085594d7ab14cf6e8d44c (diff) | |
download | rules-cc-591339c7e794162250b01aec5a8b43049b49079b.tar.gz |
Merge branch 'just-rules' into rules
Diffstat (limited to 'test/RULES')
-rw-r--r-- | test/RULES | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/RULES b/test/RULES new file mode 100644 index 0000000..9fb11e3 --- /dev/null +++ b/test/RULES @@ -0,0 +1,45 @@ +{ "suite": + { "doc": + [ "Form a compound target out of many test targets." + , "" + , "More precisely, take the runfiles of the given \"deps\", take their" + , "disjoint union and stage the result. Also propagate relevant" + , "providers." + ] + , "tainted": ["test"] + , "target_fields": ["deps"] + , "string_fields": ["stage"] + , "imports": + { "runfiles": ["", "field_runfiles"] + , "list_provider": ["", "field_list_provider"] + } + , "expression": + { "type": "let*" + , "bindings": + [ ["fieldname", "deps"] + , ["runfiles", {"type": "CALL_EXPRESSION", "name": "runfiles"}] + , [ "stage" + , { "type": "join" + , "separator": "/" + , "$1": {"type": "FIELD", "name": "stage"} + } + ] + , [ "staged results" + , { "type": "to_subdir" + , "subdir": {"type": "var", "name": "stage"} + , "$1": {"type": "var", "name": "runfiles"} + } + ] + , ["provider", "lint"] + , ["lint", {"type": "CALL_EXPRESSION", "name": "list_provider"}] + , ["lint", {"type": "nub_right", "$1": {"type": "var", "name": "lint"}}] + ] + , "body": + { "type": "RESULT" + , "artifacts": {"type": "var", "name": "staged results"} + , "runfiles": {"type": "var", "name": "staged results"} + , "provides": {"type": "env", "vars": ["lint"]} + } + } + } +} |