tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2010, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: tests.sh,v 1.2 2010/06/21 02:31:45 marka Exp $
status=0
n=0
DIGOPTS="+noadd +nosea +nostat +nocmd +noauth +dnssec -p 5300"
echo "I:checking for KSK not yet published ($n)"
ret=0
# Note - this is looking for failure, hence the &&
n=`expr $n + 1`
# 5s real, 55s virtual, P +20
sleep 4
echo "I:checking for KSK published but not yet active ($n)"
ret=0
# Note - this is looking for failure, hence the &&
n=`expr $n + 1`
# 10s real, 2h15mn virtual, A +1h
sleep 5
echo "I:checking for KSK active ($n)"
ret=0
n=`expr $n + 1`
# 11s real, 6h7,m virtual, R +6h
sleep 1
echo "I:checking for KSK revoked ($n)"
ret=0
awk 'BEGIN { $noksk=1 } \
/DNSKEY/ { $5==385 && $noksk=0 } \
# Note - this is looking for failure, hence the &&
n=`expr $n + 1`
# 13s real, 45h virtual, I +1d
sleep 2
echo "I:checking for KSK retired but not yet deleted ($n)"
ret=0
n=`expr $n + 1`
# 17s real, 103d virtual, D +1mo
sleep 4
echo "I:checking for KSK deleted ($n)"
ret=0
# Note - this is looking for failure, hence the &&
# Note - this is looking for failure, hence the &&
n=`expr $n + 1`
echo "I:exit status: $status"
exit $status