summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"]}
}
}
}