Mercurial > hg > sonic-annotator
comparison tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 256:ffa60ff17a86
Add test for new fsr-mixed output of Vamp Test Plugin
author | Chris Cannam |
---|---|
date | Thu, 15 Sep 2016 11:31:23 +0100 |
parents | 7a31201dc42d |
children | 23b1e214014a |
comparison
equal
deleted
inserted
replaced
255:0774f36cb151 | 256:ffa60ff17a86 |
---|---|
5 infile=$audiopath/20sec-silence.wav | 5 infile=$audiopath/20sec-silence.wav |
6 tmpcsv=$mypath/tmp_1_$$.csv | 6 tmpcsv=$mypath/tmp_1_$$.csv |
7 | 7 |
8 trap "rm -f $tmpcsv" 0 | 8 trap "rm -f $tmpcsv" 0 |
9 | 9 |
10 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do | 10 $r --transform-minversion $testplug 4 || \ |
11 fail "Vamp Test Plugin version is too old (at least v4 required)" | |
12 | |
13 for output in instants curve-oss curve-fsr curve-fsr-timed curve-fsr-mixed curve-vsr grid-oss grid-fsr notes-regions; do | |
11 | 14 |
12 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ | 15 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ |
13 fail "Failed to run for plugin $testplug with output $output" | 16 fail "Failed to run for plugin $testplug with output $output" |
14 | 17 |
15 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ | 18 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ |
16 fail "Output differs from expected for $output" | 19 faildiff "Output differs from expected for $output" "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" |
17 | 20 |
18 done | 21 done |
19 | 22 |
20 exit 0 | 23 exit 0 |
21 | 24 |