ref: 230fa2c37c4bd9252ee9e5d8ccdf5862f93acd7d
parent: 6beda2fd2ef14f2165b4cf33a48fd9a7fdd9c84d
	author: robs <robs>
	date: Wed Feb  4 16:59:59 EST 2009
	
attempt to make more robust
--- a/src/tests.sh
+++ b/src/tests.sh
@@ -171,8 +171,10 @@
}
# Reading and writing performance test
+time="/usr/bin/time -p"
 timeIO () {-  ${bindir}/sox -c $channels -r $rate -n tmp.sox synth $samples's' saw 0:`expr $rate / 2` noise brown vol .9+ echo TIME synth
+  $time ${bindir}/sox -c $channels -r $rate -n tmp.sox synth $samples's' saw 0:`expr $rate / 2` noise brown vol .9while [ $# != 0 ]; do
     if [ "${skip}x" != "x" ] ; then       from_skip=`echo ${skip} | grep ${1}`@@ -180,8 +182,8 @@
     if [ "${from_skip}x" = "x" ] ; thengetFormat $1;
echo "TIME \"$formatText\" channels=$channels samples=$samples write, read:"
-      time ${bindir}/sox $verbose -D tmp.sox $formatFlags -t $1 - | \-      time ${bindir}/sox $verbose -t $1 -c $channels -r $rate - -t sox /dev/null+      ($time ${bindir}/sox $verbose -D tmp.sox $formatFlags -t $1 -) | \+      ($time ${bindir}/sox $verbose -t $1 -c $channels -r $rate - -t sox /dev/null)fi
shift
done
--
⑨