mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
ae1034ea96
Disable SDDM auto-login to improve testing for SDDM themes. See #24246.
27 lines
807 B
Nix
27 lines
807 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "sddm";
|
|
|
|
machine = { lib, ... }: {
|
|
imports = [ ./common/user-account.nix ];
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager.sddm.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/ALICE/);
|
|
$machine->screenshot("sddm");
|
|
$machine->sendChars("${user.password}\n");
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
|
$machine->waitForWindow("^IceWM ");
|
|
'';
|
|
})
|