summaryrefslogtreecommitdiff
path: root/shell/test/RULES
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-13 11:07:43 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-15 13:45:18 +0200
commitd246c53e66b22c7a5b2bb273be5478dba2467357 (patch)
tree209344799a8a51549d8ef27095ff657aeee25d9d /shell/test/RULES
parent07924d28e81fe36ddb8e020552a7392fcf1227a0 (diff)
downloadrules-cc-d246c53e66b22c7a5b2bb273be5478dba2467357.tar.gz
Add shell defaults
So far, our rules, where depending on the shell, implicitly use "normal" defaults, hard-coded in the rules. Support configuring those in a default target, in the same way we do so for other tools, like the C compiler. In this, it is also possible to bring your own shell, built as a (compiled) target.
Diffstat (limited to 'shell/test/RULES')
-rw-r--r--shell/test/RULES7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/test/RULES b/shell/test/RULES
index 44acb00..6539622 100644
--- a/shell/test/RULES
+++ b/shell/test/RULES
@@ -49,6 +49,7 @@
[ "Tool to aggregate the results of individual test runs (for flakyness"
, "detection) to an overall test result."
]
+ , "defaults": ["The shell toolcahin to use."]
}
, "config_doc":
{ "RUNS_PER_TEST":
@@ -93,7 +94,11 @@
, "As the built-in \"install\" rule only takes the runfiles of its \"deps\""
, "argument, this gives an easy way of defining test suites."
]
- , "implicit": {"runner": ["runner"], "summarizer": ["summarizer"]}
+ , "implicit":
+ { "runner": ["runner"]
+ , "summarizer": ["summarizer"]
+ , "defaults": [["./", "..", "defaults"]]
+ }
, "imports":
{ "test-result": "test-result"
, "action": "test-action"