Skip to content

Commit

Permalink
libfprintd: enable tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jtojnar authored and tomberek committed Feb 26, 2021
1 parent be4c6fe commit 032ed6c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkgs/development/libraries/libfprint/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchFromGitLab
, pkg-config
, meson
, python3
, ninja
, gusb
, pixman
Expand Down Expand Up @@ -44,10 +45,25 @@ stdenv.mkDerivation rec {
nss
];

checkInputs = [
python3
];

mesonFlags = [
"-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; {
homepage = "https://fprint.freedesktop.org/";
description = "A library designed to make it easy to add support for consumer fingerprint readers";
Expand Down

0 comments on commit 032ed6c

Please sign in to comment.