2 name = "qemu-private-store-mount-grep";
6 includeTestScriptReferences = false;
10 private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
12 imports = [ ../modules/qemu-vm-isolation.nix ];
13 virtualisation.qemu.isolation.nixStoreFilesystemType = "erofs";
17 sharedDirectories = pkgs.lib.mkForce { };
18 useNixStoreImage = true;
25 for machine in [shared, private, privateErofs, useNixStoreImage]:
26 machine.wait_for_unit("multi-user.target")
28 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
29 shared.succeed("[[ -e ${pkgs.pv} ]]")
31 for machine in [private, privateErofs, useNixStoreImage]:
32 machine.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
33 machine.fail("[[ -e ${pkgs.pv} ]]")