Commit 80b96802 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add tests build option

parent 48297a09
......@@ -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'
)
check = dependency('check', required: false)
check = dependency('check', required: get_option('tests'))
if check.found()
test_dependencies = [
declare_dependency(link_with: libzathura),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment