comparison tests/test-vamp-test-plugin.sh @ 81:9f78c80c80f1

Merge from qt5 branch. We now require qt5 for Sonic Annotator
author Chris Cannam
date Wed, 08 May 2013 16:52:37 +0100
parents 2633976fbef5
children 0fe5abb56a6e
comparison
equal deleted inserted replaced
73:b9b145d3013c 81:9f78c80c80f1
1 #!/bin/bash
2
3 mypath=`dirname $0`
4 r=$mypath/../sonic-annotator
5
6 infile=$mypath/audio/20sec-silence.wav
7 testplug=vamp:vamp-test-plugin:vamp-test-plugin
8 tmpcsv=$mypath/tmp_1_$$.csv
9
10 trap "rm -f $tmpcsv" 0
11
12 . test-include.sh
13
14 fail() {
15 echo "Test failed: $1"
16 exit 1
17 }
18
19 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do
20
21 $r -d "$testplug:$output" -w csv --csv-one-file "$tmpcsv" --csv-force "$infile" 2>/dev/null || \
22 fail "Failed to run for plugin $testplug with output $output"
23
24 csvcompare_ignorefirst "$tmpcsv" "$mypath/expected/vamp-test-plugin-$output.csv" || \
25 fail "Output differs from expected for $output"
26
27 done
28
29 exit 0
30