diff options
Diffstat (limited to 'nixos/doc/manual/development/running-nixos-tests.xml')
-rw-r--r-- | nixos/doc/manual/development/running-nixos-tests.xml | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/nixos/doc/manual/development/running-nixos-tests.xml b/nixos/doc/manual/development/running-nixos-tests.xml index 908c0a66a32..eadbe1ea4f2 100644 --- a/nixos/doc/manual/development/running-nixos-tests.xml +++ b/nixos/doc/manual/development/running-nixos-tests.xml @@ -3,20 +3,18 @@ xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0" xml:id="sec-running-nixos-tests-interactively"> + <title>Running Tests</title> -<title>Running Tests</title> - -<para>You can run tests using <command>nix-build</command>. For -example, to run the test <filename + <para> + You can run tests using <command>nix-build</command>. For example, to run the + test + <filename xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/login.nix">login.nix</filename>, -you just do: - + you just do: <screen> $ nix-build '<nixpkgs/nixos/tests/login.nix>' </screen> - -or, if you don’t want to rely on <envar>NIX_PATH</envar>: - + or, if you don’t want to rely on <envar>NIX_PATH</envar>: <screen> $ cd /my/nixpkgs/nixos/tests $ nix-build login.nix @@ -26,16 +24,13 @@ machine: QEMU running (pid 8841) … 6 out of 6 tests succeeded </screen> - -After building/downloading all required dependencies, this will -perform a build that starts a QEMU/KVM virtual machine containing a -NixOS system. The virtual machine mounts the Nix store of the host; -this makes VM creation very fast, as no disk image needs to be -created. Afterwards, you can view a pretty-printed log of the test: - + After building/downloading all required dependencies, this will perform a + build that starts a QEMU/KVM virtual machine containing a NixOS system. The + virtual machine mounts the Nix store of the host; this makes VM creation very + fast, as no disk image needs to be created. Afterwards, you can view a + pretty-printed log of the test: <screen> $ firefox result/log.html </screen> - -</para> + </para> </section> |