From 96c8578478669b05006be49c6b48adbd4170c314 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 12:55:18 -0400 Subject: Add release metadata test --- meson.build | 10 +++++++++- meson_options.txt | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) 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') -- cgit v1.2.1