Mercurial > hg > sonic-annotator
diff tests/test-json-destinations/test-json-destinations.sh @ 191:4ef452f5fefc
Add (failing) test for JSON output format (fails for grid output)
author | Chris Cannam |
---|---|
date | Wed, 22 Jul 2015 14:25:14 +0100 |
parents | 859d8ec60e06 |
children | 3b7ec45abd1c |
line wrap: on
line diff
--- a/tests/test-json-destinations/test-json-destinations.sh Mon Mar 02 17:21:59 2015 +0000 +++ b/tests/test-json-destinations/test-json-destinations.sh Wed Jul 22 14:25:14 2015 +0100 @@ -23,25 +23,6 @@ transformdir=$mypath/transforms -failshow() { - echo "Test failed: $1" - if [ -n "$2" ]; then - echo "Output follows:" - echo "--" - cat $2 - echo "--" - fi - exit 1 -} - -check_json() { - test -f $1 || \ - fail "Fails to write output to expected location $1 for $2" - cat $1 | json_verify -q || \ - failshow "Writes invalid JSON to location $1 for $2" $1 - rm -f $1 -} - ctx="onsets transform, one audio file, default JSON writer destination"