|
|
1.1 ! root 1: : ! 2: #!/bin/sh ! 3: # ! 4: # @(#)runtests 1.2 90/01/03 NFS Rev 2 testsuite ! 5: # ! 6: ! 7: # Master runtests script. Default is to run tests in each of ! 8: # basic, general, and special subdirectories. $NFSTESTDIR is ! 9: # removed before general and special tests (if previous test done) ! 10: # so that tests.init invoked from their respective runtests script ! 11: # will not ask if the test dir should be removed (since this was ! 12: # verified in the preceeding test). ! 13: # ! 14: # Special tests are not run as part of the default suite, but can ! 15: # be run manually at this level. ! 16: Program=`basename $0` ! 17: ! 18: InitFile="./tests.init" ! 19: if test $# != 4 ! 20: then ! 21: TESTS=$1 ! 22: TESTARG=$2 ! 23: TESTPATH=$3 ! 24: else ! 25: if test -f $InitFile ! 26: then ! 27: echo "$Program: using test defaults in tests.init" ! 28: . $InitFile ! 29: else ! 30: echo "usage: $Program tests testargs testpath" ! 31: exit 1 ! 32: fi ! 33: fi ! 34: if test x$NFSTESTDIR = x ! 35: then ! 36: echo "$Program: NFSTESTDIR environment variable not set" ! 37: exit 1 ! 38: fi ! 39: ! 40: export PATH ! 41: ! 42: case $TESTS in ! 43: -a) dirs="basic general" ;; ! 44: -b) dirs="basic" ;; ! 45: -g) dirs="general" ;; ! 46: -s) dirs="special" ;; ! 47: esac ! 48: for dir in $dirs ! 49: do ! 50: echo "" ! 51: if test -d $NFSTESTDIR ! 52: then ! 53: rm -rf $NFSTESTDIR ! 54: fi ! 55: (cd $dir; exec sh runtests $TESTARG) ! 56: done ! 57: ! 58: echo "" ! 59: rm -rf $NFSTESTDIR ! 60: ! 61: echo "All tests completed"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.