2015-09-15 12:25:19 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "gnome3-gdm";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ lethalman ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{ imports = [ ./common/user-account.nix ];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
2017-03-30 10:21:32 +00:00
|
|
|
services.xserver.displayManager.slim.enable = false;
|
2015-09-15 12:25:19 +00:00
|
|
|
services.xserver.displayManager.gdm = {
|
|
|
|
enable = true;
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "alice";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.xserver.desktopManager.gnome3.enable = true;
|
|
|
|
|
2017-09-28 14:58:45 +00:00
|
|
|
virtualisation.memorySize = 1024;
|
2015-09-15 12:25:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
$machine->waitForX;
|
|
|
|
$machine->sleep(15);
|
|
|
|
|
|
|
|
# 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 &'");
|
2016-04-12 17:12:47 +00:00
|
|
|
$machine->succeed("xauth merge ~alice/.Xauthority");
|
2015-09-15 12:25:19 +00:00
|
|
|
$machine->waitForWindow(qr/Terminal/);
|
|
|
|
$machine->sleep(20);
|
|
|
|
$machine->screenshot("screen");
|
|
|
|
'';
|
|
|
|
})
|