2015-07-12 12:09:40 +02:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2015-05-27 18:13:18 +02:00
|
|
|
name = "lightdm";
|
2015-07-12 12:09:40 +02:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ aszlig ];
|
|
|
|
};
|
2015-05-27 18:13:18 +02:00
|
|
|
|
2018-07-20 22:56:59 +02:00
|
|
|
machine = { ... }: {
|
2015-05-27 18:13:18 +02: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-30 01:55:42 +02:00
|
|
|
user = nodes.machine.config.users.users.alice;
|
2015-05-27 18:13:18 +02:00
|
|
|
in ''
|
|
|
|
startAll;
|
|
|
|
$machine->waitForText(qr/${user.description}/);
|
|
|
|
$machine->screenshot("lightdm");
|
|
|
|
$machine->sendChars("${user.password}\n");
|
2016-04-12 19:12:47 +02:00
|
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
2015-08-15 16:12:07 +02:00
|
|
|
$machine->waitForWindow("^IceWM ");
|
2015-05-27 18:13:18 +02:00
|
|
|
'';
|
2015-07-12 12:09:40 +02:00
|
|
|
})
|