ref: 076b51a2764bfa33c67ef2ed7223ce63365e707f
parent: fbcad60e3523e7525f4c7ca49b2c9d3666d98f46
author: Rob Sykes <robs@users.sourceforge.net>
date: Mon Apr 25 04:39:49 EDT 2011
replace monkey.au
--- a/src/test-comments
+++ b/src/test-comments
@@ -1,6 +1,7 @@
#!/bin/sh
tmp=/tmp/`basename $0`-$$
+input=$tmp.wav # no comment support
check_file () {
./sox --i -a $1 > $tmp.comments
@@ -21,7 +22,9 @@
com1="foo bar"
com2="bar foo"
-./sox monkey.au $tmp.au # Apply default comment
+./sox -n $input trim 0 .1
+
+./sox $input $tmp.au # Apply default comment
check $tmp.au "$com0"
cp $tmp.au $tmp.comment.au
@@ -33,19 +36,19 @@
TRACKNUMBER=01
.
-./sox monkey.au --comment-file $tmp.i $tmp.comments.au
+./sox $input --comment-file $tmp.i $tmp.comments.au
check_file $tmp.comments.au $tmp.i
-./sox monkey.au --comment= $tmp.au # Don't apply default comment
+./sox $input --comment= $tmp.au # Don't apply default comment
check $tmp.au
-./sox monkey.au --add-comment "$com1" $tmp.au
+./sox $input --add-comment "$com1" $tmp.au
check $tmp.au "$com1"
./sox $tmp.comment.au --add-comment "$com1" $tmp.au
check $tmp.au "$com0" "$com1"
-./sox monkey.au --add-comment "$com1" --add-comment "$com2" $tmp.au
+./sox $input --add-comment "$com1" --add-comment "$com2" $tmp.au
check $tmp.au "$com1" "$com2"
./sox $tmp.comment.au --add-comment "$com1" --add-comment "$com2" $tmp.au