diff tests/test-transforms-basic.sh @ 28:102bb1729184 sonic-annotator-0.4

* Test fixes for cases where the behaviour has actually been fixed for 0.4 * Emphasise this change in CHANGELOG
author Chris Cannam
date Fri, 25 Sep 2009 12:00:58 +0000
parents 03a02c1f0a9f
children 94d988cef54e
line wrap: on
line diff
--- a/tests/test-transforms-basic.sh	Thu Sep 24 14:34:00 2009 +0000
+++ b/tests/test-transforms-basic.sh	Fri Sep 25 12:00:58 2009 +0000
@@ -10,10 +10,7 @@
 
 trap "rm -f $tmpfile1 $tmpfile2" 0
 
-fail() {
-    echo "Test failed: $1"
-    exit 1
-}
+. test-include.sh
 
 $r --skeleton $testplug > $tmpfile1 2>/dev/null || \
     fail "Fails to run with --skeleton $testplug"
@@ -21,7 +18,7 @@
 $r -t $tmpfile1 -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \
     fail "Fails to run with -t $tmpfile -w csv --csv-stdout $infile"
 
-cmp -s $tmpfile2 $mypath/expected/transforms-basic-skeleton-1.csv || \
+csvcompare $tmpfile2 $mypath/expected/transforms-basic-skeleton-1.csv || \
     fail "Output mismatch for transforms-basic-skeleton-1.csv"
 
 for suffix in \
@@ -47,7 +44,7 @@
 	$r -t $transform -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \
 	    fail "Fails to run transform $transform"
 
-	cmp -s $tmpfile2 $expected || \
+	csvcompare $tmpfile2 $expected || \
 	    fail "Output mismatch for transform $transform"
     done
 done