add $DESCRIPTION

This commit is contained in:
Mark Andrews
2015-02-28 00:09:25 +11:00
parent 326b84f20e
commit 0382684a06
2 changed files with 7 additions and 2 deletions

View File

@@ -14,6 +14,9 @@
# $Id: tests.sh,v 1.3 2011/08/09 04:12:25 tbox Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
status=0
n=0
@@ -53,7 +56,7 @@ n=`expr $n + 1`
ret=0
echo "I:Checking that custom version works for rndc ($n)"
$RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 status > rndc.status.ns3.$n 2>&1
grep "^version: BIND $VERSION <id:.......> (this is a test of version)" rndc.status.ns3.$n > /dev/null || ret=1
grep "^version: BIND $VERSION ${DESCRIPTION}${DESCRIPTION:+ }<id:.......> (this is a test of version)" rndc.status.ns3.$n > /dev/null || ret=1
if [ $ret != 0 ] ; then echo I:failed; status=`expr $status + $ret`; fi
n=`expr $n + 1`