diff TOOLS/benchmark-gab/benchmark @ 7197:c36333ff54b0

some fixes
author gabucino
date Sat, 31 Aug 2002 14:19:11 +0000
parents bcbbe5ee11fd
children 835822ce4bb1
line wrap: on
line diff
--- a/TOOLS/benchmark-gab/benchmark	Sat Aug 31 14:01:46 2002 +0000
+++ b/TOOLS/benchmark-gab/benchmark	Sat Aug 31 14:19:11 2002 +0000
@@ -2,6 +2,11 @@
 
 . ./variables
 
+if [ ! -e $MPBIN ]; then
+  wrtlog No MPlayer binary compiled for this arch, trying ./mplayer
+  export MPBIN="./mplayer"
+fi
+
 function benchsamples {
 for i in `ls samples/* | grep -v -e '\.opts'`; do
   BENCHOPTS=`cat $i.opts 2> /dev/null`
@@ -12,17 +17,17 @@
   wrtlog "$DEFAULTOPTS"
   wrtlog "Options for this file:"
   wrtlog "$BENCHOPTS"
-  BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
+  BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
   VC=`echo $BENCH | awk '{print $11}'`
   SYS=`echo $BENCH | awk '{print $9}'`
   wrtlog Total: $VC \(Sys: $SYS\)
 
-  BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
+  BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
   VC=`echo $BENCH | awk '{print $11}'`
   SYS=`echo $BENCH | awk '{print $9}'`
   wrtlog Total: $VC \(Sys: $SYS\)
 
-  BENCH="`$BUILD/mplayer $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
+  BENCH="`$MPBIN $DEFAULTOPTS $BENCHOPTS $i 2>&1 | grep BENCHMARKs`"
   VC=`echo $BENCH | awk '{print $11}'`
   SYS=`echo $BENCH | awk '{print $9}'`
   wrtlog Total: $VC \(Sys: $SYS\)