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;
|
2017-03-23 23:57:23 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2017-03-23 23:57:23 +00:00
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: let
|
|
|
|
user = nodes.machine.config.users.extraUsers.alice;
|
|
|
|
in ''
|
2015-11-22 18:48:37 +00:00
|
|
|
startAll;
|
2017-03-23 23:57:23 +00:00
|
|
|
$machine->waitForText(qr/ALICE/);
|
|
|
|
$machine->screenshot("sddm");
|
|
|
|
$machine->sendChars("${user.password}\n");
|
2016-04-12 18:12:47 +01:00
|
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
2015-11-22 18:48:37 +00:00
|
|
|
$machine->waitForWindow("^IceWM ");
|
|
|
|
'';
|
|
|
|
})
|