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:
parent
be4c6fe4c8
commit
032ed6ca4b
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user