results 709 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. # $Id$
  3. if [ -z "$OS" ]; then
  4. OS=`../scripts/os`
  5. fi
  6. if [ -z "$CONFIG" ]; then
  7. CONFIG=`../scripts/config`
  8. fi
  9. if [ -z "$RESULTS" ]; then
  10. RESULTS=results/$OS
  11. fi
  12. BASE=../$RESULTS/`uname -n`
  13. EXT=0
  14. if [ ! -f "../bin/$OS/$CONFIG" ]
  15. then echo "No config file?"
  16. exit 1
  17. fi
  18. . ../bin/$OS/$CONFIG
  19. if [ ! -d ../$RESULTS ]
  20. then mkdir -p ../$RESULTS
  21. fi
  22. RESULTS=$BASE.$EXT
  23. while [ -f $RESULTS ]
  24. do EXT=`expr $EXT + 1`
  25. RESULTS=$BASE.$EXT
  26. done
  27. cd ../bin/$OS
  28. export OUTPUT
  29. echo Results going to ${RESULTS}
  30. ./lmbench $CONFIG 2>../${RESULTS}
  31. if [ X$MAIL = Xyes ]
  32. then (echo Mailing results
  33. echo ---- $INFO ---
  34. cat $INFO
  35. echo ---- $RESULTS ---
  36. cat ../$RESULTS) | mail lmbench2@bitmover.com
  37. fi
  38. exit 0