comparison tests/test-midi-writer/test-midi-writer.sh @ 196:082c3f21f49e

Simple MIDI writer test
author Chris Cannam
date Tue, 01 Sep 2015 15:51:07 +0100
parents
children
comparison
equal deleted inserted replaced
195:3f7c65f26559 196:082c3f21f49e
1 #!/bin/bash
2
3 . ../include.sh
4
5 infile=$audiopath/20sec-silence.wav
6 tmpmidi=$mypath/tmp_1_$$.mid
7
8 trap "rm -f $tmpmidi" 0
9
10 for output in notes-regions curve-vsr; do
11
12 flag=""
13
14 $r -d "$testplug:$output" -w midi --midi-one-file "$tmpmidi" --midi-force "$infile" 2>/dev/null || \
15 fail "Failed to run for plugin $testplug with output $output and no additional flags"
16
17 midicompare "$tmpmidi" "$mypath/expected/$output.mid" || \
18 faildiff_od "Output differs from expected for output $output" "$tmpmidi" "$mypath/expected/$output.mid"
19
20 done
21
22 exit 0
23