summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-22 10:36:35 -0400
committerDavid Robillard <d@drobilla.net>2022-08-22 10:36:35 -0400
commit843ce6dd80a7a1f4d73da7402ea532b3c166a305 (patch)
treee6fb6ba0611e11295de2adcb0277fa5e6d84fa79 /test
parent14e5972ebb52c98a78f325b85b1bf9695a19e07b (diff)
downloadsratom-843ce6dd80a7a1f4d73da7402ea532b3c166a305.tar.gz
sratom-843ce6dd80a7a1f4d73da7402ea532b3c166a305.tar.bz2
sratom-843ce6dd80a7a1f4d73da7402ea532b3c166a305.zip
Only run autoship test in strict 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 3cecff6..e7a2a9f 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,5 +1,3 @@
-autoship = find_program('autoship', required: false)
-
unit_tests = [
'sratom',
]
@@ -18,6 +16,10 @@ foreach unit : unit_tests
)
endforeach
-if autoship.found()
- test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data')
+if not meson.is_subproject() and get_option('strict')
+ # Check release metadata
+ autoship = find_program('autoship', required: false)
+ if autoship.found()
+ test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data')
+ endif
endif