# guest/vm-tests/default.nix — the granular guest VM test suite. # # Aggregates the three runNixOSTest checks into a single import surface for # flake.nix's checks.${system}. common.nix holds the guest node config and # the mode-independent assertions shared by the two host-networking-mode # tests; test_unbridge.nix / test_bridge.nix add each mode's own checks, and # test_migrate_connections.nix covers `hermenix migrate connections`. # # Run by the operator/CI, never by an agent (see GUIDELINES.md): # nix build .#checks.x86_64-linux.guest-vm-unbridged --impure -L # nix build .#checks.x86_64-linux.guest-vm-bridged --impure -L # nix build .#checks.x86_64-linux.migrate-connections-vm --impure -L # # --impure is required because guest/common.nix reads # /etc/hermenix/local.nix if present (see its own comment) — a pre-existing # property of common.nix, not something the tests introduce. { pkgs, determinate, hermenix, }: { guest-vm-unbridged = import ./test_unbridge.nix { inherit pkgs determinate; }; guest-vm-bridged = import ./test_bridge.nix { inherit pkgs determinate; }; migrate-connections-vm = import ./test_migrate_connections.nix { inherit pkgs hermenix; }; }