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', ...@@ -36,7 +36,7 @@ appdata = i18n.merge_file('appdata',
po_dir: podir, 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() if desktop_file_validate.found()
test('validate-desktop', test('validate-desktop',
desktop_file_validate, desktop_file_validate,
...@@ -44,7 +44,7 @@ if desktop_file_validate.found() ...@@ -44,7 +44,7 @@ if desktop_file_validate.found()
) )
endif 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() if appstream_util.found()
test('validate-appdata', test('validate-appdata',
appstream_util, appstream_util,
......
...@@ -23,3 +23,8 @@ option('manpages', ...@@ -23,3 +23,8 @@ option('manpages',
value: 'auto', value: 'auto',
description: 'manual pages' 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() if check.found()
test_dependencies = [ test_dependencies = [
declare_dependency(link_with: libzathura), 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