view tests/test-jams-writer/test-jams-writer.sh @ 201:345b10b8cf17

Added tag sonic-annotator-1.2 for changeset f35bbb3e4d41
author Chris Cannam
date Wed, 09 Sep 2015 14:11:53 +0100
parents f35bbb3e4d41
children 1f8fef5c6ea2
line wrap: on
line source
#!/bin/bash

. ../include.sh

tmpjson=$mypath/tmp_1_$$.json

silentfile=$audiopath/20sec-silence.wav

trap "rm -f $tmpjson" 0

transformdir=$mypath/transforms

mandatory="-w jams"

# This does not yet test for correct values, only for parseable json

for output in instants curve-oss curve-fsr curve-fsr-timed curve-vsr grid-oss grid-fsr notes-regions; do

    $r -d "$testplug:$output" $mandatory --jams-one-file "$tmpjson" --jams-force "$silentfile" 2>/dev/null || \
	fail "Failed to run for plugin $testplug with output $output"

    check_json "$tmpjson" "test plugin output $output"
done