about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-09-02 13:44:34 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-09-03 16:51:47 +0200
commitd1f9fcbbbc8e334d78953900ff04cd2e58e2917f (patch)
tree0219b80acb1d2e221703114633a7263e448bc44a /nixos
parente01d33a99dc62aed1c97a1f82c094ae3b05bde8f (diff)
downloadnixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar.gz
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar.bz2
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar.lz
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar.xz
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.tar.zst
nixlib-d1f9fcbbbc8e334d78953900ff04cd2e58e2917f.zip
libgdata.tests: add installedTests
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/libgdata.nix21
2 files changed, 22 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 6964d5261fc4..41f088549057 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -145,6 +145,7 @@ in
   latestKernel.login = handleTest ./login.nix { latestKernel = true; };
   ldap = handleTest ./ldap.nix {};
   leaps = handleTest ./leaps.nix {};
+  libgdata = handleTest ./libgdata.nix {};
   libxmlb = handleTest ./libxmlb.nix {};
   lidarr = handleTest ./lidarr.nix {};
   lightdm = handleTest ./lightdm.nix {};
diff --git a/nixos/tests/libgdata.nix b/nixos/tests/libgdata.nix
new file mode 100644
index 000000000000..10a3ca97dd22
--- /dev/null
+++ b/nixos/tests/libgdata.nix
@@ -0,0 +1,21 @@
+# run installed tests
+import ./make-test.nix ({ pkgs, ... }:
+
+{
+  name = "libgdata";
+
+  meta = {
+    maintainers = pkgs.libgdata.meta.maintainers;
+  };
+
+  machine = { pkgs, ... }: {
+    environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
+    # # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyTlsBackend) for ‘gio-tls-backend’
+    # Bail out! libgdata:ERROR:../gdata/tests/common.c:134:gdata_test_init: assertion failed (child_error == NULL): TLS support is not available (g-tls-error-quark, 0)
+    services.gnome3.glib-networking.enable = true;
+  };
+
+  testScript = ''
+    $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.libgdata.installedTests}/share'");
+  '';
+})