nixos/plasma5: also test SDDM theme
This commit is contained in:
parent
f815a7697e
commit
27ba56f1e0
@ -8,25 +8,27 @@ import ./make-test.nix ({ pkgs, ...} :
|
|||||||
|
|
||||||
machine = { lib, ... }: {
|
machine = { lib, ... }: {
|
||||||
imports = [ ./common/user-account.nix ];
|
imports = [ ./common/user-account.nix ];
|
||||||
virtualisation.memorySize = 1024;
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.displayManager.sddm = {
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
enable = true;
|
|
||||||
autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "alice";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
services.xserver.desktopManager.default = "plasma5";
|
services.xserver.desktopManager.default = "plasma5";
|
||||||
virtualisation.writableStore = false; # FIXME
|
virtualisation.memorySize = 1024;
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = { nodes, ... }:
|
enableOCR = true;
|
||||||
let xdo = "${pkgs.xdotool}/bin/xdotool"; in
|
|
||||||
''
|
testScript = { nodes, ... }: let
|
||||||
|
user = nodes.machine.config.users.extraUsers.alice;
|
||||||
|
xdo = "${pkgs.xdotool}/bin/xdotool";
|
||||||
|
in ''
|
||||||
startAll;
|
startAll;
|
||||||
|
|
||||||
|
# Wait for display manager to start
|
||||||
|
$machine->waitForText(qr/${user.description}/);
|
||||||
|
$machine->screenshot("sddm");
|
||||||
|
|
||||||
|
# Log in
|
||||||
|
$machine->sendChars("${user.password}\n");
|
||||||
$machine->waitForFile("/home/alice/.Xauthority");
|
$machine->waitForFile("/home/alice/.Xauthority");
|
||||||
$machine->succeed("xauth merge ~alice/.Xauthority");
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user