1 { system ? builtins.currentSystem,
3 pkgs ? import ../.. { inherit system config; }
6 with import ../lib/testing-python.nix { inherit system pkgs; };
15 nodes.machine = { ... }: {
16 imports = [ ./common/user-account.nix ];
17 services.xserver.enable = true;
18 services.displayManager.sddm.enable = true;
19 services.displayManager.defaultSession = "none+icewm";
20 services.xserver.windowManager.icewm.enable = true;
25 testScript = { nodes, ... }: let
26 user = nodes.machine.users.users.alice;
29 machine.wait_for_text("(?i)select your user")
30 machine.screenshot("sddm")
31 machine.send_chars("${user.password}\n")
32 machine.wait_for_file("/tmp/xauth_*")
33 machine.succeed("xauth merge /tmp/xauth_*")
34 machine.wait_for_window("^IceWM ")
39 name = "sddm-autologin";
40 meta = with pkgs.lib.maintainers; {
41 maintainers = [ ttuegel ];
44 nodes.machine = { ... }: {
45 imports = [ ./common/user-account.nix ];
46 services.xserver.enable = true;
47 services.displayManager = {
54 services.displayManager.defaultSession = "none+icewm";
55 services.xserver.windowManager.icewm.enable = true;
58 testScript = { nodes, ... }: ''
60 machine.wait_for_file("/tmp/xauth_*")
61 machine.succeed("xauth merge /tmp/xauth_*")
62 machine.wait_for_window("^IceWM ")
67 lib.mapAttrs (lib.const makeTest) tests