summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-22 10:40:20 -0400
committerDavid Robillard <d@drobilla.net>2022-08-22 10:40:20 -0400
commit368d712dcccb7b1b5c8dbb96d70165bbab08ec06 (patch)
tree6866aff2393373a3ab90cd3d84270c9ffbe275c5
parent019855506fe2526c7cb192b28be4a65fdc5e9818 (diff)
downloadsuil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.tar.gz
suil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.tar.bz2
suil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.zip
Add autoship test
-rw-r--r--meson.build12
-rw-r--r--meson_options.txt3
2 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index a33859a..b19e5e0 100644
--- a/meson.build
+++ b/meson.build
@@ -320,6 +320,18 @@ if host_machine.system() == 'darwin'
endif
endif
+#########
+# Tests #
+#########
+
+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', suil_src_root], suite: 'data')
+ endif
+endif
+
#################
# Documentation #
#################
diff --git a/meson_options.txt b/meson_options.txt
index e46d37c..2038eca 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -16,6 +16,9 @@ option('qt5', type: 'feature', value: 'auto', yield: true,
option('strict', type: 'boolean', value: false, yield: true,
description: 'Enable ultra-strict warnings')
+option('tests', type: 'feature', value: 'auto', yield: true,
+ description: 'Build tests')
+
option('title', type: 'string', value: 'Suil',
description: 'Project title')