From 2bcbeb55f45a6c5aa193fab06f301f7231d5f16c Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 15 May 2024 15:57:12 +0200 Subject: Test tuorial: mention creating a defaults definition for the shell toolchain ... so that the tutorial also works with the latest version of our rules. --- doc/tutorial/tests.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc/tutorial') diff --git a/doc/tutorial/tests.md b/doc/tutorial/tests.md index 72749b0a..cb081594 100644 --- a/doc/tutorial/tests.md +++ b/doc/tutorial/tests.md @@ -324,6 +324,21 @@ the `tests/TARGETS` file: ... ``` +A shell test depends on the default settings for the shell. Therefore, +if we bring our own toolchain defaults for our rules, we have to do this +here as well. We create the module `shell` + +``` sh +$ mkdir -p ./tutorial-defaults/shell +``` + +and create a simple `TARGETS` file saying we are happy with the defaults +for the defaults. + +``` {.jsonc srcname="tutorial-defaults/shell/TARGETS"} +{"defaults": {"type": "defaults"}} +``` + Now we can run the shell test (i.e., build the test result): ``` sh -- cgit v1.2.3