comparison tests/test-json-writer/test-json-writer.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
children 3b7ec45abd1c
comparison
equal deleted inserted replaced
190:2d2253469ca4 191:4ef452f5fefc
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 # This does not yet test for correct values, only for parseable json
14
15 for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do
16
17 $r -d "$testplug:$output" -w json --json-one-file "$tmpjson" --json-force "$silentfile" 2>/dev/null || \
18 fail "Failed to run for plugin $testplug with output $output"
19
20 check_json "$tmpjson" "test plugin output $output"
21 done
22