1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ marcusramberg ];
7 nodes.machine = { lib, ... }: {
8 imports = [ ./common/x11.nix ./common/user-account.nix ];
9 test-support.displayManager.auto.user = "alice";
10 services.displayManager.defaultSession = lib.mkForce "none+nimdow";
11 services.xserver.windowManager.nimdow.enable = true;
14 testScript = { ... }: ''
15 with subtest("ensure x starts"):
17 machine.wait_for_file("/home/alice/.Xauthority")
18 machine.succeed("xauth merge ~alice/.Xauthority")
20 with subtest("ensure we can open a new terminal"):
21 machine.send_key("meta_l-ret")
22 machine.wait_for_window(r"alice.*?machine")
23 machine.screenshot("terminal")