mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2025-12-20 03:30:11 +01:00
build: Add tests meson option
This commit is contained in:
parent
4621ee6c60
commit
cda9ab61fa
3 changed files with 31 additions and 22 deletions
11
meson.build
11
meson.build
|
|
@ -165,14 +165,16 @@ endif
|
|||
|
||||
polkit_policy_directory = polkit_gobject_dep.get_variable('policydir')
|
||||
|
||||
xmllint = find_program('xmllint', required: false)
|
||||
python3 = find_program('python3') # No meson without it!
|
||||
|
||||
# Tests dependencies
|
||||
if get_option('tests')
|
||||
pam_wrapper_dep = dependency('pam_wrapper', required: false)
|
||||
if get_option('pam') and not pam_wrapper_dep.found()
|
||||
warning('Dependency "pam_wrapper" required by test suite not found')
|
||||
endif
|
||||
|
||||
xmllint = find_program('xmllint', required: false)
|
||||
python3 = find_program('python3') # No meson without it!
|
||||
python3_test_modules = {
|
||||
'cairo': true,
|
||||
'dbus': true,
|
||||
|
|
@ -188,6 +190,9 @@ foreach module, required : python3_test_modules
|
|||
warning('Python3 module \'' + module + '\' required by test suite not found')
|
||||
endif
|
||||
endforeach
|
||||
endif
|
||||
|
||||
address_sanitizer = get_option('b_sanitize') == 'address'
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||
|
|
@ -211,7 +216,9 @@ endif
|
|||
if get_option('gtk_doc')
|
||||
subdir('doc')
|
||||
endif
|
||||
if get_option('tests')
|
||||
subdir('tests')
|
||||
endif
|
||||
subdir('po')
|
||||
|
||||
output = []
|
||||
|
|
|
|||
|
|
@ -28,3 +28,7 @@ option('gtk_doc',
|
|||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Use gtk-doc to build documentation')
|
||||
option('tests',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
description: 'Run tests')
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ python_tests = [
|
|||
# }
|
||||
]
|
||||
|
||||
address_sanitizer = get_option('b_sanitize') == 'address'
|
||||
|
||||
tests = [
|
||||
'fprintd',
|
||||
'test_fprintd_utils',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue