Mercurial > hg > sonic-annotator
view tests/test-json-writer/test-json-writer.sh @ 198:68daabfc4ccc
Use iconv instead of uconv (present on OS/X)
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 17:29:02 +0100 |
parents | 3b7ec45abd1c |
children |
line wrap: on
line source
#!/bin/bash . ../include.sh tmpjson=$mypath/tmp_1_$$.json silentfile=$audiopath/20sec-silence.wav trap "rm -f $tmpjson" 0 transformdir=$mypath/transforms mandatory="-w json --json-format jams" # This does not yet test for correct values, only for parseable json for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do $r -d "$testplug:$output" $mandatory --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \ fail "Failed to run for plugin $testplug with output $output" check_json "$tmpjson" "test plugin output $output" done