mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
9153d8ed64
Probably missed a few. Also adding xauth to the system path (it was already in the closure).
30 lines
910 B
Nix
30 lines
910 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "lightdm";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ aszlig ];
|
|
};
|
|
|
|
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->waitForFile("/home/alice/.Xauthority");
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
|
$machine->waitForWindow("^IceWM ");
|
|
'';
|
|
})
|