From 843ce6dd80a7a1f4d73da7402ea532b3c166a305 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Aug 2022 10:36:35 -0400 Subject: Only run autoship test in strict mode --- test/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.1