# command file to do the whetsone benchmarks
echo "This shell-script runs whets and whetd "
echo
echo "These benchmarks include:"
echo "		        whets ("
echo "		        whetd"
echo 
echo "All tests are run three times"
echo "\n\n"
RESFILE=WHET.sparc
echo "All measurement results are transfered to: $RESFILE"
if test -f $RESFILE
then
	rm $RESFILE
fi
echo "\nStarting the tests"
echo "Results of Whetstone Tests from `date`\n\n" >> $RESFILE 
echo "Machine: `uname -a` \n\n" >> $RESFILE
echo "Pathname: $PATH" >> $RESFILE
echo >> $RESFILE
echo "===========================================================" >> $RESFILE
echo "\n1.) The whets function: 1. run"
echo "The whets function, 1. run" >> $RESFILE
/bin/time whets >> $RESFILE
echo "The whets function, 2. run" >> $RESFILE
echo "           2. run"
/bin/time whets >> $RESFILE
echo "The whets function, 3. run" >> $RESFILE
echo "           3. run"
/bin/time whets >> $RESFILE
#
echo "===========================================================" >> $RESFILE
echo "\n2.) whetd: 1. run"
echo "whetd, 1. run" >> $RESFILE
/bin/time whetd >> $RESFILE
echo "whetd, 2. run" >> $RESFILE
echo "           2. run"
/bin/time whetd >> $RESFILE
echo "whetd, 3. run" >> $RESFILE
echo "           3. run"
/bin/time whetd >> $RESFILE
#
echo "===========================================================" >> $RESFILE
#
