2015-07-12 11:09:40 +01:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2015-03-05 04:16:26 +00:00
|
|
|
name = "i3wm";
|
2015-07-12 11:09:40 +01:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ aszlig ];
|
|
|
|
};
|
2015-03-05 04:16:26 +00:00
|
|
|
|
|
|
|
machine = { lib, pkgs, ... }: {
|
|
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
services.xserver.displayManager.auto.user = "alice";
|
|
|
|
services.xserver.windowManager.default = lib.mkForce "i3";
|
|
|
|
services.xserver.windowManager.i3.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: ''
|
|
|
|
$machine->waitForX;
|
2016-04-12 18:12:47 +01:00
|
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
2015-03-05 04:16:26 +00:00
|
|
|
$machine->waitForWindow(qr/first configuration/);
|
|
|
|
$machine->sleep(1);
|
|
|
|
$machine->screenshot("started");
|
|
|
|
$machine->sendKeys("ret");
|
|
|
|
$machine->sleep(1);
|
|
|
|
$machine->sendKeys("alt");
|
|
|
|
$machine->sleep(1);
|
|
|
|
$machine->screenshot("configured");
|
|
|
|
$machine->sendKeys("ret");
|
|
|
|
$machine->sleep(2);
|
|
|
|
$machine->sendKeys("alt-ret");
|
|
|
|
$machine->waitForWindow(qr/machine.*alice/);
|
|
|
|
$machine->sleep(1);
|
|
|
|
$machine->screenshot("terminal");
|
|
|
|
'';
|
2015-07-12 11:09:40 +01:00
|
|
|
})
|