tests.sh revision f28e5058c33bfb99f8717d94c2525a976897dc91
#
# Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.22 2012/02/09 23:47:18 tbox Exp $
status=0
n=0
awk '$2 == "SIT:" {
print $3;
}' < $1
}
awk 'BEGIN { n = 0 }
// { v[n++] = length(); }
END { print (v[1] == v[2]); }'
}
}
do
ret=0
echo "I:checking that named-checkconf detects error in $bad"
done
n=`expr $n + 1`
echo "I:checking SIT token returned to empty SIT option ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking response size without SIT ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking response size without valid SIT ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking response size with SIT ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking response size with SIT recursive ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking SIT is learnt for TCP retry ($n)"
ret=0
linecount=`getsit dig.out.test$n | wc -l`
checkfull=`getsit dig.out.test$n | fullsit`
n=`expr $n + 1`
echo "I:checking for SIT value in adb ($n)"
ret=0
sleep 1
echo "I:exit status: $status"
exit $status