aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/tests/vm.nix
Commit message (Collapse)AuthorAgeFilesLines
* tests: log how long each populate run takestv12 hours1-0/+3
|
* tests: give the VMs a store image of their owntv12 hours1-0/+8
| | | | | | | | | | | The VMs used the host's store through 9p, whose paths their Nix doesn't know, so each scenario collecting garbage deleted every one of them from the VMs' view. In a nested VM, whose store shows the outer host's paths too, that took more than 45 minutes for one scenario. With useNixStoreImage, each VM gets an image of its own closure, which already holds every script the scenarios run (system.extraDependencies), and collecting garbage only looks at that. writableStore keeps the store writable, which qemu-vm.nix otherwise only makes the host's store.
* tests: silence network interface warningstv2026-11-141-1/+12
|
* tests: populate's tests of its own, krops' using themtv2026-11-141-0/+203
populate's tests are in pkgs/populate/tests, independent of krops. They run the program, with the sources as JSON from populate's Nix library, and target strings for the remote targets, leaving the user and whether the target is local to populate, so they cover its command line too. Phases expecting populate to refuse its arguments, e.g. a source name or a target path that can't be used, expect the program's refusal, with refused, the message, since nothing checks them during evaluation there. builder.nix is what builds the scenarios, which krops' tests use as well, with a function running the phases, and whether that checks the arguments during evaluation. vm.nix takes a module for both machines, for what else the scenarios run, and fixtures.nix and smoke.nix are what both use of the fixtures and the smoke test. krops' tests are deploy, writeDeploy's arguments to nixos-rebuild, with the stand-in for nixos-rebuild in the module, and populate, populate's scenarios that expect refusals, which pkgs.populate makes evaluation fail with, and those of populate's smoke test, all through pkgs.populate with target attribute sets as mkTarget returns them. -A only selects from all of populate's scenarios and krops' own.