Mercurial > hg > sonic-annotator
comparison tests/test-transforms-basic/test-transforms-basic.sh @ 121:5200446bbc6b test-reorg
Check for multiple transforms. But one of these tests fails, so we'd better go back to development branch and sort out why!
author | Chris Cannam |
---|---|
date | Wed, 08 Oct 2014 15:38:34 +0100 |
parents | 7a31201dc42d |
children |
comparison
equal
deleted
inserted
replaced
120:dcecd6997214 | 121:5200446bbc6b |
---|---|
57 csvcompare $tmpfile2 $expected || \ | 57 csvcompare $tmpfile2 $expected || \ |
58 faildiff "Output mismatch for transform $transform" $tmpfile2 $expected | 58 faildiff "Output mismatch for transform $transform" $tmpfile2 $expected |
59 done | 59 done |
60 done | 60 done |
61 | 61 |
62 # Check we can't run with multiple transforms if one or more is missing! | |
63 | |
64 $r -t $mypath/transforms/percussiononsets-set-step-and-block-size.n3 \ | |
65 -t $mypath/transforms/squiggly.n3 \ | |
66 -t $mypath/transforms/percussiononsets-start-and-duration.n3 \ | |
67 -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null && \ | |
68 fail "Incorrectly seems to succeed in running with a missing transform file" | |
69 | |
70 | |
71 # Check we can run with multiple transforms if they're all present | |
72 | |
73 $r -t $mypath/transforms/percussiononsets-set-step-and-block-size.n3 \ | |
74 -t $mypath/transforms/percussiononsets-set-parameters.xml \ | |
75 -t $mypath/transforms/percussiononsets-start-and-duration.n3 \ | |
76 -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \ | |
77 fail "Fails to run with multiple transforms" | |
78 | |
79 csvcompare $tmpfile2 $mypath/expected/multiple.csv || \ | |
80 faildiff "Output mismatch for multiple transforms" $tmpfile2 $mypath/expected/multiple.csv | |
81 | |
62 exit 0 | 82 exit 0 |
63 | 83 |