99 lines
1.9 KiB
Bash
99 lines
1.9 KiB
Bash
#!/bin/sh
|
|
#**************************************************************************
|
|
#* *
|
|
#* Copyright (C) 1986, Silicon Graphics, Inc. *
|
|
#* *
|
|
#* These coded instructions, statements, and computer programs contain *
|
|
#* unpublished proprietary information of Silicon Graphics, Inc., and *
|
|
#* are protected by Federal copyright law. They may not be disclosed *
|
|
#* to third parties or copied or duplicated in any form, in whole or *
|
|
#* in part, without the prior written consent of Silicon Graphics, Inc. *
|
|
#* *
|
|
#**************************************************************************/
|
|
# $Revision: 1.1 $
|
|
|
|
/bin/rm -f core core.* 2>/dev/null
|
|
corenum=0
|
|
|
|
# Usage: runtests cycles
|
|
|
|
if test $# -ne 1
|
|
then
|
|
echo "Usage: runtests cycles"
|
|
exit
|
|
fi
|
|
|
|
PATH=$PATH:.:
|
|
export PATH
|
|
# use cycles to mean # times entire suite is done
|
|
iter=1
|
|
|
|
while [ "$iter" -le "$1" ]
|
|
do
|
|
echo "\n\nIteration $iter\n\n"
|
|
gettime
|
|
mal 4
|
|
amal 4
|
|
libmal 4
|
|
echo "Time malspeed 100000"
|
|
time malspeed 100000
|
|
echo "Time amalspeed 100000"
|
|
time amalspeed 100000
|
|
echo "Time libmalspeed 100000"
|
|
time libmalspeed 100000
|
|
aremal 4
|
|
aremal 4 s
|
|
|
|
# a bunch of malloc tests
|
|
achk&
|
|
libchk&
|
|
wait
|
|
|
|
librecalloc
|
|
arecalloc -s 20000000
|
|
mtest -l 20 -n5 -p10000&
|
|
libmtest -l 20 -n5 -p10000&
|
|
wait
|
|
|
|
# some more malloc tests
|
|
libmemalign
|
|
amemalign
|
|
# ATT memalign fails ...
|
|
#memalign
|
|
re
|
|
libre
|
|
|
|
|
|
# something more STRESSFUL
|
|
mtest -l 20 -b 64000 -f 100&
|
|
rt -r5 -w4 -l2&
|
|
mpin -l 10 -n 20&
|
|
fchk -f 100 -n 800 &
|
|
slinkchk -c2 -l40 -s23010 &
|
|
dirchk -p /tmp -f 100 -d 100&
|
|
wait
|
|
|
|
# watch &
|
|
lockstep &
|
|
watchread &
|
|
procpoll &
|
|
flock&
|
|
fcntl -l&
|
|
flimit&
|
|
fds -n100 -p20&
|
|
fds -h&
|
|
wait
|
|
|
|
rm -f 0[0-2][0-9][0-9]
|
|
iter=`expr $iter + 1`
|
|
if [ -f core ]
|
|
then
|
|
banner "CORE FILE FOUND!"
|
|
mv core core.$corenum
|
|
corenum=`expr $corenum + 1`
|
|
fi
|
|
done
|
|
|
|
echo MISC TEST COMPLETE; echo " " ; date
|
|
exit 0
|