2015-07-12 10:09:40 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2014-06-28 14:04:49 +00:00
|
|
|
name = "gnome3";
|
2015-07-12 10:09:40 +00:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ iElectric eelco chaoflow lethalman ];
|
|
|
|
};
|
2014-02-08 20:47:28 +00:00
|
|
|
|
|
|
|
machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{ imports = [ ./common/user-account.nix ];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
2015-08-27 16:11:30 +00:00
|
|
|
services.xserver.displayManager.gdm = {
|
|
|
|
enable = true;
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "alice";
|
|
|
|
};
|
|
|
|
};
|
2014-02-08 20:47:28 +00:00
|
|
|
services.xserver.desktopManager.gnome3.enable = true;
|
2014-11-02 15:33:10 +00:00
|
|
|
|
|
|
|
virtualisation.memorySize = 512;
|
2014-02-08 20:47:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
$machine->waitForX;
|
2015-08-27 16:11:30 +00:00
|
|
|
$machine->sleep(60);
|
2014-02-08 20:47:28 +00:00
|
|
|
|
|
|
|
# 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 gnome-terminal &'");
|
|
|
|
$machine->waitForWindow(qr/Terminal/);
|
2014-09-07 10:40:35 +00:00
|
|
|
$machine->sleep(20);
|
2014-02-08 20:47:28 +00:00
|
|
|
$machine->screenshot("screen");
|
|
|
|
'';
|
2015-07-12 10:09:40 +00:00
|
|
|
})
|