diff options
author | David Robillard <d@drobilla.net> | 2022-09-08 12:20:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-08 12:20:17 -0400 |
commit | a3072faf1cba7b75897553c39c54ef028c4ff2f7 (patch) | |
tree | 669ca66d6a85d9f381e81bc1bca05fadd14e9faf | |
parent | 4481433eff977198f1a7aecf657e1fab66b41e63 (diff) | |
download | suil-a3072faf1cba7b75897553c39c54ef028c4ff2f7.tar.gz suil-a3072faf1cba7b75897553c39c54ef028c4ff2f7.tar.bz2 suil-a3072faf1cba7b75897553c39c54ef028c4ff2f7.zip |
Only run REUSE test in strict mode
-rw-r--r-- | meson.build | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/meson.build b/meson.build index a5198fe..ee4f444 100644 --- a/meson.build +++ b/meson.build @@ -335,20 +335,22 @@ endif # Tests # ######### -# 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', suil_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', suil_src_root], suite: 'data') + endif endif -endif -# Check licensing metadata -reuse = find_program('reuse', required: false) -if reuse.found() - test('REUSE', reuse, - args: ['--root', suil_src_root, 'lint'], - suite: 'data') + # Check licensing metadata + reuse = find_program('reuse', required: false) + if reuse.found() + test('REUSE', reuse, + args: ['--root', suil_src_root, 'lint'], + suite: 'data') + endif endif ################# |