comparison 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
comparison
equal deleted inserted replaced
196:082c3f21f49e 197:3b7ec45abd1c
8 8
9 trap "rm -f $tmpjson" 0 9 trap "rm -f $tmpjson" 0
10 10
11 transformdir=$mypath/transforms 11 transformdir=$mypath/transforms
12 12
13 mandatory="-w json --json-format jams"
14
13 # This does not yet test for correct values, only for parseable json 15 # This does not yet test for correct values, only for parseable json
14 16
15 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do 17 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do
16 18
17 $r -d "$testplug:$output" -w json --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \ 19 $r -d "$testplug:$output" $mandatory --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \
18 fail "Failed to run for plugin $testplug with output $output" 20 fail "Failed to run for plugin $testplug with output $output"
19 21
20 check_json "$tmpjson" "test plugin output $output" 22 check_json "$tmpjson" "test plugin output $output"
21 done 23 done
22 24