diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-15 18:05:48 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-09-24 17:38:08 +0100 |
commit | 537f45637367352b33d2979095765a0bdd2b0d00 (patch) | |
tree | ebe1300ab10f8df85ca1877d14502442b9ad63f5 /nixos/doc/manual/development | |
parent | 6e2f7539893ebabc92ccb1421a84fccf09b2052b (diff) |
nixos/doc/running-nixos-tests: Simplify running instructions with nixosTests
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r-- | nixos/doc/manual/development/running-nixos-tests.section.md | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/nixos/doc/manual/development/running-nixos-tests.section.md b/nixos/doc/manual/development/running-nixos-tests.section.md index 1bec023b613aa..33076f5dc2a7d 100644 --- a/nixos/doc/manual/development/running-nixos-tests.section.md +++ b/nixos/doc/manual/development/running-nixos-tests.section.md @@ -2,22 +2,11 @@ You can run tests using `nix-build`. For example, to run the test [`login.nix`](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/login.nix), -you just do: +you do: ```ShellSession -$ nix-build '<nixpkgs/nixos/tests/login.nix>' -``` - -or, if you don't want to rely on `NIX_PATH`: - -```ShellSession -$ cd /my/nixpkgs/nixos/tests -$ nix-build login.nix -… -running the VM test script -machine: QEMU running (pid 8841) -… -6 out of 6 tests succeeded +$ cd /my/git/clone/of/nixpkgs +$ nix-build -A nixosTests.login ``` After building/downloading all required dependencies, this will perform |