3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/lightdm.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
861 B
Nix
Raw Normal View History

2019-11-07 01:49:06 +00:00
import ./make-test-python.nix ({ pkgs, ...} : {
name = "lightdm";
meta = with pkgs.lib.maintainers; {
maintainers = [ aszlig ];
};
2022-03-20 23:15:30 +00:00
nodes.machine = { ... }: {
imports = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.displayManager.defaultSession = "none+icewm";
services.xserver.windowManager.icewm.enable = true;
};
enableOCR = true;
testScript = { nodes, ... }: let
user = nodes.machine.config.users.users.alice;
in ''
2019-11-07 01:49:06 +00:00
start_all()
machine.wait_for_text("${user.description}")
machine.screenshot("lightdm")
machine.send_chars("${user.password}\n")
machine.wait_for_file("${user.home}/.Xauthority")
machine.succeed("xauth merge ${user.home}/.Xauthority")
machine.wait_for_window("^IceWM ")
'';
})