2024-12-10 19:26:33 +00:00
|
|
|
import ./make-test-python.nix (
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
name = "lightdm";
|
|
|
|
meta = with pkgs.lib.maintainers; {
|
|
|
|
maintainers = [ aszlig ];
|
|
|
|
};
|
2015-05-27 16:13:18 +00:00
|
|
|
|
2024-12-10 19:26:33 +00:00
|
|
|
nodes.machine =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./common/user-account.nix ];
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.displayManager.lightdm.enable = true;
|
|
|
|
services.displayManager.defaultSession = "none+icewm";
|
|
|
|
services.xserver.windowManager.icewm.enable = true;
|
|
|
|
};
|
2015-05-27 16:13:18 +00:00
|
|
|
|
2024-12-10 19:26:33 +00:00
|
|
|
enableOCR = true;
|
2015-05-27 16:13:18 +00:00
|
|
|
|
2024-12-10 19:26:33 +00:00
|
|
|
testScript =
|
|
|
|
{ nodes, ... }:
|
|
|
|
let
|
|
|
|
user = nodes.machine.config.users.users.alice;
|
|
|
|
in
|
|
|
|
''
|
|
|
|
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 ")
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
)
|