comparison tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 122:eb0f3a2029b8

Merge from test-reorg branch
author Chris Cannam
date Wed, 08 Oct 2014 15:38:48 +0100
parents 7a31201dc42d
children ffa60ff17a86
comparison
equal deleted inserted replaced
117:5be4995f4029 122:eb0f3a2029b8
1 #!/bin/bash
2
3 . ../include.sh
4
5 infile=$audiopath/20sec-silence.wav
6 tmpcsv=$mypath/tmp_1_$$.csv
7
8 trap "rm -f $tmpcsv" 0
9
10 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do
11
12 $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"
14
15 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \
16 fail "Output differs from expected for $output"
17
18 done
19
20 exit 0
21