pandoc recognizes `::: note` admonitions, nixos-render-docs only recognizes `::: {.note}`. surprisingly pandoc also emits the correct docbook tags for `[](#xref)`s, so we can use that too.
···11# Testers {#chap-testers}
22-This chapter describes several testing builders which are available in the <literal>testers</literal> namespace.
22+This chapter describes several testing builders which are available in the `testers` namespace.
3344## `hasPkgConfigModule` {#tester-hasPkgConfigModule}
55
+1-1
doc/stdenv/meta.chapter.md
···128128* we can run `passthru.tests` independently
129129* `installCheckPhase` adds overhead to each build
130130131131-For more on how to write and run package tests, see <xref linkend="sec-package-tests"/>.
131131+For more on how to write and run package tests, see [](#sec-package-tests).
132132133133#### NixOS tests {#var-meta-tests-nixos}
134134
+4-3
doc/stdenv/stdenv.chapter.md
···971971972972The installCheck phase checks whether the package was installed correctly by running its test suite against the installed directories. The default `installCheck` calls `make installcheck`.
973973974974-It is often better to add tests that are not part of the source distribution to `passthru.tests` (see <xref linkend="var-meta-tests"/>). This avoids adding overhead to every build and enables us to run them independently.
974974+It is often better to add tests that are not part of the source distribution to `passthru.tests` (see
975975+[](#var-meta-tests)). This avoids adding overhead to every build and enables us to run them independently.
975976976977#### Variables controlling the installCheck phase {#variables-controlling-the-installcheck-phase}
977978···1234123512351236This setup hook patches installed scripts to add Nix store paths to their shebang interpreter as found in the build environment. The [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line tells a Unix-like operating system which interpreter to use to execute the script's contents.
1236123712371237-::: note
12381238+::: {.note}
12381239The [generic builder][generic-builder] populates `PATH` from inputs of the derivation.
12391240:::
12401241···1272127312731274Interpreter paths that point to a valid Nix store location are not changed.
1274127512751275-::: note
12761276+::: {.note}
12761277A script file must be marked as executable, otherwise it will not be
12771278considered.
12781279:::