Annotation of 43BSDReno/contrib/isode-beta/isode-test, revision 1.1.1.1

1.1       root        1: : run this script through /bin/sh
                      2: 
                      3: # A program to test out the isode services etc.
                      4: #
                      5: # Pretty simple minded - but gives some indications.
                      6: #
                      7: # Julian Onions <[email protected]> 15/1/86
                      8: 
                      9: # usage : isode-test [ hostname ]
                     10: if [ ! -f support/xisoc ]; then
                     11:     PATH=$PATH:/usr/local/bin export PATH
                     12:     P1= P2=
                     13: else
                     14:     P1=support/x P2=imisc/x
                     15: fi
                     16: 
                     17: error=0 fast=0
                     18: if [ "x$1" = "x-lpp" ]; then
                     19:     fast=1 S=-lpp
                     20:     shift
                     21: else
                     22:     S=
                     23: fi
                     24: IMISC=${P2}imisc${S} ISOC=${P1}isoc
                     25: 
                     26: if [ $# -gt 0 ]; then
                     27:     host="$1"
                     28:     echo "Hostname set to $host"
                     29: elif host="`hostname`"; then
                     30:     echo "Hostname set to $host"
                     31: elif host="`uname`"; then
                     32:     echo "Hostname set to $host"
                     33: else
                     34:     echo -n "I give up, what is your host name? "
                     35:     read host
                     36: fi
                     37: 
                     38: for i in utctime gentime time users chargen qotd finger pwdgen
                     39: do
                     40: echo "$i:"
                     41: $IMISC "$host" $i || error=`expr $error + 1`
                     42: done
                     43: 
                     44: for i in ping sink echo
                     45: do
                     46: echo "$i:"
                     47: $IMISC -c 100 -l 1020 "$host" $i || error=`expr $error + 1`
                     48: done
                     49: 
                     50: if [ $fast = 1 ]; then
                     51:     echo "Test done, Errors: $error"
                     52:     exit $error
                     53: fi
                     54: 
                     55: for i in echo isode/echo
                     56: do
                     57: echo "rosap $i:"
                     58: $ISOC "$host" rosap $i < /etc/passwd || error=`expr $error + 1`
                     59: done
                     60: 
                     61: for i in echo ros_echo "isode/rtse echo" isode/ros_echo
                     62: do
                     63: echo "rtsap $i:"
                     64: $ISOC "$host" rtsap "$i" < /etc/passwd || error=`expr $error + 1`
                     65: done
                     66: 
                     67: for i in echo isode/echo
                     68: do
                     69: echo "psap $i:"
                     70: $ISOC "$host" psap $i < /etc/passwd || error=`expr $error + 1`
                     71: done
                     72: 
                     73: for i in ssap tsap
                     74: do
                     75: echo "$i echo:"
                     76: $ISOC "$host" $i echo < /etc/passwd || error=`expr $error + 1`
                     77: done
                     78: 
                     79: echo "Test done, Errors: $error"
                     80: exit $error

unix.superglobalmegacorp.com

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