summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-09-25 10:36:01 +0200
committerLuca Bruno <lethalman88@gmail.com>2015-09-25 10:48:41 +0200
commit26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9 (patch)
tree6d0f51f30841d919d2ff07ff305ae100a857b02a /nixos/tests
parent41fc49ed7e94d9a0aef044a6ea34c142e376d3f7 (diff)
downloadnixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar.gz
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar.bz2
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar.lz
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar.xz
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.tar.zst
nixpkgs-26aea8b1aa798fa4cae5cf45953f8e3f3b7dbea9.zip
gnome3: init 3.18
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 00000000000..971fd48b186
--- /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");
+    '';
+})