aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-05 22:17:57 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-05 22:17:57 +0200
commitccaf26314d6d6f68b3129978e957c38718bb3d2e (patch)
treefabbb92884b6dffc0c7fa6cd4d08a15e23ec86c1
parent105eaec59618d72fac94fc6f0c392603fa56b683 (diff)
downloadmidi_matrix.lv2-ccaf26314d6d6f68b3129978e957c38718bb3d2e.tar.xz
meson: add lv2_validate, lv2lint unit tests.
-rw-r--r--VERSION2
-rw-r--r--meson.build19
2 files changed, 17 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 6de689c..f81cd12 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.21.127
+0.21.129
diff --git a/meson.build b/meson.build
index 1df8006..ff04de3 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,8 @@ add_project_arguments('-D_GNU_SOURCE', language : 'c')
add_project_arguments('-DPUGL_HAVE_GL', language : '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@']
c_args = ['-fvisibility=hidden',
@@ -87,19 +89,19 @@ ui = shared_module('midi_matrix_ui', ui_srcs,
suffix = mod.full_path().strip().split('.')[-1]
conf_data.set('MODULE_SUFFIX', '.' + suffix)
-configure_file(input : 'manifest.ttl.in', output : 'manifest.ttl',
+manifest_ttl = configure_file(input : 'manifest.ttl.in', output : 'manifest.ttl',
configuration : conf_data,
install : true,
install_dir : inst_dir)
-custom_target('dsp_ttl',
+dsp_ttl = custom_target('dsp_ttl',
input : 'midi_matrix.ttl',
output : 'midi_matrix.ttl',
command : clone,
install : true,
install_dir : inst_dir)
-custom_target('ui_ttl',
+ui_ttl = custom_target('ui_ttl',
input : 'midi_matrix_ui.ttl',
output : 'midi_matrix_ui.ttl',
command : clone,
@@ -112,3 +114,14 @@ custom_target('font',
command : clone,
install : true,
install_dir : inst_dir)
+
+if lv2_validate.found()
+ test('LV2 validate', lv2_validate,
+ args : [manifest_ttl, dsp_ttl, ui_ttl])
+endif
+
+if lv2lint.found()
+ test('LV2 lint', lv2lint,
+ args : ['-Ewarn',
+ 'http://open-music-kontrollers.ch/lv2/midi_matrix#channel_filter'])
+endif