2019-11-07 04:49:06 +03:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2015-05-27 19:13:18 +03:00
|
|
|
name = "lightdm";
|
2021-01-10 22:08:30 +03:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2021-05-05 12:25:45 +03:00
|
|
|
maintainers = [ aszlig ];
|
2015-07-12 13:09:40 +03:00
|
|
|
};
|
2015-05-27 19:13:18 +03:00
|
|
|
|
2022-03-21 02:15:30 +03:00
|
|
|
nodes.machine = { ... }: {
|
2015-05-27 19:13:18 +03:00
|
|
|
imports = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.lightdm.enable = true;
|
2019-12-10 17:10:30 +03:00
|
|
|
services.xserver.displayManager.defaultSession = "none+icewm";
|
2015-05-27 19:13:18 +03:00
|
|
|
services.xserver.windowManager.icewm.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableOCR = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: let
|
2018-06-30 02:55:42 +03:00
|
|
|
user = nodes.machine.config.users.users.alice;
|
2015-05-27 19:13:18 +03:00
|
|
|
in ''
|
2019-11-07 04:49:06 +03: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 ")
|
2015-05-27 19:13:18 +03:00
|
|
|
'';
|
2015-07-12 13:09:40 +03:00
|
|
|
})
|