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
This commit is contained in:
Marco Trevisan (Treviño)
2021-09-02 13:32:57 +02:00
parent 0a7473dce1
commit 29b904b93d
7 changed files with 152 additions and 55 deletions
+5 -5
View File
@@ -32,6 +32,8 @@ struct _FpiDeviceFake
gpointer last_called_function;
gboolean return_action_error;
GCancellable *ext_cancellable;
GError *ret_error;
FpPrint *ret_print;
FpPrint *ret_match;
@@ -39,14 +41,12 @@ struct _FpiDeviceFake
FpImage *ret_image;
GPtrArray *ret_list;
gpointer action_data;
gpointer user_data;
GCancellable *ext_cancellable;
GError *ret_suspend;
GError *ret_resume;
gpointer action_data;
gpointer user_data;
FpDeviceFeature probe_features_update;
FpDeviceFeature probe_features_value;
};