728 B
728 B
Tests
Module Tests
We test our nixos modules with NixOS tests. Running nixos tests requires QEMU virtualisation, so make sure you have KVM virtualisation support enabled.
Run all: nix build .#checks.x86_64-linux.nixos-modules
Run single test: nix build .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName
Run Test Interactively
See upstream documentation for more details.
nix build .#checks.x86_64-linux.nixos-modules.entries.vm-test-run-testNameAsInDerivationName.driverInteractive
./result/bin/nixos-test-driver