Mercurial > hg > sonic-annotator
annotate tests/test-json-writer/test-json-writer.sh @ 196:082c3f21f49e
Simple MIDI writer test
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 15:51:07 +0100 |
parents | 4ef452f5fefc |
children | 3b7ec45abd1c |
rev | line source |
---|---|
Chris@191 | 1 #!/bin/bash |
Chris@191 | 2 |
Chris@191 | 3 . ../include.sh |
Chris@191 | 4 |
Chris@191 | 5 tmpjson=$mypath/tmp_1_$$.json |
Chris@191 | 6 |
Chris@191 | 7 silentfile=$audiopath/20sec-silence.wav |
Chris@191 | 8 |
Chris@191 | 9 trap "rm -f $tmpjson" 0 |
Chris@191 | 10 |
Chris@191 | 11 transformdir=$mypath/transforms |
Chris@191 | 12 |
Chris@191 | 13 # This does not yet test for correct values, only for parseable json |
Chris@191 | 14 |
Chris@191 | 15 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do |
Chris@191 | 16 |
Chris@191 | 17 $r -d "$testplug:$output" -w json --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \ |
Chris@191 | 18 fail "Failed to run for plugin $testplug with output $output" |
Chris@191 | 19 |
Chris@191 | 20 check_json "$tmpjson" "test plugin output $output" |
Chris@191 | 21 done |
Chris@191 | 22 |