Mercurial > hg > sonic-annotator
annotate tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 389:bfd36a0105bc
Bump date
author | Chris Cannam |
---|---|
date | Mon, 08 Jun 2020 17:08:50 +0100 |
parents | 23b1e214014a |
children |
rev | line source |
---|---|
Chris@75 | 1 #!/bin/bash |
Chris@75 | 2 |
Chris@119 | 3 . ../include.sh |
Chris@75 | 4 |
Chris@119 | 5 infile=$audiopath/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@363 | 10 minversion=5 |
Chris@363 | 11 $r --transform-minversion $testplug $minversion || \ |
Chris@363 | 12 fail "Vamp Test Plugin version is too old (at least v$minversion required)" |
Chris@256 | 13 |
Chris@256 | 14 for output in instants curve-oss curve-fsr curve-fsr-timed curve-fsr-mixed curve-vsr grid-oss grid-fsr notes-regions; do |
Chris@75 | 15 |
Chris@75 | 16 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ |
Chris@75 | 17 fail "Failed to run for plugin $testplug with output $output" |
Chris@75 | 18 |
Chris@75 | 19 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ |
Chris@256 | 20 faildiff "Output differs from expected for $output" "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" |
Chris@75 | 21 |
Chris@75 | 22 done |
Chris@75 | 23 |
Chris@75 | 24 exit 0 |
Chris@75 | 25 |