mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-21 10:48:12 +02:00
Merge branch 'kate/install-test' into 'master'
Install test programs See merge request libfprint/fprintd!231
This commit is contained in:
commit
39211d6c3c
2 changed files with 35 additions and 0 deletions
|
|
@ -32,3 +32,7 @@ option('tests',
|
|||
type: 'boolean',
|
||||
value: true,
|
||||
description: 'Run tests')
|
||||
option('installed-tests',
|
||||
type: 'boolean',
|
||||
value: false,
|
||||
description: 'Install test programs')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue