7 RESULTS=acct.`uname -m`.tar.gz
12 /usr/bin/time -l -o $1.time "$@"
15 if [ `whoami` != "root" ]; then
16 echo "You need to be root to run this test."
20 echo Redirecting accounting.
28 echo Running commands. This should not take more than 30s.
31 run awk 'BEGIN {for (i = 0; i < 1000000; i++) cos(.3)}' /dev/null
32 run egrep '(.)(.)(.)(.)(.)(.)(.)(.)(.)\9\8\7\6\5\4\3\2\1' /usr/share/dict/words
35 run find /usr/src -name xyzzy
41 run dd if=/dev/zero bs=512 count=4096 of=zero 2>/dev/null
44 run diff /usr/share/dict/words /dev/null >/dev/null
47 ln /usr/bin/true 123456789012345
51 ln /usr/bin/true 1234567890123456
52 run ./1234567890123456
55 ln /usr/bin/true 12345678901234567
56 run ./12345678901234567
58 # Flags: core, fork, signal
59 echo 'main(){volatile int s; fork(); s = *(int *)0;}' >core.c
61 echo Generating segmentation fault.
64 echo Turning off redirected accounting.
68 echo Packing the results.
71 lastcomm -cesuS -f $ACCT >lastcomm.cesuS
72 tar -cf - acct sa.u lastcomm.cesuS *.time |
74 uuencode $RESULTS >../$RESULTS.uue
80 echo "Done! Please send your reply, enclosing the file $RESULTS.uue"
81 echo If your system runs with accounting enabled you probably need to run:
82 echo accton /var/account/acct