test: Run all the fpi-device tests with the dynamically loaded TOD driver

We can ensure better that it works as expected repeating all the device
tests for it too.

The nice part is that we can just do this by re-defininig its GType as
the gtype of the loaded driver.
This commit is contained in:
Marco Trevisan (Treviño)
2020-12-03 04:38:15 +01:00
parent 9cbb3e5f55
commit c9579ab21b
4 changed files with 42 additions and 1 deletions
+4 -1
View File
@@ -229,11 +229,14 @@ if get_option('tod')
tod_unit_tests = [
'fp-context-tod',
'fp-device-tod',
'fpi-device',
]
foreach test_name: tod_unit_tests
basename = 'test-' + test_name
test_exe = executable(basename,
sufix = test_name.endswith('-tod') ? '' : '-tod'
test_name = test_name + sufix
test_exe = executable(basename + sufix,
sources: basename + '.c',
dependencies: libfprint_private_dep,
c_args: [