tests.sh revision 0aadc6dd7b719539445e7a0a058b15dd9d982a9b
#
# Copyright (C) 2009, 2011-2014, 2016, 2017 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.9 2011/07/08 01:43:26 each Exp $
status=0
n=1
echo "I:setting key timers"
echo "I:signing zones"
awk '$2 ~ /RRSIG/ {
type = $3;
getline;
id = $3;
print type, id
}
awk '$2 ~ /DNSKEY/ {
flags = $3;
while ($0 !~ /key id =/)
getline;
id = $NF;
print flags, id;
echo "I:checking that KSK signed DNSKEY only ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that ZSK signed ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that standby ZSK did not sign ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that inactive key did not sign ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that pending key was not published ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that standby KSK did not sign but is delegated ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that key was revoked ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that revoked key self-signed ($n)"
ret=0
n=`expr $n + 1`
echo "I:waiting 20 seconds for key changes to occur"
sleep 20
echo "I:re-signing zone"
echo "I:checking that standby KSK is now active ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking update of an old-style key ($n)"
ret=0
# printing metadata should not work with an old-style key
# but now it should
n=`expr $n + 1`
echo "I:checking warning about permissions change on key with dnssec-settime ($n)"
echo "I: Cygwin detected, skipping"
else
ret=0
# settime should print a warning about changing the permissions
n=`expr $n + 1`
fi
echo "I:checking warning about delete date < inactive date with dnssec-settime ($n)"
ret=0
# settime should print a warning about delete < inactive
n=`expr $n + 1`
echo "I:checking no warning about delete date < inactive date with dnssec-settime when delete date is unset ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking warning about delete date < inactive date with dnssec-keygen ($n)"
ret=0
# keygen should print a warning about delete < inactive
n=`expr $n + 1`
echo "I:checking correct behavior setting activation without publication date ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking calculation of dates for a successor key ($n)"
ret=0
n=`expr $n + 1`
echo "I:exit status: $status"