nixos/tests/libxmlb: init

This commit is contained in:
Jan Tojnar 2019-08-23 01:34:48 +02:00
parent 14056cc908
commit 93f4d6f6ae
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 25 additions and 0 deletions

View File

@ -141,6 +141,7 @@ in
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
ldap = handleTest ./ldap.nix {};
leaps = handleTest ./leaps.nix {};
libxmlb = handleTest ./libxmlb.nix {};
lidarr = handleTest ./lidarr.nix {};
lightdm = handleTest ./lightdm.nix {};
limesurvey = handleTest ./limesurvey.nix {};

17
nixos/tests/libxmlb.nix Normal file
View File

@ -0,0 +1,17 @@
# run installed tests
import ./make-test.nix ({ pkgs, ... }:
{
name = "libxmlb";
meta = {
maintainers = pkgs.libxmlb.meta.maintainers;
};
machine = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
};
testScript = ''
$machine->succeed("gnome-desktop-testing-runner -d '${pkgs.libxmlb.installedTests}/share'");
'';
})

View File

@ -12,6 +12,7 @@
, pkgconfig
, python3
, shared-mime-info
, nixosTests
}:
stdenv.mkDerivation rec {
@ -67,6 +68,12 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru = {
tests = {
installed-tests = nixosTests.libxmlb;
};
};
meta = with stdenv.lib; {
description = "A library to help create and query binary XML blobs";
homepage = https://github.com/hughsie/libxmlb;