blob: 16584b931876d29b7032ea31897443ea4810e836 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import <nixpkgs/nixos/tests/make-test.nix> ( { pkgs, ... }: {
machine = { config, pkgs, lib, ... }: {
imports = [ ../config/desktop.nix ];
services.xserver.windowManager.default = lib.mkForce "xmonad";
};
testScript = ''
$machine->waitForX;
$machine->succeed("su - orbekk -c 'urxvt&'");
$machine->succeed("su - orbekk -c 'trayer&'");
$machine->waitForFile("~orbekk/.Xauthority");
$machine->succeed("xauth merge ~orbekk/.Xauthority");
$machine->screenshot("screen");
$machine->waitForWindow(qr/trayer/);
'';
})
|