Print unsigned values for serial, etc. in rndc zonestatus output (#39854)

This commit is contained in:
Mukund Sivaraman
2015-06-23 13:57:33 +05:30
parent 71931ab6b3
commit b4e114e3cd
6 changed files with 38 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ done
checkfor() {
grep "$1" $2 > /dev/null || {
ret=1;
echo "I: missing '$1' from '$2'"
echo "I: missing string '$1' from '$2'"
}
}
checkfor "name: master.example" rndc.out.master
@@ -246,5 +246,12 @@ checkfor "no matching zone 'nosuchzone.example' in any view" rndc.out.duplicate
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I: checking 'rdnc zonestatus' with big serial value"
ret=0
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus bigserial.example > rndc.out.bigserial 2>&1
checkfor "serial: 3003113544" rndc.out.bigserial
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status