about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-09-25 10:51:50 +0200
committerLuca Bruno <lethalman88@gmail.com>2015-09-25 10:51:50 +0200
commit45b1f5858c5bd33bb48e0c77c183b3cf7154847b (patch)
tree551b7ca10346e4962778b24d94a0887a391a736d /nixos/tests
parent4086bd92a54593f5137b07fba4f910a7a2ab63c6 (diff)
parent26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9 (diff)
downloadnixlib-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.nix36
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");
+    '';
+})