summaryrefslogtreecommitdiff
path: root/CC/test/EXPRESSIONS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:17 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:17 +0200
commit591339c7e794162250b01aec5a8b43049b49079b (patch)
tree3b7dc4f2a07a2ddb0f50f8b1c531fc7c88e332b3 /CC/test/EXPRESSIONS
parent5dd29fdb85b881ce4a67f1bc42b9c82ef653c829 (diff)
parent22534d3549a0584c889085594d7ab14cf6e8d44c (diff)
downloadrules-cc-591339c7e794162250b01aec5a8b43049b49079b.tar.gz
Merge branch 'just-rules' into rules
Diffstat (limited to 'CC/test/EXPRESSIONS')
-rw-r--r--CC/test/EXPRESSIONS19
1 files changed, 19 insertions, 0 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS
index 27d92f3..b12b80d 100644
--- a/CC/test/EXPRESSIONS
+++ b/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"]}
}
}
}