Benjamin Berg
a949594050
goodixmoc: Returned device print matched by verify/identify
...
This is needed for the fprintd duplicate checking code. The information
is needed to delete stale prints automatically from the device.
Related: #415
2021-09-21 19:13:02 +02:00
Benjamin Berg
20e8355c01
tests: Run custom.py from test creation helper when available
...
This allows creating tests both for image and non-image devices using
the same script.
2021-09-21 19:13:02 +02:00
boger
f579a77bfd
goodixmoc: add PID 63BC
...
63BC: Dell XPS series fingerprint sensor
2021-09-17 19:28:51 +08:00
Benjamin Berg
03deb3011b
udev-hwdb: Update unsupported device list
2021-09-17 12:54:02 +02:00
Benjamin Berg
c7650b6ec9
udev-hwdb: Set ID_PERSIST=0 in hwdb
...
See https://github.com/systemd/systemd/pull/20756
2021-09-17 12:46:29 +02:00
Aris Lin
128d809227
synaptics: add new PID 0x0123, 0x0126, and 0x0129
2021-09-17 12:42:51 +02:00
Benjamin Berg
9356e895a2
ci: Reference image directly for forks
...
Otherwise forks will not find the image and things fall apart (due to
the method of how we build the image).
2021-09-15 17:23:00 +02:00
Benjamin Berg
3c2883b992
ci: Pull in diffutils
...
It is needed by tests/test-generated-hwdb.sh and is not pulled in
indirectly anymore.
2021-09-15 16:27:17 +02:00
Benjamin Berg
eb568a62aa
ci: Switch to newer CI templates
2021-09-15 16:27:17 +02:00
Benjamin Berg
d763f8f41a
elanmoc: Fix warning
...
Really, it shouldn't matter, as there is no return. But adding the NULL
initializer does not harm either.
2021-09-15 15:54:25 +02:00
Benjamin Berg
df41ed56f6
meson: Use source_root() to not require meson 0.56
...
This fixes the flatpak build.
2021-09-15 15:43:33 +02:00
Bastien Nocera
aff063c23c
tests: Simplify capture of driver behaviour for regression tests
...
And update instructions for the simpler method.
Co-authored-by: Benjamin Berg <bberg@redhat.com >
2021-09-15 13:24:08 +00:00
Bastien Nocera
e2511095d1
device: Export kernel device from FpDevice
...
This is inelegant, but allows API consumers to match the FpDevice with
an OS device.
2021-09-15 13:24:08 +00:00
Bastien Nocera
9515cc2e59
tests: Add U.are.U 4500 test
2021-09-09 10:54:48 +02:00
Bastien Nocera
b3cfc40dea
tests: Add uru4000 test
...
This test requires control transfer replay fixes that will be contained
in umockdev 0.16.3. Bump the requirement accordingly.
Closes : #412
2021-09-08 20:37:00 +02:00
Benjamin Berg
c162b895c0
uru4000: Fix transfer type on interrupt endpoint
...
It appears the kernel automatically "fixes" this mistake and it works.
the transfer in question is an interrupt transfer and should be submitted
as such. Do that in order to make things more correct and so that the
test can run.
2021-09-08 20:37:00 +02:00
Bastien Nocera
40b3923ca6
tests: Add (another) elan driver replay test
...
This capture was made using a "COBO" branded device, and uses the new
pcapng format.
2021-09-08 15:36:35 +02:00
Bastien Nocera
d7e7d8e036
tests: Add aes2501 driver replay test
2021-09-08 15:25:14 +02:00
Bastien Nocera
ec53abfc3a
tests: Simplify multiple tests per driver code
2021-09-08 15:24:59 +02:00
Bastien Nocera
83541a2ddc
Revert "device: Export kernel device from FpDevice"
...
This reverts commit 8f93aef122 .
2021-09-06 17:34:22 +02:00
Bastien Nocera
e22497d51b
Revert "tests: Simplify capture of driver behaviour for regression tests"
...
This reverts commit 0dcb4be4d3 .
2021-09-06 17:34:15 +02:00
Bastien Nocera
0dcb4be4d3
tests: Simplify capture of driver behaviour for regression tests
...
And update instructions for the simpler method.
2021-09-06 17:32:05 +02:00
Bastien Nocera
8f93aef122
device: Export kernel device from FpDevice
...
This is inelegant, but allows API consumers to match the FpDevice with
an OS device.
2021-09-06 17:32:05 +02:00
Marco Trevisan (Treviño)
312b75fe66
test-fp-todv1-types: Ensure we check all the enum values
...
We were ignoring enum values when there were gaps, so let's check that
all the values in the old version enums are present in the current one.
2021-09-04 04:13:15 +02:00
Marco Trevisan (Treviño)
125d6e276f
tests: Repeat tests for TOD drivers compiled for each supported version
2021-09-04 03:20:58 +02:00
Marco Trevisan (Treviño)
4a337393a6
tests: Use more versioned types for fpi types tests
...
Also move images into its own header
2021-09-04 01:00:34 +02:00
Bastien Nocera
8dfa12e41d
fp-context: Fix typo in API docs
2021-09-03 20:58:25 +00:00
Marco Trevisan (Treviño)
9c37ffa4be
tests: Run TOD driver-independent tests alone
2021-09-03 20:18:36 +02:00
Marco Trevisan (Treviño)
c63455d289
TOD: Add wrappers for SSM functions that are not compatible with 1.90
...
Expose new versioned symbols that work with previous API so that we can
keep compatibility with old drivers without having to recompile them.
We disable the GCancellable API in delayed SSM actions since that was
something that wasn't really needed and prone to errors, instead of
just re-implementing it as it was in the TOD case.
2021-09-03 20:18:36 +02:00
Marco Trevisan (Treviño)
e4ef2ed7a0
tests: Do add TOD testing for SSM API
...
Driver is coming from the TOD drivers testing project [1].
https://gitlab.freedesktop.org/3v1n0/libfprint-tod-test-drivers
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño)
fdf86e65ec
TOD: Add changed functions in libfprint 1.92, a fallback version is needed
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño)
71827856c9
tod: Update version file to include new APIs per versions
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño)
d0aa30a435
tod: Check the message emission if the tod path isn't readable
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño)
29b904b93d
tests: Add versions check on TOD drivers based on their IDs
...
Recompile tod drivers using libfprint-tod-test-drivers project [1] so
that we don't have to reorder the private driver structure, plus use a
versioned driver ID and parse it to check whether a feature is supported
for such TOD test driver.
https://gitlab.freedesktop.org/3v1n0/libfprint-tod-test-drivers
2021-09-03 19:41:17 +02:00
Marco Trevisan (Treviño)
88cb452e05
fpi-device: Do not include config.h in headers
...
It should be included in files requiring it only.
2021-09-03 18:49:45 +02:00
Marco Trevisan (Treviño)
0a7473dce1
fpi-device: Do not include config.h in headers
...
It should be included in files requiring it only.
2021-09-02 13:43:43 +02:00
Marco Trevisan (Treviño)
4ed67f9084
build: Use host machine family from meson
2021-09-02 13:23:30 +02:00
Marco Trevisan (Treviño)
2d20c6a8f2
fpi-device: Ensure FpDeviceClass is still compatible with TODv1 ABI
...
Tests are ensuring it, adapt internal tests to ignore new features when
using old drivers
2021-08-28 03:07:23 +02:00
Marco Trevisan (Treviño)
2e00b03a43
Merge tag 'v1.94.0' into tod
...
Tag 1.94.0
Git-EVTag-v0-SHA512: 7cf9d7defb02433140f575589099569a5848ab34e8ecb0a4a90bb3c9eb1c228a16438afe1b23c381b59c1506f189a845752fead3dbd3c1c11f686cf47302cb1b
2021-08-28 02:19:40 +02:00
Benjamin Berg
909865ed8d
Release 1.94.0
v1.94.0
2021-08-20 14:36:18 +02:00
Benjamin Berg
39333a0642
doc: Add internal suspend/resume API
2021-08-20 14:36:14 +02:00
Benjamin Berg
4340be728c
doc: Add public suspend/resume API
2021-08-20 14:36:06 +02:00
Benjamin Berg
dba5ca5535
doc: Add criticial section API
2021-08-19 19:16:03 +02:00
Benjamin Berg
2a70cd7e02
udev-hwdb: Update unsupported list (add synaptics PID 00e7)
2021-08-19 19:03:24 +02:00
Benjamin Berg
3108ac3144
virtual-device: Return empty no-match if unknown SCAN id is passed
...
This matches the expectation. i.e. we return no-match and we do not
return a scanned print as we don't have anything for it. If we did
indeed return a scanned print, then fprintd would try to delete it
during enroll and would then fail.
Note that we do *not* return a DATA_NOT_FOUND error in the storage
device if the print does not exist. This is because not all devices
support reporting this error. It is therefore more sensible to handle it
gracefully and expect test setups to set the error explicitly for
testing purposes.
2021-08-19 18:59:38 +02:00
Benjamin Berg
c928d7bd8f
synaptics: Fix error handling when releasing the USB interface
...
The error may not be NULL, as such we need a second variable and then
we'll only forward any error from g_usb_device_release_interface if
there was none before.
2021-08-10 19:04:50 +02:00
hermanlin
ec42b2ade1
elanmoc: Increase of the timeout
2021-08-10 16:45:16 +08:00
hermanlin
4edfa48608
elanmoc: Fix the identify/verify error reporting in identify_status_report
2021-08-10 16:40:03 +08:00
hermanlin
1a5df96751
elanmoc: Return the correct error when the storage is full
2021-08-10 16:34:37 +08:00
hermanlin
62448492af
elanmoc: Adjustments to protocol change (passing an empty user ID)
2021-08-10 16:22:54 +08:00