Modify the tests so that if any server doesn't die with a TERM signal,
it's an error.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.15 2000/06/22 21:51:36 tale Exp $
|
||||
# $Id: tests.sh,v 1.16 2000/07/05 18:48:57 bwelling Exp $
|
||||
|
||||
#
|
||||
# Perform tests
|
||||
@@ -88,9 +88,5 @@ $DIG +tcp +noadd +nosea +nostat +noquest +nocmd -p 5300 \
|
||||
example. key @10.53.0.5 -p 5300 > dig.out.ns5 || status=1
|
||||
grep "SERVFAIL" dig.out.ns5 > /dev/null || status=1
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.3 2000/06/28 19:01:38 gson Exp $
|
||||
# $Id: tests.sh,v 1.4 2000/07/05 18:48:59 bwelling Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -69,8 +69,5 @@ status=`expr $status + $?`
|
||||
grep 'flags: qr aa tc ad;' dig.out.ns1
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.2 2000/06/22 21:52:07 tale Exp $
|
||||
# $Id: tests.sh,v 1.3 2000/07/05 18:49:00 bwelling Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -30,9 +30,5 @@ status=0;
|
||||
./lwtest
|
||||
status=`expr $status + $?`
|
||||
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.17 2000/07/05 18:16:39 bwelling Exp $
|
||||
# $Id: tests.sh,v 1.18 2000/07/05 18:49:01 bwelling Exp $
|
||||
|
||||
#
|
||||
# Perform tests
|
||||
@@ -112,8 +112,5 @@ grep ";" dig.out.ns3
|
||||
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: run.sh,v 1.26 2000/06/22 21:51:27 tale Exp $
|
||||
# $Id: run.sh,v 1.27 2000/07/05 18:48:55 bwelling Exp $
|
||||
|
||||
#
|
||||
# Run a system test.
|
||||
@@ -92,6 +92,14 @@ fi
|
||||
# Shutdown
|
||||
sh stop.sh $test
|
||||
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
|
||||
# Cleanup
|
||||
if test -f $test/clean.sh
|
||||
then
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: stop.sh,v 1.8 2000/06/22 21:51:30 tale Exp $
|
||||
# $Id: stop.sh,v 1.9 2000/07/05 18:48:56 bwelling Exp $
|
||||
|
||||
#
|
||||
# Stop name servers.
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
|
||||
|
||||
status=0
|
||||
|
||||
cd $1
|
||||
|
||||
for d in ns*
|
||||
@@ -47,6 +49,7 @@ for d in ns*
|
||||
do
|
||||
pidfile="$d/named.pid"
|
||||
if [ -f $pidfile ]; then
|
||||
status=`expr $status + 1`
|
||||
kill -KILL `cat $pidfile`
|
||||
fi
|
||||
done
|
||||
@@ -55,9 +58,9 @@ for d in lwresd*
|
||||
do
|
||||
pidfile="$d/lwresd.pid"
|
||||
if [ -f $pidfile ]; then
|
||||
status=`expr $status + 1`
|
||||
kill -KILL `cat $pidfile`
|
||||
fi
|
||||
done
|
||||
|
||||
sleep 10
|
||||
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.3 2000/06/22 21:52:33 tale Exp $
|
||||
# $Id: tests.sh,v 1.4 2000/07/05 18:49:02 bwelling Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -45,8 +45,5 @@ status=`expr $status + $?`
|
||||
$PERL ../digcomp.pl knowngood.dig.out.rec dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.12 2000/06/22 21:52:45 tale Exp $
|
||||
# $Id: tests.sh,v 1.13 2000/07/05 18:49:04 bwelling Exp $
|
||||
|
||||
#
|
||||
# Perform tests
|
||||
@@ -75,8 +75,5 @@ if [ $? = 0 ]; then
|
||||
status=`expr $status + 1`
|
||||
fi
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.15 2000/06/22 21:53:01 tale Exp $
|
||||
# $Id: tests.sh,v 1.16 2000/07/05 18:49:05 bwelling Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -58,8 +58,5 @@ grep ";" dig.out.ns3
|
||||
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
# $Id: tests.sh,v 1.11 2000/06/22 21:53:15 tale Exp $
|
||||
# $Id: tests.sh,v 1.12 2000/07/05 18:49:06 bwelling Exp $
|
||||
|
||||
SYSTEMTESTTOP=..
|
||||
. $SYSTEMTESTTOP/conf.sh
|
||||
@@ -73,8 +73,5 @@ grep ";" dig.out.ns2
|
||||
$PERL ../digcomp.pl dig.out.ns1 dig.out.ns2
|
||||
status=`expr $status + $?`
|
||||
|
||||
if [ $status != 0 ]; then
|
||||
echo "R:FAIL"
|
||||
else
|
||||
echo "R:PASS"
|
||||
fi
|
||||
echo "I: exit status: $status"
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user