tests/virtual-device: Add identification tests

Reusing most of the logic of the `check_verify` utility function
This commit is contained in:
Marco Trevisan (Treviño)
2021-01-24 20:01:53 +01:00
parent 33ffadf402
commit 67cb61cc18
2 changed files with 46 additions and 6 deletions

View File

@@ -62,6 +62,8 @@ dev_identify (FpDevice *dev)
data = g_variant_new_string (scan_id);
g_object_set (new_scan, "fpi-data", data, NULL);
g_debug ("Trying to identify print '%s' against a gallery of %u prints", scan_id, prints->len);
if (g_ptr_array_find_with_equal_func (prints,
new_scan,
(GEqualFunc) fp_print_equal,