results 648 B

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