libfprintd: enable tests

virtual-image driver is needed for fprintd tests and enabling it
required patching shebangs of test-related scripts so I have enabled
tests here as well.
This commit is contained in:
Jan Tojnar 2021-02-11 06:20:18 +01:00 committed by tomberek
parent be4c6fe4c8
commit 032ed6ca4b

View file

@ -2,6 +2,7 @@
, fetchFromGitLab , fetchFromGitLab
, pkg-config , pkg-config
, meson , meson
, python3
, ninja , ninja
, gusb , gusb
, pixman , pixman
@ -44,10 +45,25 @@ stdenv.mkDerivation rec {
nss nss
]; ];
checkInputs = [
python3
];
mesonFlags = [ mesonFlags = [
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d" "-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
# Include virtual drivers for fprintd tests
"-Ddrivers=all"
]; ];
doCheck = true;
postPatch = ''
patchShebangs \
tests/test-runner.sh \
tests/unittest_inspector.py \
tests/virtual-image.py
'';
meta = with lib; { meta = with lib; {
homepage = "https://fprint.freedesktop.org/"; homepage = "https://fprint.freedesktop.org/";
description = "A library designed to make it easy to add support for consumer fingerprint readers"; description = "A library designed to make it easy to add support for consumer fingerprint readers";