From d246c53e66b22c7a5b2bb273be5478dba2467357 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 13 May 2024 11:07:43 +0200 Subject: 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. --- shell/test/RULES | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'shell/test/RULES') 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" -- cgit v1.2.3