Mercurial > hg > sonic-annotator
annotate tests/test-midi-writer/test-midi-writer.sh @ 272:45892d8efa4c piper-nopiper
Update svcore audio reader tests so as to check for truncated decode
author | Chris Cannam |
---|---|
date | Fri, 25 Nov 2016 11:41:53 +0000 |
parents | 082c3f21f49e |
children |
rev | line source |
---|---|
Chris@196 | 1 #!/bin/bash |
Chris@196 | 2 |
Chris@196 | 3 . ../include.sh |
Chris@196 | 4 |
Chris@196 | 5 infile=$audiopath/20sec-silence.wav |
Chris@196 | 6 tmpmidi=$mypath/tmp_1_$$.mid |
Chris@196 | 7 |
Chris@196 | 8 trap "rm -f $tmpmidi" 0 |
Chris@196 | 9 |
Chris@196 | 10 for output in notes-regions curve-vsr; do |
Chris@196 | 11 |
Chris@196 | 12 flag="" |
Chris@196 | 13 |
Chris@196 | 14 $r -d "$testplug:$output" -w midi --midi-one-file "$tmpmidi" --midi-force "$infile" 2>/dev/null || \ |
Chris@196 | 15 fail "Failed to run for plugin $testplug with output $output and no additional flags" |
Chris@196 | 16 |
Chris@196 | 17 midicompare "$tmpmidi" "$mypath/expected/$output.mid" || \ |
Chris@196 | 18 faildiff_od "Output differs from expected for output $output" "$tmpmidi" "$mypath/expected/$output.mid" |
Chris@196 | 19 |
Chris@196 | 20 done |
Chris@196 | 21 |
Chris@196 | 22 exit 0 |
Chris@196 | 23 |