diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 17:04:45 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 17:04:45 +0200 |
commit | ca95cae08face337fc9072030ffa882173b9bd55 (patch) | |
tree | 695323cb9b7956bf3660b98ba181509b559f56ab /rules/CC/test/EXPRESSIONS | |
parent | 1a485e949b79054d3bb7c896f27b302a8e7203c5 (diff) | |
parent | 591339c7e794162250b01aec5a8b43049b49079b (diff) | |
download | rules-cc-ca95cae08face337fc9072030ffa882173b9bd55.tar.gz |
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/CC/test/EXPRESSIONS')
-rw-r--r-- | rules/CC/test/EXPRESSIONS | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rules/CC/test/EXPRESSIONS b/rules/CC/test/EXPRESSIONS index 27d92f3..b12b80d 100644 --- a/rules/CC/test/EXPRESSIONS +++ b/rules/CC/test/EXPRESSIONS @@ -39,6 +39,7 @@ , "test-data" , "summarizer" , "summary artifacts" + , "LINT" ] , "imports": { "artifacts": ["./", "../..", "field_artifacts"] @@ -56,6 +57,7 @@ , "target properties": ["transitions", "target properties"] , "stage": ["./", "../..", "stage_singleton_field"] , "list_provider": ["./", "../..", "field_list_provider"] + , "lint": ["./", "..", "lint information"] } , "expression": { "type": "let*" @@ -96,6 +98,21 @@ , {"type": "CALL_EXPRESSION", "name": "run-libs-args-deps"} ] , ["binary", {"type": "CALL_EXPRESSION", "name": "binary"}] + , [ "lint" + , { "type": "if" + , "cond": {"type": "var", "name": "LINT"} + , "then": + { "type": "let*" + , "bindings": + [ ["hdrs", {"type": "empty_map"}] + , [ "lint-deps fieldnames" + , ["private-hdrs", "srcs", "private-deps"] + ] + ] + , "body": {"type": "CALL_EXPRESSION", "name": "lint"} + } + } + ] , [ "staged test binary" , { "type": "map_union" , "$1": @@ -212,6 +229,7 @@ { "type": "RESULT" , "artifacts": {"type": "var", "name": "test-results"} , "runfiles": {"type": "var", "name": "runfiles"} + , "provides": {"type": "env", "vars": ["lint"]} } } , "then": @@ -386,6 +404,7 @@ { "type": "RESULT" , "artifacts": {"type": "var", "name": "artifacts"} , "runfiles": {"type": "var", "name": "runfiles"} + , "provides": {"type": "env", "vars": ["lint"]} } } } |