summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-04-10 17:02:57 +0200
committerLuca Bruno <lethalman88@gmail.com>2015-04-25 12:02:33 +0200
commitdb3b86560f11437e260ae6d6661c69fb5bb36c75 (patch)
tree7d21ce8f78907ea1e6ac97b9283ea13da9d7fc05 /nixos/tests
parent38d6aec3f630b4ef012f902482ef0ad5a5170844 (diff)
downloadnixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar.gz
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar.bz2
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar.lz
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar.xz
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.tar.zst
nixpkgs-db3b86560f11437e260ae6d6661c69fb5bb36c75.zip
GNOME 3.16.1, closes #7357
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/gnome3_16.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/tests/gnome3_16.nix b/nixos/tests/gnome3_16.nix
new file mode 100644
index 00000000000..23a66aba50c
--- /dev/null
+++ b/nixos/tests/gnome3_16.nix
@@ -0,0 +1,34 @@
+import ./make-test.nix {
+  name = "gnome3";
+
+  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_16;
+
+      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");
+    '';
+
+}