comparison tests/test-transforms-basic.sh @ 51:c30b9720bde0

Add proper support and tests for window type parameter (requires latest update to Vamp host SDK)
author Chris Cannam
date Tue, 21 Jun 2011 15:41:52 +0100
parents 94d988cef54e
children 43d788236ed1
comparison
equal deleted inserted replaced
50:d40b62a2006f 51:c30b9720bde0
26 -no-parameters \ 26 -no-parameters \
27 "" \ 27 "" \
28 -set-parameters \ 28 -set-parameters \
29 -set-step-and-block-size \ 29 -set-step-and-block-size \
30 -set-sample-rate \ 30 -set-sample-rate \
31 -df-windowtype-default \
32 -df-windowtype-hanning \
33 -df-windowtype-hamming \
31 ; do 34 ; do
32 35
33 for type in xml n3 ; do 36 for type in xml n3 ; do
34 37
35 transform=$mypath/transforms/transforms-basic-percussiononsets$suffix.$type 38 transform=$mypath/transforms/transforms-basic-percussiononsets$suffix.$type
36 expected=$mypath/expected/transforms-basic-percussiononsets$suffix.csv 39 expected=$mypath/expected/transforms-basic-percussiononsets$suffix.csv
37 40
38 test -f $transform || \ 41 test -f $transform || \
39 fail "Internal error: no transforms file for suffix $suffix" 42 fail "Internal error: no transforms file for suffix $suffix (looking for $transform)"
40 43
41 test -f $expected || \ 44 test -f $expected || \
42 fail "Internal error: no expected output file for suffix $suffix" 45 fail "Internal error: no expected output file for suffix $suffix (looking for $expected)"
43 46
44 $r -t $transform -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \ 47 $r -t $transform -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \
45 fail "Fails to run transform $transform" 48 fail "Fails to run transform $transform"
46 49
47 csvcompare $tmpfile2 $expected || \ 50 csvcompare $tmpfile2 $expected || \