Mercurial > hg > sonic-annotator
annotate tests/test-vamp-test-plugin.sh @ 118:0fe5abb56a6e test-reorg
Pull more stuff up into include file
author | Chris Cannam |
---|---|
date | Wed, 08 Oct 2014 14:20:45 +0100 |
parents | 2633976fbef5 |
children |
rev | line source |
---|---|
Chris@75 | 1 #!/bin/bash |
Chris@75 | 2 |
Chris@118 | 3 . test-include.sh |
Chris@75 | 4 |
Chris@75 | 5 infile=$mypath/audio/20sec-silence.wav |
Chris@75 | 6 tmpcsv=$mypath/tmp_1_$$.csv |
Chris@75 | 7 |
Chris@75 | 8 trap "rm -f $tmpcsv" 0 |
Chris@75 | 9 |
Chris@75 | 10 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do |
Chris@75 | 11 |
Chris@75 | 12 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ |
Chris@75 | 13 fail "Failed to run for plugin $testplug with output $output" |
Chris@75 | 14 |
Chris@75 | 15 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ |
Chris@75 | 16 fail "Output differs from expected for $output" |
Chris@75 | 17 |
Chris@75 | 18 done |
Chris@75 | 19 |
Chris@75 | 20 exit 0 |
Chris@75 | 21 |