diff options
author | David Robillard <d@drobilla.net> | 2022-08-22 10:40:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-22 10:40:20 -0400 |
commit | 368d712dcccb7b1b5c8dbb96d70165bbab08ec06 (patch) | |
tree | 6866aff2393373a3ab90cd3d84270c9ffbe275c5 | |
parent | 019855506fe2526c7cb192b28be4a65fdc5e9818 (diff) | |
download | suil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.tar.gz suil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.tar.bz2 suil-368d712dcccb7b1b5c8dbb96d70165bbab08ec06.zip |
Add autoship test
-rw-r--r-- | meson.build | 12 | ||||
-rw-r--r-- | meson_options.txt | 3 |
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') |