2015-07-12 10:09:40 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2015-05-27 16:13:18 +00:00
|
|
|
name = "lightdm";
|
2015-07-12 10:09:40 +00:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
2019-08-06 22:34:19 +00:00
|
|
|
maintainers = [ aszlig worldofpeace ];
|
2015-07-12 10:09:40 +00:00
|
|
|
};
|
2015-05-27 16:13:18 +00:00
|
|
|
|
2018-07-20 20:56:59 +00:00
|
|
|
machine = { ... }: {
|
2015-05-27 16:13:18 +00:00
|
|
|
imports = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.lightdm.enable = true;
|
|
|
|
services.xserver.windowManager.default = "icewm";
|
|
|
|
services.xserver.windowManager.icewm.enable = true;
|
|
|
|
services.xserver.desktopManager.default = "none";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: let
|
2018-06-29 23:55:42 +00:00
|
|
|
user = nodes.machine.config.users.users.alice;
|
2015-05-27 16:13:18 +00:00
|
|
|
in ''
|
|
|
|
startAll;
|
|
|
|
$machine->waitForText(qr/${user.description}/);
|
|
|
|
$machine->screenshot("lightdm");
|
|
|
|
$machine->sendChars("${user.password}\n");
|
2016-04-12 17:12:47 +00:00
|
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
2015-08-15 14:12:07 +00:00
|
|
|
$machine->waitForWindow("^IceWM ");
|
2015-05-27 16:13:18 +00:00
|
|
|
'';
|
2015-07-12 10:09:40 +00:00
|
|
|
})
|