doc/meta: still mention testVersion near the installCheckPhase recommendation

This commit is contained in:
Doron Behar 2024-05-30 16:33:27 +03:00
parent 444c2b6dd0
commit 0aa9043370

View File

@ -157,6 +157,8 @@ Most programs distributed by Nixpkgs support such a `--version` flag, and it can
* We can run and debug a `passthru.tests` independently, after the package was built (useful if it takes a long time).
* `installCheckPhase` adds overhead to each build
It is also possible to still use `passthru.tests` to test the version, with [testVersion](#tester-testVersion).
For more on how to write and run package tests, see [`pkgs/README.md`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests).
#### NixOS tests {#var-meta-tests-nixos}