summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')