about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2019-03-18 07:59:17 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2019-03-18 08:05:42 -0400
commit5e7623aefc5035f849aa6515e04210b35190ca40 (patch)
tree274eff291d456f4c2a5180c392a3683c8c70e83f /nixos
parent5c106fe8ec66e760ad0ac9753693b26d9eb7f47b (diff)
downloadnixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar.gz
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar.bz2
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar.lz
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar.xz
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.tar.zst
nixlib-5e7623aefc5035f849aa6515e04210b35190ca40.zip
nixos/tests/colord: init
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/colord.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index de5b8bbb7c06..235d2b1febc6 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -43,6 +43,7 @@ in
   clickhouse = handleTest ./clickhouse.nix {};
   cloud-init = handleTest ./cloud-init.nix {};
   codimd = handleTest ./codimd.nix {};
+  colord = handleTest ./colord.nix {};
   containers-bridge = handleTest ./containers-bridge.nix {};
   containers-extra_veth = handleTest ./containers-extra_veth.nix {};
   containers-hosts = handleTest ./containers-hosts.nix {};
diff --git a/nixos/tests/colord.nix b/nixos/tests/colord.nix
new file mode 100644
index 000000000000..ce38aaca4bf2
--- /dev/null
+++ b/nixos/tests/colord.nix
@@ -0,0 +1,18 @@
+# run installed tests
+import ./make-test.nix ({ pkgs, ... }:
+
+{
+  name = "colord";
+
+  meta = {
+    maintainers = pkgs.colord.meta.maintainers;
+  };
+
+  machine = { pkgs, ... }: {
+    environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
+  };
+
+  testScript = ''
+    $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.colord.installedTests}/share'");
+  '';
+})