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=f9364462df5899795762237f25d7f55413fb12a4;hp=f978f4b8c7a3c2b9cd4ddf890a93458f81853492;hb=4f6f84e7e1bc015e201e8a79e13b0906dcb23ec1;hpb=fc6f64742cf58203c5e14481498e592d21899f02 diff --git a/src/testsuite/stress-server.sh b/src/testsuite/stress-server.sh index f978f4b8..f9364462 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.1 2002/09/09 22:56:07 alex Exp $ +# $Id: stress-server.sh,v 1.6 2002/09/23 22:07:43 alex Exp $ -CLIENTS=50 +[ -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` @@ -20,9 +22,9 @@ fi echo " stressing server with $CLIENTS clients (be patient!) ..." no=0 while [ ${no} -lt $CLIENTS ]; do - cat stress-A.e > tests/${no}.e + cat ${srcdir}/stress-A.e > tests/${no}.e echo "send \"nick test${no}\\r\"" >> tests/${no}.e - cat stress-B.e >> tests/${no}.e + cat ${srcdir}/stress-B.e >> tests/${no}.e no=`expr ${no} + 1` done no=0 @@ -33,7 +35,7 @@ done touch logs/check-idle.log while true; do - expect check-idle.e >> logs/check-idle.log + expect ${srcdir}/check-idle.e >> logs/check-idle.log res=$? [ $res -eq 0 ] && exit 0 [ $res -eq 1 ] && exit 1