Mercurial > hg > sonic-annotator
comparison tests/test-json-destinations/test-json-destinations.sh @ 151:a1300db6c63e jams
JSON well-formedness test (currently failing)
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 11:27:43 +0100 |
parents | d86ef0a88fa4 |
children | db83ea0e102d |
comparison
equal
deleted
inserted
replaced
150:d86ef0a88fa4 | 151:a1300db6c63e |
---|---|
24 transformdir=$mypath/transforms | 24 transformdir=$mypath/transforms |
25 | 25 |
26 check_json() { | 26 check_json() { |
27 test -f $1 || \ | 27 test -f $1 || \ |
28 fail "Fails to write output to expected location $1 for $2" | 28 fail "Fails to write output to expected location $1 for $2" |
29 ##!!! todo! | 29 cat $1 | json_verify || \ |
30 fail "Writes invalid JSON to location $1 for $2" | |
30 rm -f $1 | 31 rm -f $1 |
31 } | 32 } |
32 | 33 |
33 | 34 |
34 ctx="onsets transform, one audio file, default JSON writer destination" | 35 ctx="onsets transform, one audio file, default JSON writer destination" |