summaryrefslogtreecommitdiff
path: root/doc/tutorial
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-08 17:21:18 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-07-08 17:32:13 +0200
commit6c9cf1f6a1e457ca94b740d1b9e8f2e35a0623a3 (patch)
tree4b5a6434b4876c7726b17e98198cb2f58f979f11 /doc/tutorial
parent1e533af3dd496ce843f5bc1b4b06f4a732902e2d (diff)
downloadjustbuild-6c9cf1f6a1e457ca94b740d1b9e8f2e35a0623a3.tar.gz
tutorial on tests: set shell defaults
... as they will be used in newer versions of rules-cc to set the path for the test-summary action.
Diffstat (limited to 'doc/tutorial')
-rw-r--r--doc/tutorial/tests.md22
1 files changed, 10 insertions, 12 deletions
diff --git a/doc/tutorial/tests.md b/doc/tutorial/tests.md
index cb081594..d493a03e 100644
--- a/doc/tutorial/tests.md
+++ b/doc/tutorial/tests.md
@@ -127,6 +127,13 @@ as well as the file `tutorial-defaults/shell/test/TARGETS` with content
{}
```
+and the file `tutorial-defulats/shell` with content
+
+``` {.jsonc srcname="tutorial-defaults/shell/TARGETS"}
+{"defaults": {"type": "defaults"}}
+```
+
+indicating that we just use defaults for the shell defaults.
Now we can run the test (i.e., build the test result):
``` sh
@@ -326,18 +333,9 @@ 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"}}
-```
+here as well. In this case, however, we have already created the toolchain
+description before running the C++ test, as that also uses the shell toolchain
+for the summarizing results.
Now we can run the shell test (i.e., build the test result):