summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/meson.build b/test/meson.build
index 72a4870..551f44f 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,5 +1,3 @@
-autoship = find_program('autoship', required: false)
-
unit_tests = [
'sord',
]
@@ -17,6 +15,10 @@ foreach unit : unit_tests
)
endforeach
-if autoship.found()
- test('autoship', autoship, args: ['test', sord_src_root], suite: 'data')
+if get_option('strict') and not meson.is_subproject()
+ # Check release metadata
+ autoship = find_program('autoship', required: false)
+ if autoship.found()
+ test('autoship', autoship, args: ['test', sord_src_root], suite: 'data')
+ endif
endif