Mercurial > hg > sonic-annotator
comparison tests/test-vamp-test-plugin/test-vamp-test-plugin.sh @ 119:7a31201dc42d test-reorg
Split out tests into individual directories, with simpler naming therein
author | Chris Cannam |
---|---|
date | Wed, 08 Oct 2014 15:08:57 +0100 |
parents | tests/test-vamp-test-plugin.sh@0fe5abb56a6e |
children | ffa60ff17a86 |
comparison
equal
deleted
inserted
replaced
118:0fe5abb56a6e | 119:7a31201dc42d |
---|---|
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 |