nixpkgs/nixos/tests/sddm.nix

27 lines
807 B
Nix
Raw Normal View History

2015-11-22 18:48:37 +00:00
import ./make-test.nix ({ pkgs, ...} : {
name = "sddm";
machine = { lib, ... }: {
imports = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
2015-11-22 18:48:37 +00:00
services.xserver.windowManager.default = "icewm";
services.xserver.windowManager.icewm.enable = true;
services.xserver.desktopManager.default = "none";
};
enableOCR = true;
testScript = { nodes, ... }: let
user = nodes.machine.config.users.extraUsers.alice;
in ''
2015-11-22 18:48:37 +00:00
startAll;
$machine->waitForText(qr/ALICE/);
$machine->screenshot("sddm");
$machine->sendChars("${user.password}\n");
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
2015-11-22 18:48:37 +00:00
$machine->waitForWindow("^IceWM ");
'';
})