diff 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
line wrap: on
line diff
--- a/tests/test-transforms-basic.sh	Wed Sep 28 16:49:50 2011 +0100
+++ b/tests/test-transforms-basic.sh	Fri Jan 06 14:53:46 2012 +0000
@@ -31,6 +31,7 @@
     -df-windowtype-default \
     -df-windowtype-hanning \
     -df-windowtype-hamming \
+    -multiple-outputs \
     ; do
 
     for type in xml n3 ; do 
@@ -38,6 +39,13 @@
 	transform=$mypath/transforms/transforms-basic-percussiononsets$suffix.$type
 	expected=$mypath/expected/transforms-basic-percussiononsets$suffix.csv
 
+	if [ ! -f $transform ]; then
+	    if [ $type = "xml" ]; then
+		continue # not everything can be expressed in the XML
+			 # format, e.g. the multiple output test can't
+	    fi
+	fi
+
 	test -f $transform || \
 	    fail "Internal error: no transforms file for suffix $suffix (looking for $transform)"