diff options
author | David Robillard <d@drobilla.net> | 2022-09-08 12:20:55 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-08 12:20:55 -0400 |
commit | 6c6ea7e029c1899ae2cf05483b4ae5d688b6247d (patch) | |
tree | 06af1786125fc190ccff7a65139f4171ec25675b | |
parent | 46111484e2c5b611a15a77e6142c59465bcfd643 (diff) | |
download | sord-6c6ea7e029c1899ae2cf05483b4ae5d688b6247d.tar.gz sord-6c6ea7e029c1899ae2cf05483b4ae5d688b6247d.tar.bz2 sord-6c6ea7e029c1899ae2cf05483b4ae5d688b6247d.zip |
Only run REUSE test in strict mode
-rw-r--r-- | test/meson.build | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/test/meson.build b/test/meson.build index 9979e2e..ff52dad 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,20 +5,22 @@ # Project Metadata # #################### -# Check release metadata -if get_option('strict') and not meson.is_subproject() - autoship = find_program('autoship', required: false) - if autoship.found() - test('autoship', autoship, args: ['test', sord_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', sord_src_root], suite: 'data') + endif endif -endif -# Check licensing metadata -reuse = find_program('reuse', required: false) -if reuse.found() - test('REUSE', reuse, - args: ['--root', sord_src_root, 'lint'], - suite: 'data') + # Check licensing metadata + reuse = find_program('reuse', required: false) + if reuse.found() + test('REUSE', reuse, + args: ['--root', sord_src_root, 'lint'], + suite: 'data') + endif endif ############## |