Merge branch 'kate/install-test' into 'master'

Install test programs

See merge request libfprint/fprintd!231
This commit is contained in:
Kate Hsuan 2026-05-13 08:39:31 +08:00
commit 39211d6c3c
2 changed files with 35 additions and 0 deletions

View file

@ -32,3 +32,7 @@ option('tests',
type: 'boolean',
value: true,
description: 'Run tests')
option('installed-tests',
type: 'boolean',
value: false,
description: 'Install test programs')

View file

@ -128,3 +128,34 @@ if not address_sanitizer and find_program('valgrind', required: false).found()
)
endif
if get_option('installed-tests')
installed_tests_dir = fprintd_installdir / 'installed-tests' / 'fprintd'
install_subdir('dbusmock',
install_dir: installed_tests_dir,
)
install_subdir('pam',
install_dir: installed_tests_dir,
)
install_subdir('prints',
install_dir: installed_tests_dir,
)
install_data([
'fprintd.py',
'output_checker.py',
'test_fprintd_utils.py',
'unittest_inspector.py',
],
install_dir: installed_tests_dir,
install_mode: 'rwxr-xr-x',
)
install_data([
'output_checker.py',
],
install_dir: installed_tests_dir,
)
endif