From 450251f082e0d9b4b1cbdf803e061ca5b5fcf9ab Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 6 Sep 2004 22:04:06 +0000 Subject: Fixed echo without newline for systems not understanding "echo -n"; added new file "functions.inc" for functions usable by all test scripts. --- src/testsuite/tests.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/testsuite/tests.sh') diff --git a/src/testsuite/tests.sh b/src/testsuite/tests.sh index bbb76add..2bd9ae40 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.6 2004/09/04 19:14:46 alex Exp $ +# $Id: tests.sh,v 1.7 2004/09/06 22:04:06 alex Exp $ # detect source directory [ -z "$srcdir" ] && srcdir=`dirname $0` @@ -14,6 +14,9 @@ if [ ! -r "$test" ]; then exit 1 fi +# read in functions +. ${srcdir}/functions.inc + type expect > /dev/null 2>&1 if [ $? -ne 0 ]; then echo " ${name}: \"expect\" not found."; exit 77 @@ -23,7 +26,7 @@ if [ $? -ne 0 ]; then echo " ${name}: \"telnet\" not found."; exit 77 fi -echo -n " running ${test} ..." +echo_n " running ${test} ..." expect ${srcdir}/${test}.e > logs/${test}.log 2>&1; r=$? [ $r -eq 0 ] && echo " ok." || echo " failure!" -- cgit 1.4.1