2 name = "qemu-private-store-mount-grep";
6 includeTestScriptReferences = false;
10 private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
13 sharedDirectories = pkgs.lib.mkForce { };
14 useNixStoreImage = true;
21 shared.wait_for_unit("multi-user.target")
22 private.wait_for_unit("multi-user.target")
23 useNixStoreImage.wait_for_unit("multi-user.target")
25 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
26 private.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
27 useNixStoreImage.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
29 shared.succeed("[[ -e ${pkgs.pv} ]]")
30 private.fail("[[ -e ${pkgs.pv} ]]")
31 useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]")