aboutsummaryrefslogtreecommitdiff
path: root/props.lv2/meson.build
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-12 19:10:18 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-12 19:10:18 +0200
commit2e3c3f9ac3ebe8c189ffc4c7b9bf0e00a2782f5b (patch)
treea1c67da345aa9b39c04b94669503e7111b4d3b0d /props.lv2/meson.build
parent9e6243811af834c6121c81f43b91988995814513 (diff)
parent913275f83901bac8dc12de4877c15fb3d1d60fb4 (diff)
downloadchim.lv2-2e3c3f9ac3ebe8c189ffc4c7b9bf0e00a2782f5b.tar.xz
Merge commit '913275f83901bac8dc12de4877c15fb3d1d60fb4'
Diffstat (limited to 'props.lv2/meson.build')
-rw-r--r--props.lv2/meson.build27
1 files changed, 25 insertions, 2 deletions
diff --git a/props.lv2/meson.build b/props.lv2/meson.build
index 176a8bb..d354d89 100644
--- a/props.lv2/meson.build
+++ b/props.lv2/meson.build
@@ -11,6 +11,9 @@ conf_data = configuration_data()
cc = meson.get_compiler('c')
cp = find_program('cp')
+lv2_validate = find_program('lv2_validate', native : true, required : false)
+sord_validate = find_program('sord_validate', native : true, required : false)
+lv2lint = find_program('lv2lint', required : false)
clone = [cp, '@INPUT@', '@OUTPUT@']
m_dep = cc.find_library('m')
@@ -41,11 +44,12 @@ 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('props_ttl',
+dsp_ttl = custom_target('props_ttl',
input : join_paths('test', 'props.ttl'),
output : 'props.ttl',
command : clone,
@@ -57,3 +61,22 @@ custom_target('chunk_bin',
command : clone,
install : true,
install_dir : inst_dir)
+
+props_test = executable('props_test',
+ join_paths('test', 'props_test.c'),
+ c_args : c_args,
+ install : false)
+
+test('Test', props_test,
+ timeout : 240)
+
+if lv2_validate.found() and sord_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/props#test'])
+endif