libgdata.tests: add installedTests

This commit is contained in:
Jan Tojnar 2019-09-02 13:44:34 +02:00
parent e01d33a99d
commit d1f9fcbbbc
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
3 changed files with 27 additions and 0 deletions

View file

@ -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 {};

21
nixos/tests/libgdata.nix Normal file
View file

@ -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'");
'';
})

View file

@ -3,6 +3,7 @@
, pkgconfig
, meson
, ninja
, nixosTests
, vala
, gettext
, libxml2
@ -71,6 +72,10 @@ stdenv.mkDerivation rec {
packageName = pname;
versionPolicy = "none"; # Stable version has not been updated for a long time.
};
tests = {
installedTests = nixosTests.libgdata;
};
};
meta = with stdenv.lib; {