aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 21:38:36 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 21:38:36 +0200
commitd8d9e7969f01af089bbc7ef5930dfa02c4fe83f0 (patch)
tree0847077f847dfe4a6ba0206f8a76d321acd31117 /meson.build
parentd97d53b4d67958a0a64831636ef3c1969b7c899a (diff)
downloadmoony.lv2-d8d9e7969f01af089bbc7ef5930dfa02c4fe83f0.tar.xz
Squashed 'timely.lv2/' changes from 46cb1941..d4d4ad85
d4d4ad85 meson: add lv2_validate, lv2lint unit tests git-subtree-dir: timely.lv2 git-subtree-split: d4d4ad85091aea4d6fdb99e26062daf42f00f388
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build19
1 files changed, 16 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 9b0dd0a..4dbff9d 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('timely.lv2', 'c', default_options : [
'buildtype=release',
- 'warning_level=1',
+ 'warning_level=3',
'werror=false',
'b_lto=false',
'c_std=c11'])
@@ -11,6 +11,8 @@ conf_data = configuration_data()
cc = meson.get_compiler('c')
cp = find_program('cp')
+lv2_validate = find_program('lv2_validate', native : true, required : false)
+lv2lint = find_program('lv2lint', required : false)
clone = [cp, '@INPUT@', '@OUTPUT@']
m_dep = cc.find_library('m')
@@ -41,13 +43,24 @@ conf_data.set('MICRO_VERSION', version[2])
suffix = mod.full_path().strip().split('.')[-1]
conf_data.set('MODULE_SUFFIX', '.' + suffix)
-configure_file(input : join_paths('test', 'manifest.ttl.in'), output : 'manifest.ttl',
+manifest_ttl = configure_file(input : join_paths('test', 'manifest.ttl.in'), output : 'manifest.ttl',
configuration : conf_data,
install : true,
install_dir : inst_dir)
-custom_target('timely_ttl',
+dsp_ttl = custom_target('timely_ttl',
input : join_paths('test', 'timely.ttl'),
output : 'timely.ttl',
command : clone,
install : true,
install_dir : inst_dir)
+
+if lv2_validate.found()
+ test('LV2 validate', lv2_validate,
+ args : [manifest_ttl, dsp_ttl])
+endif
+
+if lv2lint.found()
+ test('LV2 lint', lv2lint,
+ args : ['-Ewarn',
+ 'http://open-music-kontrollers.ch/lv2/timely#test'])
+endif