diff tests/test-as-advertised/test-as-advertised.sh @ 325:d5caf5e91a86 default-writer-writes-to-files

If the default writer were to be able to write to files (but this is backward-incompatible so probably unwise)
author Chris Cannam
date Fri, 18 May 2018 12:36:48 +0100
parents f35bbb3e4d41
children
line wrap: on
line diff
--- a/tests/test-as-advertised/test-as-advertised.sh	Fri May 18 11:27:02 2018 +0100
+++ b/tests/test-as-advertised/test-as-advertised.sh	Fri May 18 12:36:48 2018 +0100
@@ -22,10 +22,7 @@
     mkdir -p $tmpdir
     cp $infile $tmpwav
 
-    # Some of these are special cases:
-    #
-    # * The "default" writer type always prints to stdout instead of
-    # to a file.
+    # Special cases:
     #
     # * The "audiodb" writer will not print any output for features
     # that have no values (but are only point events).  I don't know
@@ -36,32 +33,28 @@
 	audiodb) 
 	    mkdir -p $adbdir
 	    $r -t $df -w $type $tmpwav --audiodb-basedir $tmpdir --audiodb-catid `basename $adbdir` 2>/dev/null || \
-		fail "Fails to run with reader type \"$type\" and default options"
-	    ;;
-	default) 
-	    $r -t $onsets -w $type $tmpwav > $tmpdir/test.out 2>/dev/null || \
-		fail "Fails to run with reader type \"$type\" and default options"
+		fail "Fails to run with writer type \"$type\" and default options"
 	    ;;
 	*)
 	    $r -t $onsets -w $type $tmpwav 2>/dev/null || \
-		fail "Fails to run with reader type \"$type\" and default options"
+		fail "Fails to run with writer type \"$type\" and default options"
 	    ;;
     esac
     newfiles=`ls $tmpdir | fgrep -v .wav`
     if [ "$type" = audiodb ]; then newfiles=`ls $adbdir`; fi
 
     [ -n "$newfiles" ] || \
-	fail "Fails to create output file for reader \"$type\" with default options"
+	fail "Fails to create output file for writer \"$type\" with default options"
 
     case `echo $newfiles | wc -w` in
 	[2-9])
 	if [ "$type" != audiodb ]; then
-	    fail "Produces more than one output file for reader \"$type\" with default options"
+	    fail "Produces more than one output file for writer \"$type\" with default options"
 	fi
 	;;
 	1)
 	if [ "$type" = audiodb ]; then
-	    fail "Produces only one output file for reader \"$type\" with default options (expected two)"
+	    fail "Produces only one output file for writer \"$type\" with default options (expected two)"
 	fi
 	;;
     esac