7 RESULTS=acct.`uname -m`.tar.gz
12 /usr/bin/time -l -o $1.time "$@"
15 echo Redirecting accounting.
23 echo Running commands. This should not take more than 30s.
26 run awk 'BEGIN {for (i = 0; i < 1000000; i++) cos(.3)}' /dev/null
27 run egrep '(.)(.)(.)(.)(.)(.)(.)(.)(.)\9\8\7\6\5\4\3\2\1' /usr/share/dict/words
30 run find /usr/src -name xyzzy
36 run dd if=/dev/zero bs=512 count=4096 of=zero 2>/dev/null
39 run diff /usr/share/dict/words /dev/null >/dev/null
42 ln /usr/bin/true 123456789012345
46 ln /usr/bin/true 1234567890123456
47 run ./1234567890123456
50 ln /usr/bin/true 12345678901234567
51 run ./12345678901234567
53 # Flags: core, fork, signal
54 echo 'main(){volatile int s; fork(); s = *(int *)0;}' >core.c
56 echo Generating segmentation fault.
59 echo Turning off redirected accounting.
63 echo Packing the results.
66 lastcomm -cesuS -f $ACCT >lastcomm.cesuS
67 tar -cf - acct sa.u lastcomm.cesuS *.time |
69 uuencode $RESULTS >../$RESULTS.uue
75 echo "Done! Please send your reply, enclosing the file $RESULTS.uue"
76 echo If your system runs with accounting enabled you probably need to run:
77 echo accton /var/account/acct