Skip to content

Commit

Permalink
try kde
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jan 19, 2024
1 parent d248829 commit a5101f8
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions tests/kolide-launcher.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ pkgs.nixosTest {

services.xserver.enable = true;
services.xserver.displayManager = {
lightdm.enable = true;
autoLogin = {
enable = true;
user = "alice";
};
};
services.xserver.desktopManager.mate.enable = true;
services.xserver.desktopManager.mate.debug = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.defaultSession = "plasma";
services.xserver.desktopManager.plasma5.enable = true;
environment.plasma5.excludePackages = [ pkgs.plasma5Packages.elisa ];

# This just quiets some log spam we don't care about
hardware.pulseaudio.enable = true;
Expand All @@ -54,20 +55,21 @@ pkgs.nixosTest {
if "${ci}":
machine.start()
with subtest("log in to MATE"):
machine.wait_for_unit("display-manager.service", timeout=120)
machine.wait_for_file("${xauthority}")
machine.succeed("xauth merge ${xauthority}")
machine.wait_until_succeeds("pgrep marco")
machine.wait_for_window("marco")
machine.wait_until_succeeds("pgrep mate-panel")
machine.wait_for_window("Top Panel")
machine.wait_for_window("Bottom Panel")
machine.wait_until_succeeds("pgrep caja")
machine.wait_for_window("Caja")
with subtest("KDE setup"):
machine.wait_for_file("/tmp/xauth_*")
machine.succeed("xauth merge /tmp/xauth_*")
machine.sleep(20)
machine.screenshot("test-screen1.png")
machine.wait_until_succeeds("pgrep plasmashell")
machine.wait_for_window("^Desktop ")
machine.screenshot("test-screen2.png")
machine.succeed("pgrep kded5")
machine.succeed("getfacl -p /dev/snd/timer | grep -q ${user.name}")
machine.succeed("su - ${user.name} -c 'xauth merge /tmp/xauth_*'")
machine.screenshot("test-screen25.png")
with subtest("set up secret file"):
machine.copy_from_host("${./test-secret}", "/etc/kolide-k2/secret")
Expand Down

0 comments on commit a5101f8

Please sign in to comment.