tests: Only run tests when introspection bindings are build
The tests cannot work without the introspection bindings. So put them into a corresponding if branch and also add the correct dependency on libfprint_typelib for them to be run.
This commit is contained in:
parent
951d482bc6
commit
9b37256175
2 changed files with 32 additions and 27 deletions
|
@ -6,7 +6,7 @@ project('libfprint', [ 'c', 'cpp' ],
|
||||||
'warning_level=1',
|
'warning_level=1',
|
||||||
'c_std=c99',
|
'c_std=c99',
|
||||||
],
|
],
|
||||||
meson_version: '>= 0.45.0')
|
meson_version: '>= 0.46.0')
|
||||||
|
|
||||||
gnome = import('gnome')
|
gnome = import('gnome')
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,14 @@ envs.set('FP_DEVICE_EMULATION', '1')
|
||||||
|
|
||||||
envs.set('NO_AT_BRIDGE', '1')
|
envs.set('NO_AT_BRIDGE', '1')
|
||||||
|
|
||||||
|
if get_option('introspection')
|
||||||
if 'virtual_image' in drivers
|
if 'virtual_image' in drivers
|
||||||
test(
|
test(
|
||||||
'virtual-image',
|
'virtual-image',
|
||||||
find_program('virtual-image.py'),
|
find_program('virtual-image.py'),
|
||||||
args: '--verbose',
|
args: '--verbose',
|
||||||
env: envs,
|
env: envs,
|
||||||
|
depends: libfprint_typelib,
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -30,6 +32,7 @@ if 'vfs5011' in drivers
|
||||||
args: join_paths(meson.current_source_dir(), 'vfs5011'),
|
args: join_paths(meson.current_source_dir(), 'vfs5011'),
|
||||||
env: envs,
|
env: envs,
|
||||||
timeout: 10,
|
timeout: 10,
|
||||||
|
depends: libfprint_typelib,
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -40,5 +43,7 @@ if 'synaptics' in drivers
|
||||||
args: join_paths(meson.current_source_dir(), 'synaptics'),
|
args: join_paths(meson.current_source_dir(), 'synaptics'),
|
||||||
env: envs,
|
env: envs,
|
||||||
timeout: 10,
|
timeout: 10,
|
||||||
|
depends: libfprint_typelib,
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue