summaryrefslogtreecommitdiff
path: root/shell/test
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 /shell/test
parent5dd29fdb85b881ce4a67f1bc42b9c82ef653c829 (diff)
parent22534d3549a0584c889085594d7ab14cf6e8d44c (diff)
downloadrules-cc-591339c7e794162250b01aec5a8b43049b49079b.tar.gz
Merge branch 'just-rules' into rules
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 b58bb49..9791911 100644
--- a/shell/test/EXPRESSIONS
+++ b/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/shell/test/RULES b/shell/test/RULES
index a808575..1c069dc 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":
@@ -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"]}
}
}
}