mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
d776b224da
bash now sets a different title.
30 lines
961 B
Nix
30 lines
961 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "xmonad";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ nequissimus ];
|
|
};
|
|
|
|
machine = { lib, pkgs, ... }: {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
services.xserver.displayManager.auto.user = "alice";
|
|
services.xserver.windowManager.default = lib.mkForce "xmonad";
|
|
services.xserver.windowManager.xmonad = {
|
|
enable = true;
|
|
enableContribAndExtras = true;
|
|
extraPackages = with pkgs.haskellPackages; haskellPackages: [ xmobar ];
|
|
};
|
|
};
|
|
|
|
testScript = { ... }: ''
|
|
$machine->waitForX;
|
|
$machine->waitForFile("/home/alice/.Xauthority");
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
|
$machine->waitUntilSucceeds("xmonad --restart");
|
|
$machine->sleep(3);
|
|
$machine->sendKeys("alt-shift-ret");
|
|
$machine->waitForWindow(qr/alice.*machine/);
|
|
$machine->sleep(1);
|
|
$machine->screenshot("terminal");
|
|
'';
|
|
})
|