From 0e71d02c73ef5e290abf876bf2b336b61a8fe390 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Sep 2022 12:20:05 -0400 Subject: Only run REUSE test in strict mode --- test/meson.build | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index 593308e..0b4eadb 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,21 +5,22 @@ # Project Metadata # #################### - -# Check release metadata -if not meson.is_subproject() and get_option('strict') - autoship = find_program('autoship', required: false) - if autoship.found() - test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') +if get_option('strict') + # Check release metadata + if not meson.is_subproject() + autoship = find_program('autoship', required: false) + if autoship.found() + test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') + endif endif -endif -# Check licensing metadata -reuse = find_program('reuse', required: false) -if reuse.found() - test('REUSE', reuse, - args: ['--root', sratom_src_root, 'lint'], - suite: 'data') + # Check licensing metadata + reuse = find_program('reuse', required: false) + if reuse.found() + test('REUSE', reuse, + args: ['--root', sratom_src_root, 'lint'], + suite: 'data') + endif endif ############## -- cgit v1.2.1