view tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 262:d7bbc5b03619 piper-nopiper

Ordered config -- avoid sub-builds clobbering one another
author Chris Cannam
date Tue, 22 Nov 2016 16:41:06 +0000
parents ffa60ff17a86
children 23b1e214014a
line wrap: on
line source
#!/bin/bash

. ../include.sh

infile=$audiopath/20sec-silence.wav
tmpcsv=$mypath/tmp_1_$$.csv

trap "rm -f $tmpcsv" 0

$r --transform-minversion $testplug 4 || \
    fail "Vamp Test Plugin version is too old (at least v4 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