repo: ngircd
action: commit
revision: 
path_from: 
revision_from: a0b06ecbd4fef6998a67d3ac4ebd42483c4bd8d8:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit a0b06ecbd4fef6998a67d3ac4ebd42483c4bd8d8
Author: Alexander Barton 
Date:   Thu Sep 12 02:28:44 2002 +0000

    - ${srcdir} wird nun beachtet.

diff --git a/src/testsuite/stress-server.sh b/src/testsuite/stress-server.sh
index f978f4b8c7a3c2b9cd4ddf890a93458f81853492..
index ..313e563f6b6250bab505f4b256a8f0e95b910395 100755
--- a/src/testsuite/stress-server.sh
+++ b/src/testsuite/stress-server.sh
@@ -1,6 +1,6 @@
 #!/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.2 2002/09/12 02:28:44 alex Exp $

 CLIENTS=50

@@ -20,9 +20,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 +33,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
diff --git a/src/testsuite/tests.sh b/src/testsuite/tests.sh
index e2ddd930b78a2ec5a857dd45040b87104cd782f5..
index ..597dd08ce258807beef4984cd53417b86e4004d6 100755
--- a/src/testsuite/tests.sh
+++ b/src/testsuite/tests.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 # ngIRCd Test Suite
-# $Id: tests.sh,v 1.2 2002/09/09 22:56:07 alex Exp $
+# $Id: tests.sh,v 1.3 2002/09/12 02:29:03 alex Exp $

 name=`basename $0`
 test=`echo ${name} | cut -d '.' -f 1`
@@ -16,6 +16,6 @@ if [ $? -ne 0 ]; then
 fi

 echo "      doing ${test} ..."
-expect ${test}.e > logs/${test}.log
+expect ${srcdir}/${test}.e > logs/${test}.log

 # -eof-

-----END OF PAGE-----