2015-07-12 13:09:40 +03:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2015-05-27 19:13:18 +03:00
|
|
|
name = "lightdm";
|
2015-07-12 13:09:40 +03:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ aszlig ];
|
|
|
|
};
|
2015-05-27 19:13:18 +03:00
|
|
|
|
|
|
|
machine = { lib, ... }: {
|
|
|
|
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
|
|
|
|
user = nodes.machine.config.users.extraUsers.alice;
|
|
|
|
in ''
|
|
|
|
startAll;
|
|
|
|
$machine->waitForText(qr/${user.description}/);
|
|
|
|
$machine->screenshot("lightdm");
|
|
|
|
$machine->sendChars("${user.password}\n");
|
|
|
|
$machine->waitForText(qr/^\d{2}(?::\d{2}){2} (?:AM|PM)$/m);
|
|
|
|
$machine->screenshot("session");
|
|
|
|
'';
|
2015-07-12 13:09:40 +03:00
|
|
|
})
|