aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-08 12:20:48 -0400
committerDavid Robillard <d@drobilla.net>2022-09-08 12:20:48 -0400
commit27b6d451c77e823d7247171dc98b5c79b8ea912d (patch)
tree617a8fb62091f49b499b3922fae542ea02fc2761
parent3b245251dfce9192b6f0e9eb3b93662773f70b73 (diff)
downloadserd-27b6d451c77e823d7247171dc98b5c79b8ea912d.tar.gz
serd-27b6d451c77e823d7247171dc98b5c79b8ea912d.tar.bz2
serd-27b6d451c77e823d7247171dc98b5c79b8ea912d.zip
Only run REUSE test in strict mode
-rw-r--r--test/meson.build26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/meson.build b/test/meson.build
index 57576f04..1aaa7183 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -9,20 +9,22 @@ wrapper = meson.get_external_property('exe_wrapper', '')
# 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', serd_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', serd_src_root], suite: 'data')
+ endif
endif
-endif
-# Check licensing metadata
-reuse = find_program('reuse', required: false)
-if reuse.found()
- test('REUSE', reuse,
- args: ['--root', serd_src_root, 'lint'],
- suite: 'data')
+ # Check licensing metadata
+ reuse = find_program('reuse', required: false)
+ if reuse.found()
+ test('REUSE', reuse,
+ args: ['--root', serd_src_root, 'lint'],
+ suite: 'data')
+ endif
endif
##############