2 c4d78a34 2002-09-09 alex # ngIRCd Test Suite
3 1ed708ef 2003-08-22 alex # $Id: tests.sh,v 1.4 2003/08/22 11:31:18 alex Exp $
5 c4d78a34 2002-09-09 alex name=`basename $0`
6 c4d78a34 2002-09-09 alex test=`echo ${name} | cut -d '.' -f 1`
7 fc6f6474 2002-09-09 alex mkdir -p logs
9 c4d78a34 2002-09-09 alex type expect > /dev/null 2>&1
10 c4d78a34 2002-09-09 alex if [ $? -ne 0 ]; then
11 1ed708ef 2003-08-22 alex echo " ${name}: \"expect\" not found."; exit 77
13 fc6f6474 2002-09-09 alex type telnet > /dev/null 2>&1
14 fc6f6474 2002-09-09 alex if [ $? -ne 0 ]; then
15 1ed708ef 2003-08-22 alex echo " ${name}: \"telnet\" not found."; exit 77
18 c4d78a34 2002-09-09 alex echo " doing ${test} ..."
19 a0b06ecb 2002-09-12 alex expect ${srcdir}/${test}.e > logs/${test}.log