lol

nixos/doc/running-nixos-tests: Simplify running instructions with nixosTests

+6 -28
+3 -14
nixos/doc/manual/development/running-nixos-tests.section.md
··· 2 2 3 3 You can run tests using `nix-build`. For example, to run the test 4 4 [`login.nix`](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/login.nix), 5 - you just do: 5 + you do: 6 6 7 7 ```ShellSession 8 - $ nix-build '<nixpkgs/nixos/tests/login.nix>' 9 - ``` 10 - 11 - or, if you don't want to rely on `NIX_PATH`: 12 - 13 - ```ShellSession 14 - $ cd /my/nixpkgs/nixos/tests 15 - $ nix-build login.nix 16 - 17 - running the VM test script 18 - machine: QEMU running (pid 8841) 19 - 20 - 6 out of 6 tests succeeded 8 + $ cd /my/git/clone/of/nixpkgs 9 + $ nix-build -A nixosTests.login 21 10 ``` 22 11 23 12 After building/downloading all required dependencies, this will perform
+3 -14
nixos/doc/manual/from_md/development/running-nixos-tests.section.xml
··· 4 4 You can run tests using <literal>nix-build</literal>. For example, 5 5 to run the test 6 6 <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/login.nix"><literal>login.nix</literal></link>, 7 - you just do: 7 + you do: 8 8 </para> 9 9 <programlisting> 10 - $ nix-build '&lt;nixpkgs/nixos/tests/login.nix&gt;' 11 - </programlisting> 12 - <para> 13 - or, if you don’t want to rely on <literal>NIX_PATH</literal>: 14 - </para> 15 - <programlisting> 16 - $ cd /my/nixpkgs/nixos/tests 17 - $ nix-build login.nix 18 - 19 - running the VM test script 20 - machine: QEMU running (pid 8841) 21 - 22 - 6 out of 6 tests succeeded 10 + $ cd /my/git/clone/of/nixpkgs 11 + $ nix-build -A nixosTests.login 23 12 </programlisting> 24 13 <para> 25 14 After building/downloading all required dependencies, this will