BSD 4_3_Net_2 release
[unix-history] / usr / src / sys / tests / nfs / unix-tests / general / runtests.wrk
:
#!/bin/sh
#
# @(#)runtests.wrk 1.4 90/01/09 NFS Rev 2 testsuite
# 1.4 Lachman ONC Test Suite source
#
# This script is intended to be invoked from 'runtests'
# Don't run it manually
case x$1 in
xFROM_RUNTESTS)
;;
*)
echo "$0 must be run from 'runtests' - Don't run manually"
exit 1
;;
esac
TIME=time
# if the default time command doesn't return the right format,
# you may have to use the following lines
#TIME=/bin/time
#if [ ! -f $TIME ]
#then
# TIME=/usr/bin/time
# if [ ! -f $TIME ]
# then
# echo "Where is the time command?"
# exit 1
# fi
#fi
chmod 777 large4.sh mkdummy rmdummy
umask 0
# use the appropriate CFLAGS
CFLAGS="-O $SYSTYPE $UTS"
echo ""
echo "Small Compile"
rm -f smcomp.time
$TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
$TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
$TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
$TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
$TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
set -e
stat smcomp.time
set +e
echo ""
echo "Tbl"
rm -f tbl.time
$TIME tbl nroff.in > nroff.tbl 2>> tbl.time
$TIME tbl nroff.in > nroff.tbl 2>> tbl.time
$TIME tbl nroff.in > nroff.tbl 2>> tbl.time
$TIME tbl nroff.in > nroff.tbl 2>> tbl.time
$TIME tbl nroff.in > nroff.tbl 2>> tbl.time
set -e
stat tbl.time
set +e
echo ""
echo "Nroff"
rm -f nroff.time
$TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
$TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
$TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
$TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
$TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
rm nroff.out nroff.tbl
set -e
stat nroff.time
set +e
echo ""
echo "Large Compile"
rm -f lrgcomp.time
$TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
$TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
$TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
$TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
$TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
rm large
set -e
stat lrgcomp.time
set +e
echo ""
echo "Four simultaneous large compiles"
rm -f 4lrg.time
$TIME large4.sh 2>> 4lrg.time
$TIME large4.sh 2>> 4lrg.time
$TIME large4.sh 2>> 4lrg.time
$TIME large4.sh 2>> 4lrg.time
$TIME large4.sh 2>> 4lrg.time
set -e
stat 4lrg.time
set +e
echo ""
echo "Makefile"
mkdummy
rm -f makefile.time
$TIME make -f makefile.tst > /dev/null 2>> makefile.time
$TIME make -f makefile.tst > /dev/null 2>> makefile.time
$TIME make -f makefile.tst > /dev/null 2>> makefile.time
$TIME make -f makefile.tst > /dev/null 2>> makefile.time
$TIME make -f makefile.tst > /dev/null 2>> makefile.time
rmdummy
set +e
stat makefile.time
set -e
echo ""
echo "General tests complete"