nixpkgs/tests/xfce.nix
Eelco Dolstra 80d817fcb7 * Verify whether Xfce users get ownership of devices.
svn path=/nixos/trunk/; revision=28396
2011-08-08 17:16:49 +00:00

33 lines
770 B
Nix

{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{ require = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.displayManager.auto.enable = true;
services.xserver.displayManager.auto.user = "alice";
services.xserver.desktopManager.xfce.enable = true;
};
testScript =
''
$machine->waitForWindow(qr/Tips/);
$machine->sleep(10);
# Check that logging in has given the user ownership of devices.
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
$machine->succeed("su - alice -c 'DISPLAY=:0.0 Terminal &'");
$machine->waitForWindow(qr/Terminal/);
$machine->sleep(10);
$machine->screenshot("screen");
'';
}