diff options
author | Luca Bruno <lethalman88@gmail.com> | 2015-09-25 10:51:50 +0200 |
---|---|---|
committer | Luca Bruno <lethalman88@gmail.com> | 2015-09-25 10:51:50 +0200 |
commit | 45b1f5858c5bd33bb48e0c77c183b3cf7154847b (patch) | |
tree | 551b7ca10346e4962778b24d94a0887a391a736d /nixos/tests | |
parent | 4086bd92a54593f5137b07fba4f910a7a2ab63c6 (diff) | |
parent | 26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9 (diff) | |
download | nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar.gz nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar.bz2 nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar.lz nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar.xz nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.tar.zst nixlib-45b1f5858c5bd33bb48e0c77c183b3cf7154847b.zip |
Merge branch 'gnome' into staging
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/gnome3_18.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixos/tests/gnome3_18.nix b/nixos/tests/gnome3_18.nix new file mode 100644 index 000000000000..971fd48b1868 --- /dev/null +++ b/nixos/tests/gnome3_18.nix @@ -0,0 +1,36 @@ +import ./make-test.nix ({ pkgs, ...} : { + name = "gnome3"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ iElectric eelco chaoflow lethalman ]; + }; + + machine = + { config, pkgs, ... }: + + { imports = [ ./common/user-account.nix ]; + + services.xserver.enable = true; + + services.xserver.displayManager.auto.enable = true; + services.xserver.displayManager.auto.user = "alice"; + services.xserver.desktopManager.gnome3.enable = true; + + environment.gnome3.packageSet = pkgs.gnome3_18; + + virtualisation.memorySize = 512; + }; + + 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 &'"); + $machine->waitForWindow(qr/Terminal/); + $machine->sleep(20); + $machine->screenshot("screen"); + ''; +}) |