comparison tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 363:23b1e214014a

New version of test plugin
author Chris Cannam
date Tue, 28 Jan 2020 15:14:05 +0000
parents ffa60ff17a86
children
comparison
equal deleted inserted replaced
362:9d547101e7cd 363:23b1e214014a
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 $r --transform-minversion $testplug 4 || \ 10 minversion=5
11 fail "Vamp Test Plugin version is too old (at least v4 required)" 11 $r --transform-minversion $testplug $minversion || \
12 fail "Vamp Test Plugin version is too old (at least v$minversion required)"
12 13
13 for output in instants curve-oss curve-fsr curve-fsr-timed curve-fsr-mixed curve-vsr grid-oss grid-fsr notes-regions; do 14 for output in instants curve-oss curve-fsr curve-fsr-timed curve-fsr-mixed curve-vsr grid-oss grid-fsr notes-regions; do
14 15
15 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ 16 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \
16 fail "Failed to run for plugin $testplug with output $output" 17 fail "Failed to run for plugin $testplug with output $output"