libgdata.tests: add installedTests
This commit is contained in:
parent
e01d33a99d
commit
d1f9fcbbbc
|
@ -145,6 +145,7 @@ in
|
||||||
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
||||||
ldap = handleTest ./ldap.nix {};
|
ldap = handleTest ./ldap.nix {};
|
||||||
leaps = handleTest ./leaps.nix {};
|
leaps = handleTest ./leaps.nix {};
|
||||||
|
libgdata = handleTest ./libgdata.nix {};
|
||||||
libxmlb = handleTest ./libxmlb.nix {};
|
libxmlb = handleTest ./libxmlb.nix {};
|
||||||
lidarr = handleTest ./lidarr.nix {};
|
lidarr = handleTest ./lidarr.nix {};
|
||||||
lightdm = handleTest ./lightdm.nix {};
|
lightdm = handleTest ./lightdm.nix {};
|
||||||
|
|
21
nixos/tests/libgdata.nix
Normal file
21
nixos/tests/libgdata.nix
Normal 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'");
|
||||||
|
'';
|
||||||
|
})
|
|
@ -3,6 +3,7 @@
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
, nixosTests
|
||||||
, vala
|
, vala
|
||||||
, gettext
|
, gettext
|
||||||
, libxml2
|
, libxml2
|
||||||
|
@ -71,6 +72,10 @@ stdenv.mkDerivation rec {
|
||||||
packageName = pname;
|
packageName = pname;
|
||||||
versionPolicy = "none"; # Stable version has not been updated for a long time.
|
versionPolicy = "none"; # Stable version has not been updated for a long time.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tests = {
|
||||||
|
installedTests = nixosTests.libgdata;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue