summaryrefslogtreecommitdiff
path: root/shell/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 16:23:11 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 16:39:41 +0200
commit731716280761ced876ddd5e4dd0a6818b0b106f8 (patch)
tree9e8229db9cb1ea0cb5b0a616afc05350871d1104 /shell/test
parentf6ea71cda4785287996d819e2817e9cd35e2e664 (diff)
downloadrules-cc-731716280761ced876ddd5e4dd0a6818b0b106f8.tar.gz
["shell/test", "script"] forward lint information of deps
Diffstat (limited to 'shell/test')
-rw-r--r--shell/test/EXPRESSIONS2
-rw-r--r--shell/test/RULES16
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"]}
}
}
}