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";
16 imports = [ ../modules/qemu-vm-isolation.nix ];
17 virtualisation.qemu.isolation.nixStoreFilesystemType = "squashfs";
21 sharedDirectories = pkgs.lib.mkForce { };
22 useNixStoreImage = true;
29 for machine in [shared, private, privateErofs, privateSquash, useNixStoreImage]:
30 machine.wait_for_unit("multi-user.target")
32 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
33 shared.succeed("[[ -e ${pkgs.pv} ]]")
35 for machine in [private, privateErofs, privateSquash, useNixStoreImage]:
36 machine.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
37 machine.fail("[[ -e ${pkgs.pv} ]]")