aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-22 10:35:54 -0400
committerDavid Robillard <d@drobilla.net>2022-08-22 10:42:49 -0400
commit833e5bab330379797568007671d77e80e58ae388 (patch)
tree3297bc10a39fd0561d30024505fe7c0f9f3cb956
parentf4f9c9ec4c1031fc42af80642760a9138c3eaabc (diff)
downloadserd-833e5bab330379797568007671d77e80e58ae388.tar.gz
serd-833e5bab330379797568007671d77e80e58ae388.tar.bz2
serd-833e5bab330379797568007671d77e80e58ae388.zip
Only run autoship test in strict mode
-rw-r--r--INSTALL.md4
-rw-r--r--test/meson.build8
2 files changed, 9 insertions, 3 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 7109c35d..903e6805 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -39,6 +39,10 @@ Options can be set by passing C-style "define" options to `configure`:
meson configure -Dc_args="-march=native" -Dprefix="/opt/mypackage/"
+Note that some options, such as `strict` and `werror` are for
+developer/maintainer use only. Please don't file issues about anything that
+happens when they are enabled.
+
Building
--------
diff --git a/test/meson.build b/test/meson.build
index b38cee42..a1cac7ae 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,7 +1,6 @@
# Copyright 2021-2022 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: CC0-1.0 OR ISC
-autoship = find_program('autoship', required: false)
run_test_suite = files('run_test_suite.py')
wrapper = meson.get_external_property('exe_wrapper', '')
@@ -10,8 +9,11 @@ wrapper = meson.get_external_property('exe_wrapper', '')
# Project Metadata #
####################
-if autoship.found()
- test('autoship', autoship, args: ['test', serd_src_root], suite: 'data')
+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')
+ endif
endif
##############