Annotation of 43BSDReno/sys/nfs/TEST/unix-tests/general/runtests.wrk, revision 1.1.1.1

1.1       root        1: :
                      2: #!/bin/sh
                      3: #
                      4: #       @(#)runtests.wrk       1.4 90/01/09 NFS Rev 2 testsuite
                      5: #      1.4 Lachman ONC Test Suite  source
                      6: #
                      7: #  This script is intended to be invoked from 'runtests'
                      8: #  Don't run it manually
                      9: 
                     10: case x$1 in
                     11:     xFROM_RUNTESTS)
                     12:        ;;
                     13:     *)
                     14:        echo "$0 must be run from 'runtests' - Don't run manually"
                     15:        exit 1
                     16:        ;;
                     17: esac
                     18: 
                     19: TIME=time
                     20: # if the default time command doesn't return the right format,
                     21: # you may have to use the following lines
                     22: #TIME=/bin/time
                     23: #if [ ! -f $TIME ]
                     24: #then
                     25: #      TIME=/usr/bin/time
                     26: #      if [ ! -f $TIME ]
                     27: #      then
                     28: #              echo "Where is the time command?"
                     29: #              exit 1
                     30: #      fi
                     31: #fi
                     32: 
                     33: chmod 777 large4.sh mkdummy rmdummy
                     34: umask 0
                     35: 
                     36: # use the appropriate CFLAGS
                     37: CFLAGS="-O $SYSTYPE $UTS"
                     38: 
                     39: echo ""
                     40: echo "Small Compile"
                     41: rm -f smcomp.time
                     42: $TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
                     43: $TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
                     44: $TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
                     45: $TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
                     46: $TIME cc $CFLAGS -o stat stat.c -lm 2>> smcomp.time
                     47: set -e
                     48: stat smcomp.time
                     49: set +e
                     50: 
                     51: echo ""
                     52: echo "Tbl"
                     53: rm -f tbl.time
                     54: $TIME tbl nroff.in > nroff.tbl 2>> tbl.time
                     55: $TIME tbl nroff.in > nroff.tbl 2>> tbl.time
                     56: $TIME tbl nroff.in > nroff.tbl 2>> tbl.time
                     57: $TIME tbl nroff.in > nroff.tbl 2>> tbl.time
                     58: $TIME tbl nroff.in > nroff.tbl 2>> tbl.time
                     59: set -e
                     60: stat tbl.time
                     61: set +e
                     62: 
                     63: echo ""
                     64: echo "Nroff"
                     65: rm -f nroff.time
                     66: $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
                     67: $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
                     68: $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
                     69: $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
                     70: $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time
                     71: rm nroff.out nroff.tbl
                     72: set -e
                     73: stat nroff.time
                     74: set +e
                     75: 
                     76: echo ""
                     77: echo "Large Compile"
                     78: rm -f lrgcomp.time
                     79: $TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
                     80: $TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
                     81: $TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
                     82: $TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
                     83: $TIME cc $CFLAGS -o large large.c 2>> lrgcomp.time
                     84: rm large
                     85: set -e
                     86: stat lrgcomp.time
                     87: set +e
                     88: 
                     89: echo ""
                     90: echo "Four simultaneous large compiles"
                     91: rm -f 4lrg.time
                     92: $TIME large4.sh 2>> 4lrg.time
                     93: $TIME large4.sh 2>> 4lrg.time
                     94: $TIME large4.sh 2>> 4lrg.time
                     95: $TIME large4.sh 2>> 4lrg.time
                     96: $TIME large4.sh 2>> 4lrg.time
                     97: set -e
                     98: stat 4lrg.time
                     99: set +e
                    100: 
                    101: echo ""
                    102: echo "Makefile"
                    103: mkdummy
                    104: rm -f makefile.time
                    105: $TIME make -f makefile.tst > /dev/null 2>> makefile.time
                    106: $TIME make -f makefile.tst > /dev/null 2>> makefile.time
                    107: $TIME make -f makefile.tst > /dev/null 2>> makefile.time
                    108: $TIME make -f makefile.tst > /dev/null 2>> makefile.time
                    109: $TIME make -f makefile.tst > /dev/null 2>> makefile.time
                    110: rmdummy
                    111: set +e
                    112: stat makefile.time
                    113: set -e
                    114: 
                    115: echo ""
                    116: echo "General tests complete"

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.