comparison tests/test-jams-writer/test-jams-writer.sh @ 200:f35bbb3e4d41 sonic-annotator-1.2

Change of tack: rename the JSON writer to JAMS. It's simpler than having a JSON writer with a mandatory flag to tell it what sort of JSON to write.
author Chris Cannam
date Tue, 01 Sep 2015 17:51:03 +0100
parents tests/test-json-writer/test-json-writer.sh@3b7ec45abd1c
children 1f8fef5c6ea2
comparison
equal deleted inserted replaced
199:c8b934ed4ddd 200:f35bbb3e4d41
1 #!/bin/bash
2
3 . ../include.sh
4
5 tmpjson=$mypath/tmp_1_$$.json
6
7 silentfile=$audiopath/20sec-silence.wav
8
9 trap "rm -f $tmpjson" 0
10
11 transformdir=$mypath/transforms
12
13 mandatory="-w jams"
14
15 # This does not yet test for correct values, only for parseable json
16
17 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do
18
19 $r -d "$testplug:$output" $mandatory --jams-one-file "$tmpjson" --jams-force "$silentfile" 2>/dev/null || \
20 fail "Failed to run for plugin $testplug with output $output"
21
22 check_json "$tmpjson" "test plugin output $output"
23 done
24