diff options
-rw-r--r-- | meson.build | 10 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 8805474..7d2ab27 100644 --- a/meson.build +++ b/meson.build @@ -186,7 +186,15 @@ threaded_tests = [ 'sem_test', ] -if not get_option('tests').disabled() +if not get_option('tests').disabled() and not meson.is_subproject() + # Check release metadata + autoship = find_program('autoship', required: false) + if autoship.found() + test('autoship', autoship, + args: ['test', meson.current_source_dir()], + suite: 'data') + endif + # Check licensing metadata reuse = find_program('reuse', required: get_option('tests')) if reuse.found() diff --git a/meson_options.txt b/meson_options.txt index 0017280..2893d42 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -12,3 +12,6 @@ option('strict', type: 'boolean', value: false, yield: true, option('tests', type: 'feature', value: 'auto', yield: true, description: 'Build tests') + +option('title', type: 'string', value: 'Zix', + description: 'Project title') |