2019-07-03 21:39:08 +00:00
|
|
|
envs = environment()
|
2019-08-12 14:30:40 +00:00
|
|
|
# Enable debug messages and abort on warnings
|
2019-07-03 21:39:08 +00:00
|
|
|
envs.set('G_DEBUG', 'fatal-warnings')
|
|
|
|
envs.set('G_MESSAGES_DEBUG', 'all')
|
2019-08-12 14:30:40 +00:00
|
|
|
|
|
|
|
# Setup paths
|
2019-07-03 21:39:08 +00:00
|
|
|
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'))
|
2019-08-12 14:30:40 +00:00
|
|
|
|
|
|
|
# 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')
|
|
|
|
|
2019-07-03 21:39:08 +00:00
|
|
|
envs.set('NO_AT_BRIDGE', '1')
|
|
|
|
|
2019-11-18 20:17:43 +00:00
|
|
|
if get_option('introspection')
|
|
|
|
if 'virtual_image' in drivers
|
2019-11-21 19:37:17 +00:00
|
|
|
test('virtual-image',
|
2019-11-18 20:17:43 +00:00
|
|
|
find_program('virtual-image.py'),
|
|
|
|
args: '--verbose',
|
|
|
|
env: envs,
|
|
|
|
depends: libfprint_typelib,
|
|
|
|
)
|
|
|
|
endif
|
2019-07-03 21:39:08 +00:00
|
|
|
|
2019-11-18 20:17:43 +00:00
|
|
|
if 'vfs5011' in drivers
|
2019-11-21 19:37:17 +00:00
|
|
|
test('vfs5011',
|
2019-11-18 20:17:43 +00:00
|
|
|
find_program('umockdev-test.py'),
|
|
|
|
args: join_paths(meson.current_source_dir(), 'vfs5011'),
|
|
|
|
env: envs,
|
|
|
|
timeout: 10,
|
|
|
|
depends: libfprint_typelib,
|
|
|
|
)
|
|
|
|
endif
|
2019-08-12 14:30:40 +00:00
|
|
|
|
2019-11-18 20:17:43 +00:00
|
|
|
if 'synaptics' in drivers
|
2019-11-21 19:37:17 +00:00
|
|
|
test('synaptics',
|
2019-11-18 20:17:43 +00:00
|
|
|
find_program('umockdev-test.py'),
|
|
|
|
args: join_paths(meson.current_source_dir(), 'synaptics'),
|
|
|
|
env: envs,
|
|
|
|
timeout: 10,
|
|
|
|
depends: libfprint_typelib,
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
endif
|