diff options
Diffstat (limited to 'doc/tutorial')
-rw-r--r-- | doc/tutorial/tests.md | 22 |
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): |