diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 16:23:11 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-20 16:39:41 +0200 |
commit | 731716280761ced876ddd5e4dd0a6818b0b106f8 (patch) | |
tree | 9e8229db9cb1ea0cb5b0a616afc05350871d1104 /shell/test | |
parent | f6ea71cda4785287996d819e2817e9cd35e2e664 (diff) | |
download | rules-cc-731716280761ced876ddd5e4dd0a6818b0b106f8.tar.gz |
["shell/test", "script"] forward lint information of deps
Diffstat (limited to 'shell/test')
-rw-r--r-- | shell/test/EXPRESSIONS | 2 | ||||
-rw-r--r-- | shell/test/RULES | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/shell/test/EXPRESSIONS b/shell/test/EXPRESSIONS index 44cb48a..c4e0a3c 100644 --- a/shell/test/EXPRESSIONS +++ b/shell/test/EXPRESSIONS @@ -272,6 +272,7 @@ , "deps-fieldname" , "deps-transition" , "target properties" + , "lint" ] , "imports": {"action": "test-action"} , "expression": @@ -290,6 +291,7 @@ { "type": "RESULT" , "artifacts": {"type": "var", "name": "test-results"} , "runfiles": {"type": "var", "name": "runfiles"} + , "provides": {"type": "env", "vars": ["lint"]} } } } diff --git a/shell/test/RULES b/shell/test/RULES index 5d83e1d..98fdab0 100644 --- a/shell/test/RULES +++ b/shell/test/RULES @@ -38,6 +38,7 @@ , "TARGET_ARCH" , "ARCH_DISPATCH" , "TEST_SUMMARY_EXECUTION_PROPERTIES" + , "LINT" ] , "field_doc": { "test": @@ -186,6 +187,20 @@ , [ "target properties" , {"type": "CALL_EXPRESSION", "name": "target properties"} ] + , [ "lint" + , { "type": "if" + , "cond": {"type": "var", "name": "LINT"} + , "then": + { "type": "let*" + , "bindings": + [ ["fieldname", "deps"] + , ["provider", "lint"] + , ["transition", {"type": "var", "name": "deps-transition"}] + ] + , "body": {"type": "CALL_EXPRESSION", "name": "field_list"} + } + } + ] ] , "body": { "type": "if" @@ -322,6 +337,7 @@ { "type": "RESULT" , "artifacts": {"type": "var", "name": "artifacts"} , "runfiles": {"type": "var", "name": "runfiles"} + , "provides": {"type": "env", "vars": ["lint"]} } } } |