Chris@75: #!/bin/bash Chris@75: Chris@75: mypath=`dirname $0` Chris@75: r=$mypath/../sonic-annotator Chris@75: Chris@75: infile=$mypath/audio/20sec-silence.wav Chris@75: testplug=vamp:vamp-test-plugin:vamp-test-plugin Chris@75: tmpcsv=$mypath/tmp_1_$$.csv Chris@75: Chris@75: trap "rm -f $tmpcsv" 0 Chris@75: Chris@75: . test-include.sh Chris@75: Chris@75: fail() { Chris@75: echo "Test failed: $1" Chris@75: exit 1 Chris@75: } Chris@75: Chris@75: for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do Chris@75: Chris@75: $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ Chris@75: fail "Failed to run for plugin $testplug with output $output" Chris@75: Chris@75: csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ Chris@75: fail "Output differs from expected for $output" Chris@75: Chris@75: done Chris@75: Chris@75: exit 0 Chris@75: