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