Mercurial > hg > sonic-annotator
comparison tests/test-json-destinations/test-json-destinations.sh @ 152:db83ea0e102d jams
Make the JSON well-formed (though still empty), except in the case where we are asked to write more than one file's features to the same output file or stdout
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 12:35:19 +0100 |
parents | a1300db6c63e |
children | 859d8ec60e06 |
comparison
equal
deleted
inserted
replaced
151:a1300db6c63e | 152:db83ea0e102d |
---|---|
78 check_json $audiopath/$outfile2 "$ctx" | 78 check_json $audiopath/$outfile2 "$ctx" |
79 | 79 |
80 | 80 |
81 ctx="onsets transform, two audio files, one-file JSON writer" | 81 ctx="onsets transform, two audio files, one-file JSON writer" |
82 | 82 |
83 # Does not support one file across all tracks | 83 $r -t $transformdir/onsets.n3 -w json --json-one-file $tmpjson $infile1 $infile2 2>/dev/null || \ |
84 fail "Fails to run with $ctx" | |
84 | 85 |
85 $r -t $transformdir/onsets.n3 -w json --json-one-file $tmpjson $infile1 $infile2 2>/dev/null && \ | 86 check_json $tmpjson "$ctx" |
86 fail "Fails by completing successfully with $ctx" | |
87 | 87 |
88 | 88 |
89 ctx="onsets transform, two audio files, stdout JSON writer" | 89 ctx="onsets transform, two audio files, stdout JSON writer" |
90 | 90 |
91 $r -t $transformdir/onsets.n3 -w json --json-stdout $infile1 $infile2 2>/dev/null >$tmpjson || \ | 91 $r -t $transformdir/onsets.n3 -w json --json-stdout $infile1 $infile2 2>/dev/null >$tmpjson || \ |