Chris@228: #!/bin/bash Chris@228: Chris@228: . ../include.sh Chris@228: Chris@228: infile=$audiopath/3clicks8.wav Chris@228: tmpfile=$mypath/tmp_$$ Chris@228: trap "rm -f $tmpfile" 0 Chris@228: Chris@228: for transform in "$mypath"/inputs/* ; do Chris@228: Chris@228: base=$(basename "$transform") Chris@228: expected="$mypath"/expected/"$base".txt Chris@228: Chris@228: if [ ! -f "$expected" ]; then Chris@228: fail "Internal error: Expected file $expected not found for transform $transform" Chris@228: fi Chris@228: Chris@228: if $r -t "$transform" -w csv --csv-one-file /dev/null "$infile" 2>"$tmpfile" ; then Chris@228: fail "Erroneously succeeds in running bogus transform $transform" Chris@228: fi Chris@228: Chris@228: cat "$expected" | while read line; do Chris@228: if ! fgrep -q "$line" "$tmpfile" ; then Chris@228: fail "Expected output text \"$line\" not found in diagnostic output for transform $base" Chris@228: fi Chris@228: done Chris@228: Chris@228: done Chris@228: