summaryrefslogtreecommitdiff
path: root/rules/shell
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:45 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:45 +0200
commitca95cae08face337fc9072030ffa882173b9bd55 (patch)
tree695323cb9b7956bf3660b98ba181509b559f56ab /rules/shell
parent1a485e949b79054d3bb7c896f27b302a8e7203c5 (diff)
parent591339c7e794162250b01aec5a8b43049b49079b (diff)
downloadrules-cc-ca95cae08face337fc9072030ffa882173b9bd55.tar.gz
Merge subtree 'rules' into rules-cc
Diffstat (limited to 'rules/shell')
-rw-r--r--rules/shell/test/EXPRESSIONS2
-rw-r--r--rules/shell/test/RULES16
2 files changed, 18 insertions, 0 deletions
diff --git a/rules/shell/test/EXPRESSIONS b/rules/shell/test/EXPRESSIONS
index b58bb49..9791911 100644
--- a/rules/shell/test/EXPRESSIONS
+++ b/rules/shell/test/EXPRESSIONS
@@ -354,6 +354,7 @@
, "deps-fieldname"
, "deps-transition"
, "target properties"
+ , "lint"
]
, "imports": {"action": "test-action"}
, "expression":
@@ -372,6 +373,7 @@
{ "type": "RESULT"
, "artifacts": {"type": "var", "name": "test-results"}
, "runfiles": {"type": "var", "name": "runfiles"}
+ , "provides": {"type": "env", "vars": ["lint"]}
}
}
}
diff --git a/rules/shell/test/RULES b/rules/shell/test/RULES
index a808575..1c069dc 100644
--- a/rules/shell/test/RULES
+++ b/rules/shell/test/RULES
@@ -38,6 +38,7 @@
, "TARGET_ARCH"
, "ARCH_DISPATCH"
, "TEST_SUMMARY_EXECUTION_PROPERTIES"
+ , "LINT"
]
, "field_doc":
{ "test":
@@ -191,6 +192,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"
@@ -343,6 +358,7 @@
{ "type": "RESULT"
, "artifacts": {"type": "var", "name": "artifacts"}
, "runfiles": {"type": "var", "name": "runfiles"}
+ , "provides": {"type": "env", "vars": ["lint"]}
}
}
}