X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftestsuite%2Fstress-server.sh;h=df0969b4d9353978feb602ad92f3a590344f8b22;hp=23e684246f5d5cdc4d93e49e2f9174f81be944db;hb=1ed708ef39f41436797754829fd574f34f8a3a71;hpb=8d1efc81f686a9c9047d22897fbcc79a1666a7a6 diff --git a/src/testsuite/stress-server.sh b/src/testsuite/stress-server.sh index 23e68424..df0969b4 100755 --- a/src/testsuite/stress-server.sh +++ b/src/testsuite/stress-server.sh @@ -1,8 +1,10 @@ #!/bin/sh # ngIRCd Test Suite -# $Id: stress-server.sh,v 1.5 2002/09/23 20:54:17 alex Exp $ +# $Id: stress-server.sh,v 1.8 2003/08/22 11:31:18 alex Exp $ -CLIENTS=5 +[ -z "$srcdir" ] && srcdir=`dirname $0` + +[ "$1" -gt 0 ] 2> /dev/null && CLIENTS="$1" || CLIENTS=5 name=`basename $0` test=`echo ${name} | cut -d '.' -f 1` @@ -10,11 +12,11 @@ mkdir -p logs tests type expect > /dev/null 2>&1 if [ $? -ne 0 ]; then - echo "SKIP: ${name} -- \"expect\" not found."; exit 77 + echo " ${name}: \"expect\" not found."; exit 77 fi type telnet > /dev/null 2>&1 if [ $? -ne 0 ]; then - echo "SKIP: ${name} -- \"telnet\" not found."; exit 77 + echo " ${name}: \"telnet\" not found."; exit 77 fi echo " stressing server with $CLIENTS clients (be patient!) ..."