mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: Add testing to the synaptics driver
As the driver is not a normal image device, we need to add a custom script to test it. Note that the ioctl dump must also be manually modified unfortunately as the state is tracked incorrectly for the device by umockdev-record.
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
envs = environment()
|
||||
# Enable debug messages and abort on warnings
|
||||
envs.set('G_DEBUG', 'fatal-warnings')
|
||||
envs.set('G_MESSAGES_DEBUG', 'all')
|
||||
|
||||
# Setup paths
|
||||
envs.set('MESON_SOURCE_ROOT', meson.build_root())
|
||||
envs.prepend('GI_TYPELIB_PATH', join_paths(meson.build_root(), 'libfprint'))
|
||||
envs.prepend('LD_LIBRARY_PATH', join_paths(meson.build_root(), 'libfprint'))
|
||||
|
||||
# Set FP_DEVICE_EMULATION so that drivers can adapt (e.g. to use fixed
|
||||
# random numbers rather than proper ones)
|
||||
envs.set('FP_DEVICE_EMULATION', '1')
|
||||
|
||||
envs.set('NO_AT_BRIDGE', '1')
|
||||
|
||||
if 'virtual_image' in drivers
|
||||
@@ -21,5 +29,16 @@ if 'vfs5011' in drivers
|
||||
find_program('umockdev-test.py'),
|
||||
args: join_paths(meson.current_source_dir(), 'vfs5011'),
|
||||
env: envs,
|
||||
timeout: 10,
|
||||
)
|
||||
endif
|
||||
|
||||
if 'synaptics' in drivers
|
||||
test(
|
||||
'synaptics',
|
||||
find_program('umockdev-test.py'),
|
||||
args: join_paths(meson.current_source_dir(), 'synaptics'),
|
||||
env: envs,
|
||||
timeout: 10,
|
||||
)
|
||||
endif
|
||||
Reference in New Issue
Block a user