Marco Trevisan (Treviño)
ad514c3775
test-fpi-device: Fix file description
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
3c5b7f8ea6
test-fpi-device: Add more probe tests with errors
2020-01-17 19:44:52 +01:00
Marco Trevisan (Treviño)
b09df0e40a
test-fpi-device: Add tests for error message creation
2020-01-17 19:44:50 +01:00
Marco Trevisan (Treviño)
027ac8d843
fpi-device: Only mark a device as closed if the operation succeeded
...
We may fail during the close phase, in such case the device should not be
marked as closed.
2020-01-17 19:03:33 +01:00
Marco Trevisan (Treviño)
b3a4c2cf9a
fpi-device: Improve logging and testing on report/complete
2020-01-17 19:03:33 +01:00
Marco Trevisan (Treviño)
9f3272f296
test-fpi-device: Use smart pointer to handle CB data
2020-01-17 18:43:01 +01:00
Marco Trevisan (Treviño)
456522397a
verify: Add match callback report
2020-01-16 20:24:42 +01:00
Marco Trevisan (Treviño)
0889ec20a8
fp-device: Remove confusing success parameter on FpMatchCb
...
This was added as alias to the error check, but given we're passing to the
callback both the error and the match itself, we can just avoid adding an
extra parameter that could be confusing (as may imply that the matching
happened).
Also clarify the documentation and ensure that the match value is properly
set in tests.
2020-01-16 20:24:42 +01:00
Marco Trevisan (Treviño)
30c783cbeb
examples: add FP_COMPONENT definitions
2020-01-16 14:37:07 +01:00
Marco Trevisan (Treviño)
078cea1709
verify: Add a verify_quit convenience function
...
It ends the loop if the device is not open, otherwise closes it and ends
the loop once done.
2020-01-16 14:36:41 +01:00
Marco Trevisan (Treviño)
bc8a5859e3
verify: Always close an open device before quitting the loop
2020-01-16 14:19:08 +01:00
Benjamin Berg
05bc2e1c80
image-device: Avoid invalid state transition on cancellation
...
Fixes : #226
2020-01-15 14:57:51 +01:00
Benjamin Berg
29a13a9b4a
tests: Add error reporting tests based on virtual driver
...
We were not testing the image device error reporting functions yet
inside libfprint (fprintd already had such tests). Add tests to make
sure we catch errors earlier.
2020-01-13 17:58:41 +01:00
Benjamin Berg
54286c7603
image-device: Handle retry error propagation correctly
...
With the early reporting mechanism the retry error propagation needs to
be adjusted. Do the appropriate changes.
2020-01-13 17:58:41 +01:00
Benjamin Berg
db14995c31
image-device: Set cancelling when errors are reported
...
Allow the AWAIT_FINGER_ON to deactivation state transition after errors
are reported.
2020-01-13 17:58:41 +01:00
Benjamin Berg
7aaeec3d6a
tests: Check that missing identify/verify result returns error
2020-01-13 14:37:39 +01:00
Benjamin Berg
0b8e2d6074
tests: Add tests for the verify/identify retry cases
2020-01-13 14:37:39 +01:00
Benjamin Berg
0c582230f3
tests: Add tests for the early reporting mechanism
...
This adds tests to check whether the verify/identify early reporting
mechanism is behaving correctly.
2020-01-13 14:37:39 +01:00
Benjamin Berg
829fb9f873
device: Add early match reporting to sync API
...
This makes the sync/async APIs more similar again. It also simplifies
testing as otherwise we would need the async methods for some tests.
2020-01-13 14:37:39 +01:00
Benjamin Berg
4d5c34e11a
Introduce an early reporting mechanism for verify and match
...
It is a good idea to report match results early, to e.g. log in a user
immediately even if more device interaction is needed. Add new _full
variants for the verify/identify functions, with a corresponding
callback. Also move driver result reporting into new
fpi_device_{identify,verify}_report functions and remove the reporting
from the fpi_device_{identify,verify}_complete calls.
Basic updates to code is done in places. Only the upekts driver is
actually modified from a behaviour point of view. The image driver code
should be restructured quite a bit to split the reporting and only
report completion after device deactivation. This should simplifiy the
code quite a bit again.
2020-01-13 14:37:39 +01:00
Benjamin Berg
8292c449f7
device: Better define ownership passing for results
...
Some things were odd with regard to the ownership of passed objects. Try
to make things sane overall, in particular with the possible floating
FpPrint reference.
2020-01-13 13:45:05 +01:00
Laurent Bigonville
6851a9643e
debian/control: Drop libxv-dev from the build-dep, not needed anymore
2020-01-11 02:02:54 +01:00
Laurent Bigonville
4e33d1dd28
Update debian/libfprint2.postinst for the new supported readers
2020-01-11 02:02:10 +01:00
Laurent Bigonville
df2a530b20
debian/patches/udev-rules-creation-add-Debian-specifics.patch: credit Sebastien Bacher
2020-01-11 02:02:04 +01:00
Laurent Bigonville
053fc7f489
debian/control: Build-Depends on python3-cairo, python3-gi, umockdev for the testsuite
2020-01-11 01:51:49 +01:00
Laurent Bigonville
153a519a41
debian/control: Bump Standards-Version to 4.4.1 (no further changes)
2020-01-10 20:34:23 +01:00
Laurent Bigonville
3c023b7b7a
Add gobject-introspection and libgirepository1.0-dev to the build-dependencies and install the GObject introspection bindings
2020-01-10 20:34:23 +01:00
Laurent Bigonville
6e21b46f55
Bump the soname to libfprint2
2020-01-10 20:34:22 +01:00
Laurent Bigonville
e8fe42536e
Bump debhelper compatibility version to 12
2020-01-10 20:34:07 +01:00
Laurent Bigonville
1751baec91
debian/patches/udev-rules-creation-add-Debian-specifics.patch: refreshed
2020-01-10 20:33:45 +01:00
Laurent Bigonville
50e8754206
Drop d/patches/kFreeBSD_FTBFS_add_ETIME_definition.patch and d/patches/use-non-versionned-libusbh-path.patch, not needed anymore
2020-01-10 20:33:08 +01:00
Laurent Bigonville
c8677bedbf
New upstream release
...
* New upstream release
- Replace libusb-1.0 build-dependency by gusb and add libgusb-doc to the
Build-Depends-Indep
2020-01-10 03:08:50 +01:00
Laurent Bigonville
e926421740
Update upstream source from tag 'upstream/1.90.0'
...
Update to upstream version '1.90.0'
with Debian dir 70b1bcbdcc
2020-01-10 02:21:53 +01:00
Laurent Bigonville
3f38ffd3bf
New upstream version 1.90.0
2020-01-10 02:21:50 +01:00
Benjamin Berg
3f3d4559b4
upekts: Remove unused argument from deinitsm_new
2020-01-09 10:45:54 +01:00
Benjamin Berg
fcdf1a1ff1
device: Fix potential memory leak of progress_cb user data
...
The progress report user data free func was not assigned and therefore
never called. Add the missing assign, potentially fixing memory leaks
(mostly relevant for bindings).
2020-01-09 10:45:54 +01:00
Marco Trevisan (Treviño)
edd5d08bed
Merge remote-tracking branch 'origin/master' into tod
2020-01-08 19:04:08 +01:00
Benjamin Berg
ba07c74006
tests: Always add dummy skipping tests
...
Just hiding tests that cannot be run does not seem like the best idea.
So add dummy tests that are skipped, to denote that we could test more
than we actually do (even if it is just for drivers that are not
enabled).
2020-01-08 18:40:41 +01:00
Benjamin Berg
6716359fe8
tests: Add more notes about umockdev recording creation
...
umockdev recordings are usually not usable as is. Add some notes to the
README to summarise what kind of changes may be required.
2020-01-08 18:14:06 +01:00
Benjamin Berg
c27a4faeca
elan: Add umockdev based test
...
Unfortunately, the timeout handling cannot be simulated properly. This
also adds a workaround in the driver to not consider it a protocol error
if this happens.
2020-01-08 18:14:06 +01:00
Benjamin Berg
8992e559f8
image-device: Fix enroll continuation after retry error
...
Continuing an enroll was broken in case of a retry error. Explicitly add
code to wait for the finger to go OFF after a retry error, and ensure
that the enroll will continue once that has happened.
2020-01-08 18:14:06 +01:00
Benjamin Berg
6c6df626c8
image-device: Fix reading default values from the class
...
We cannot copy information from the class in the _init routine, instead,
this needs to be done in _constructed. Move the relevant code into a new
_constructed function to fix importing the bz3_threshold override from
drivers.
Fixes : #206
2020-01-08 18:14:06 +01:00
Benjamin Berg
87dee93633
examples: Do not re-prompt the finger when repeating verification
...
Let's assume the user will want to re-scan the same finger rather than
being prompted again to change it.
2020-01-08 18:14:06 +01:00
Benjamin Berg
516c1593bb
examples: Continue verification when return is pressed
...
The message says [Y/n], but will not do Y by default. Fix this.
2020-01-08 18:14:06 +01:00
Benjamin Berg
dcc7e6de90
examples: Save image even on match failure
...
Move the image saving out, so that it is always done when an image is
available. This allows viewing the image that corresponds to a match
failure.
2020-01-08 18:14:06 +01:00
Benjamin Berg
3c6ba0b678
storage: Do not free image data owned by FpPrint
...
The data returned by fp_print_get_image is owned by the FpPrint and
should not be free'ed.
2020-01-08 18:14:06 +01:00
Benjamin Berg
4db1b84c7a
examples: Do not free data returned by g_variant_get_fixed_array
...
This data is owned by the variant, so do not free it.
2020-01-08 18:14:06 +01:00
Benjamin Berg
36108f9f82
examples: Fix possible use-after-free in storage code
...
The variant may need the buffer, so we should only free the buffer
together with the variant.
2020-01-08 18:14:06 +01:00
Benjamin Berg
19f239ce61
tests: Add some frame assembly unit tests
2020-01-08 18:14:06 +01:00
Benjamin Berg
f91e5310bb
tests: Set MESON_SOURCE_ROOT to source root not build root
2020-01-02 13:46:46 +01:00