Commit 5bac69fd authored by Hanspeter Portner's avatar Hanspeter Portner

meson: add test targets.

parent 1dcb4e99
Pipeline #26595446 failed with stages
in 6 minutes and 3 seconds
......@@ -18,10 +18,13 @@ stages:
.build_template: &build_definition
<<: *common_definition
before_script:
- export PATH="/opt/lv2/bin:$PATH"
script:
- meson --prefix="/opt/${CI_BUILD_NAME}" --libdir="lib" --cross-file "${CI_BUILD_NAME}" build
- ninja -C build
- ninja -C build install
- ninja -C build test
- mkdir -p "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/${BASE_NAME}"
- cp -r "/opt/${CI_BUILD_NAME}/lib/lv2/${BASE_NAME}/" "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"
......
......@@ -42,6 +42,8 @@ lgen = generator(flex,
arguments : ['--prefix=enc', '-o', '@OUTPUT@', '@INPUT@'])
cp = find_program('cp')
lv2_validate = find_program('lv2_validate', native : true, required : false)
lv2lint = find_program('lv2lint', required : false)
clone = [cp, '@INPUT@', '@OUTPUT@']
lfiles = lgen.process('encoder.l')
......@@ -101,19 +103,19 @@ ui = shared_module('sherlock_nk', 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 : 'sherlock.ttl',
output : 'sherlock.ttl',
command : clone,
install : true,
install_dir : inst_dir)
custom_target('ui_ttl',
ui_ttl = custom_target('ui_ttl',
input : 'sherlock_ui.ttl',
output : 'sherlock_ui.ttl',
command : clone,
......@@ -126,3 +128,16 @@ 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/sherlock#atom_inspector',
'http://open-music-kontrollers.ch/lv2/sherlock#midi_inspector',
'http://open-music-kontrollers.ch/lv2/sherlock#osc_inspector'])
endif
......@@ -90,7 +90,7 @@ sherlock:filter
a lv2:Parameter ;
rdfs:label "Filter" ;
rdfs:comment "Filter events according to type or object type" ;
rdfs:range atom:URID .
rdfs:range atom:URI .
sherlock:negate
a lv2:Parameter ;
......@@ -155,7 +155,7 @@ sherlock:atom_inspector
sherlock:follow ,
sherlock:pretty ,
sherlock:trace ,
sherlock:filter,
sherlock:filter ,
sherlock:negate ;
state:state [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment