Mercurial > hg > sonic-annotator
diff tests/test-json-writer/test-json-writer.sh @ 197:3b7ec45abd1c
Add mandatory option --json-format to JSON feature writer, in preparation for supporting multiple JSON formats (perhaps) in future
author | Chris Cannam |
---|---|
date | Tue, 01 Sep 2015 17:05:32 +0100 |
parents | 4ef452f5fefc |
children |
line wrap: on
line diff
--- a/tests/test-json-writer/test-json-writer.sh Tue Sep 01 15:51:07 2015 +0100 +++ b/tests/test-json-writer/test-json-writer.sh Tue Sep 01 17:05:32 2015 +0100 @@ -10,11 +10,13 @@ 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" -w json --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \ + $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"