comparison tests/test-transforms-basic.sh @ 55:43d788236ed1

Add unit test for multiple outputs in one run
author Chris Cannam
date Fri, 06 Jan 2012 14:53:46 +0000
parents c30b9720bde0
children 34b0c85258d0
comparison
equal deleted inserted replaced
54:c6362a37e6dc 55:43d788236ed1
29 -set-step-and-block-size \ 29 -set-step-and-block-size \
30 -set-sample-rate \ 30 -set-sample-rate \
31 -df-windowtype-default \ 31 -df-windowtype-default \
32 -df-windowtype-hanning \ 32 -df-windowtype-hanning \
33 -df-windowtype-hamming \ 33 -df-windowtype-hamming \
34 -multiple-outputs \
34 ; do 35 ; do
35 36
36 for type in xml n3 ; do 37 for type in xml n3 ; do
37 38
38 transform=$mypath/transforms/transforms-basic-percussiononsets$suffix.$type 39 transform=$mypath/transforms/transforms-basic-percussiononsets$suffix.$type
39 expected=$mypath/expected/transforms-basic-percussiononsets$suffix.csv 40 expected=$mypath/expected/transforms-basic-percussiononsets$suffix.csv
41
42 if [ ! -f $transform ]; then
43 if [ $type = "xml" ]; then
44 continue # not everything can be expressed in the XML
45 # format, e.g. the multiple output test can't
46 fi
47 fi
40 48
41 test -f $transform || \ 49 test -f $transform || \
42 fail "Internal error: no transforms file for suffix $suffix (looking for $transform)" 50 fail "Internal error: no transforms file for suffix $suffix (looking for $transform)"
43 51
44 test -f $expected || \ 52 test -f $expected || \