Mercurial > hg > sonic-annotator
view tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 366:9f7297c47850
Update plugin handling to follow the smart pointers used in the svcore library. This is awkward in our context, and the outcome isn't a very nice one - but it
does look as if we had the potential for use-after-free in cases where a plugin
was both used "bare" and wrapped in an auto-deleting adapter; those should be
fixed now
author | Chris Cannam |
---|---|
date | Thu, 23 Apr 2020 15:51:55 +0100 |
parents | 23b1e214014a |
children |
line wrap: on
line source
#!/bin/bash . ../include.sh infile=$audiopath/20sec-silence.wav tmpcsv=$mypath/tmp_1_$$.csv trap "rm -f $tmpcsv" 0 minversion=5 $r --transform-minversion $testplug $minversion || \ fail "Vamp Test Plugin version is too old (at least v$minversion required)" for output in instants curve-oss curve-fsr curve-fsr-timed curve-fsr-mixed curve-vsr grid-oss grid-fsr notes-regions; do $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \ fail "Failed to run for plugin $testplug with output $output" csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \ faildiff "Output differs from expected for $output" "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" done exit 0