A minimal set of NixOS integration tests for validating specific Libvirt features and supporting libvirt development.
These tests provide a convenient environment for:
- Running automated checks against Libvirt.
- Testing patches to virtualization backends (e.g., Cloud Hypervisor) by running the libvirt test suite in a reproducible NixOS VM environment.
-
Launch the test driver:
nix run -L .#tests.x86_64-linux.driverInteractive
This starts the NixOS integration test driver (a Bash script generated by the NixOS test framework).
-
Execute the test script inside the Python REPL:
test_script()
To test against a specific version or local build:
- Edit
flake.nix
and override the corresponding inputs.