mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-02-03 14:50:26 +01:00
tests: Check that a verify operation can be immediately restarted
This excercises the path where we early-report a result and the VerifyStop call must wait for the operation to complete intenernally. Note that this test cannot fail right now due to the FpImageDevice internal code still trying to hide the deactivation delay internally. See libfprint!174
This commit is contained in:
parent
18d6a86e9d
commit
e075d37590
1 changed files with 17 additions and 0 deletions
|
|
@ -742,6 +742,23 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
|
|||
self.assertEqual(self._last_result, 'verify-no-match')
|
||||
self.device.VerifyStop()
|
||||
|
||||
def test_verify_finger_no_match_restart(self):
|
||||
self.enroll_image('whorl', finger='left-thumb')
|
||||
self.device.VerifyStart('(s)', 'left-thumb')
|
||||
self.send_image('tented_arch')
|
||||
self.wait_for_result()
|
||||
self.assertTrue(self._verify_stopped)
|
||||
self.assertEqual(self._last_result, 'verify-no-match')
|
||||
self.device.VerifyStop()
|
||||
|
||||
# Immediately starting again after a no-match must work
|
||||
self.device.VerifyStart('(s)', 'left-thumb')
|
||||
self.send_image('whorl')
|
||||
self.wait_for_result()
|
||||
self.assertTrue(self._verify_stopped)
|
||||
self.assertEqual(self._last_result, 'verify-match')
|
||||
self.device.VerifyStop()
|
||||
|
||||
def test_verify_wrong_finger_match(self):
|
||||
self.enroll_image('whorl', finger='left-thumb')
|
||||
self.device.VerifyStart('(s)', 'left-toe')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue