Mercurial > hg > sonic-annotator
diff tests/test-vamp-test-plugin.sh @ 81:9f78c80c80f1
Merge from qt5 branch. We now require qt5 for Sonic Annotator
author | Chris Cannam |
---|---|
date | Wed, 08 May 2013 16:52:37 +0100 |
parents | 2633976fbef5 |
children | 0fe5abb56a6e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-vamp-test-plugin.sh Wed May 08 16:52:37 2013 +0100 @@ -0,0 +1,30 @@ +#!/bin/bash + +mypath=`dirname $0` +r=$mypath/../sonic-annotator + +infile=$mypath/audio/20sec-silence.wav +testplug=vamp:vamp-test-plugin:vamp-test-plugin +tmpcsv=$mypath/tmp_1_$$.csv + +trap "rm -f $tmpcsv" 0 + +. test-include.sh + +fail() { + echo "Test failed: $1" + exit 1 +} + +for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do + + $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ + fail "Failed to run for plugin $testplug with output $output" + + csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ + fail "Output differs from expected for $output" + +done + +exit 0 +