Mercurial > hg > sonic-annotator
diff 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 |
line wrap: on
line diff
--- a/tests/test-transforms-basic/test-transforms-basic.sh Wed Oct 08 15:26:48 2014 +0100 +++ b/tests/test-transforms-basic/test-transforms-basic.sh Wed Oct 08 15:38:34 2014 +0100 @@ -59,5 +59,25 @@ done done +# Check we can't run with multiple transforms if one or more is missing! + +$r -t $mypath/transforms/percussiononsets-set-step-and-block-size.n3 \ + -t $mypath/transforms/squiggly.n3 \ + -t $mypath/transforms/percussiononsets-start-and-duration.n3 \ + -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null && \ + fail "Incorrectly seems to succeed in running with a missing transform file" + + +# Check we can run with multiple transforms if they're all present + +$r -t $mypath/transforms/percussiononsets-set-step-and-block-size.n3 \ + -t $mypath/transforms/percussiononsets-set-parameters.xml \ + -t $mypath/transforms/percussiononsets-start-and-duration.n3 \ + -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \ + fail "Fails to run with multiple transforms" + +csvcompare $tmpfile2 $mypath/expected/multiple.csv || \ + faildiff "Output mismatch for multiple transforms" $tmpfile2 $mypath/expected/multiple.csv + exit 0