NixOS VM tests: Difference between revisions

m Tomodachi94 moved page NixOS Testing library to NixOS VM tests: title is clearer, "VM tests" is fairly common
Klinger (talk | contribs)
Line 3: Line 3:
The test infrastructure entry point is nixos/lib/testing.nix. Alternatively, for out-of-tree tests you can invoke it via Nixpkgs as the nixosTest function, which reuses your already evaluated Nixpkgs to generate your node configurations.
The test infrastructure entry point is nixos/lib/testing.nix. Alternatively, for out-of-tree tests you can invoke it via Nixpkgs as the nixosTest function, which reuses your already evaluated Nixpkgs to generate your node configurations.
The test infra relies on the qemu build-vm code to generate virtual machines.
The test infra relies on the qemu build-vm code to generate virtual machines.


It will generate a test driver (a wrapper of nixos/lib/test-driver/test-driver.py) in charge of creating the network.
It will generate a test driver (a wrapper of nixos/lib/test-driver/test-driver.py) in charge of creating the network.
Line 391: Line 392:
   (0.00 seconds)
   (0.00 seconds)
   /nix/store/bx7z3imvxxpwkkza10vb23czhw7873w2-vm-test-run-unnamed
   /nix/store/bx7z3imvxxpwkkza10vb23czhw7873w2-vm-test-run-unnamed
[[Category:NixOS]]