mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:56:01 +01:00
Add tests build option
This commit is contained in:
parent
48297a097f
commit
80b9680271
3 changed files with 8 additions and 3 deletions
|
@ -36,7 +36,7 @@ appdata = i18n.merge_file('appdata',
|
|||
po_dir: podir,
|
||||
)
|
||||
|
||||
desktop_file_validate = find_program('desktop-file-validate', required: false, native: true)
|
||||
desktop_file_validate = find_program('desktop-file-validate', required: get_option('tests'), native: true)
|
||||
if desktop_file_validate.found()
|
||||
test('validate-desktop',
|
||||
desktop_file_validate,
|
||||
|
@ -44,7 +44,7 @@ if desktop_file_validate.found()
|
|||
)
|
||||
endif
|
||||
|
||||
appstream_util = find_program('appstream-util', required: false, native: true)
|
||||
appstream_util = find_program('appstream-util', required: get_option('tests'), native: true)
|
||||
if appstream_util.found()
|
||||
test('validate-appdata',
|
||||
appstream_util,
|
||||
|
|
|
@ -23,3 +23,8 @@ option('manpages',
|
|||
value: 'auto',
|
||||
description: 'manual pages'
|
||||
)
|
||||
option('tests',
|
||||
type: 'feature',
|
||||
value: 'auto',
|
||||
description: 'run tests'
|
||||
)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
check = dependency('check', required: false)
|
||||
check = dependency('check', required: get_option('tests'))
|
||||
if check.found()
|
||||
test_dependencies = [
|
||||
declare_dependency(link_with: libzathura),
|
||||
|
|
Loading…
Reference in a new issue