mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 18:19:42 +00:00
Match output format to what scripts expect
This commit is contained in:
parent
8a99c43727
commit
e6e0dadd30
@ -18,25 +18,27 @@
|
|||||||
SYSTEMTESTTOP=../..
|
SYSTEMTESTTOP=../..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
|
|
||||||
|
RANDFILE=../random.data
|
||||||
|
|
||||||
zone=.
|
zone=.
|
||||||
infile=root.db.in
|
infile=root.db.in
|
||||||
zonefile=root.db
|
zonefile=root.db
|
||||||
|
|
||||||
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
|
keyname=`$KEYGEN -a RSA -b 768 -n zone -r $RANDFILE $zone`
|
||||||
|
|
||||||
(cd ../ns2 && sh sign.sh )
|
(cd ../ns2 && sh sign.sh )
|
||||||
|
|
||||||
cp ../ns2/example.keyset .
|
cp ../ns2/example.keyset .
|
||||||
|
|
||||||
$KEYSIGNER example.keyset $keyname
|
$KEYSIGNER -r $RANDFILE example.keyset $keyname
|
||||||
|
|
||||||
cat example.signedkey >> ../ns2/example.db.signed
|
cat example.signedkey >> ../ns2/example.db.signed
|
||||||
|
|
||||||
$KEYSETTOOL -t 3600 $keyname
|
$KEYSETTOOL -r $RANDFILE -t 3600 $keyname
|
||||||
|
|
||||||
cat $infile $keyname.key > $zonefile
|
cat $infile $keyname.key > $zonefile
|
||||||
|
|
||||||
$SIGNER -o $zone $zonefile
|
$SIGNER -r $RANDFILE -o $zone $zonefile
|
||||||
|
|
||||||
# Configure the resolving server with a trusted key.
|
# Configure the resolving server with a trusted key.
|
||||||
|
|
||||||
|
@ -18,11 +18,13 @@
|
|||||||
SYSTEMTESTTOP=../..
|
SYSTEMTESTTOP=../..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
|
|
||||||
|
RANDFILE=../random.data
|
||||||
|
|
||||||
zone=example.
|
zone=example.
|
||||||
infile=example.db.in
|
infile=example.db.in
|
||||||
zonefile=example.db
|
zonefile=example.db
|
||||||
|
|
||||||
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
|
keyname=`$KEYGEN -r $RANDFILE -a RSA -b 768 -n zone $zone`
|
||||||
|
|
||||||
# Have the child generate a zone key and pass it to us,
|
# Have the child generate a zone key and pass it to us,
|
||||||
# sign it, and pass it back
|
# sign it, and pass it back
|
||||||
@ -31,7 +33,7 @@ keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
|
|||||||
|
|
||||||
cp ../ns3/secure.example.keyset .
|
cp ../ns3/secure.example.keyset .
|
||||||
|
|
||||||
$KEYSIGNER secure.example.keyset $keyname
|
$KEYSIGNER -r $RANDFILE secure.example.keyset $keyname
|
||||||
|
|
||||||
# This will leave two copies of the child's zone key in the signed db file;
|
# This will leave two copies of the child's zone key in the signed db file;
|
||||||
# that shouldn't cause any problems.
|
# that shouldn't cause any problems.
|
||||||
@ -39,17 +41,17 @@ cat secure.example.signedkey >>../ns3/secure.example.db.signed
|
|||||||
|
|
||||||
cp ../ns3/bogus.example.keyset .
|
cp ../ns3/bogus.example.keyset .
|
||||||
|
|
||||||
$KEYSIGNER bogus.example.keyset $keyname
|
$KEYSIGNER -r $RANDFILE bogus.example.keyset $keyname
|
||||||
|
|
||||||
# This will leave two copies of the child's zone key in the signed db file;
|
# This will leave two copies of the child's zone key in the signed db file;
|
||||||
# that shouldn't cause any problems.
|
# that shouldn't cause any problems.
|
||||||
cat bogus.example.signedkey >>../ns3/bogus.example.db.signed
|
cat bogus.example.signedkey >>../ns3/bogus.example.db.signed
|
||||||
|
|
||||||
$KEYSETTOOL -t 3600 $keyname
|
$KEYSETTOOL -r $RANDFILE -t 3600 $keyname
|
||||||
|
|
||||||
cat $infile $keyname.key >$zonefile
|
cat $infile $keyname.key >$zonefile
|
||||||
|
|
||||||
$SIGNER -o $zone $zonefile
|
$SIGNER -r $RANDFILE -o $zone $zonefile
|
||||||
|
|
||||||
# Sign the privately secure file
|
# Sign the privately secure file
|
||||||
|
|
||||||
@ -57,8 +59,8 @@ privzone=private.secure.example.
|
|||||||
privinfile=private.secure.example.db.in
|
privinfile=private.secure.example.db.in
|
||||||
privzonefile=private.secure.example.db
|
privzonefile=private.secure.example.db
|
||||||
|
|
||||||
privkeyname=`$KEYGEN -a RSA -b 768 -n zone $privzone`
|
privkeyname=`$KEYGEN -r $RANDFILE -a RSA -b 768 -n zone $privzone`
|
||||||
|
|
||||||
cat $privinfile $privkeyname.key >$privzonefile
|
cat $privinfile $privkeyname.key >$privzonefile
|
||||||
|
|
||||||
$SIGNER -o $privzone $privzonefile
|
$SIGNER -r $RANDFILE -o $privzone $privzonefile
|
||||||
|
@ -15,26 +15,28 @@
|
|||||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
|
RANDFILE=../random.data
|
||||||
|
|
||||||
zone=secure.example.
|
zone=secure.example.
|
||||||
infile=secure.example.db.in
|
infile=secure.example.db.in
|
||||||
zonefile=secure.example.db
|
zonefile=secure.example.db
|
||||||
|
|
||||||
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
|
keyname=`$KEYGEN -r $RANDFILE -a RSA -b 768 -n zone $zone`
|
||||||
|
|
||||||
$KEYSETTOOL -t 3600 $keyname.key
|
$KEYSETTOOL -r $RANDFILE -t 3600 $keyname.key
|
||||||
|
|
||||||
cat $infile $keyname.key >$zonefile
|
cat $infile $keyname.key >$zonefile
|
||||||
|
|
||||||
$SIGNER -o $zone $zonefile
|
$SIGNER -r $RANDFILE -o $zone $zonefile
|
||||||
|
|
||||||
zone=bogus.example.
|
zone=bogus.example.
|
||||||
infile=bogus.example.db.in
|
infile=bogus.example.db.in
|
||||||
zonefile=bogus.example.db
|
zonefile=bogus.example.db
|
||||||
|
|
||||||
keyname=`$KEYGEN -a RSA -b 768 -n zone $zone`
|
keyname=`$KEYGEN -r $RANDFILE -a RSA -b 768 -n zone $zone`
|
||||||
|
|
||||||
$KEYSETTOOL -t 3600 $keyname.key
|
$KEYSETTOOL -r $RANDFILE -t 3600 $keyname.key
|
||||||
|
|
||||||
cat $infile $keyname.key >$zonefile
|
cat $infile $keyname.key >$zonefile
|
||||||
|
|
||||||
$SIGNER -o $zone $zonefile
|
$SIGNER -r $RANDFILE -o $zone $zonefile
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
echo "S:`date`"
|
|
||||||
echo "T:system_dnssec:1"
|
|
||||||
echo "A:A test to determine online functionality of dnssec tools"
|
echo "A:A test to determine online functionality of dnssec tools"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
echo "S:`date`"
|
|
||||||
echo "T:system_notify:1"
|
|
||||||
echo "A:A test to determine online functionality of notify"
|
echo "A:A test to determine online functionality of notify"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -35,6 +35,9 @@ shift
|
|||||||
|
|
||||||
test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
|
test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
|
||||||
|
|
||||||
|
echo "S:`date`"
|
||||||
|
echo "T:$test:1:A" >&2
|
||||||
|
|
||||||
test -f /var/run/system_test_ifsetup ||
|
test -f /var/run/system_test_ifsetup ||
|
||||||
{ echo "I:Interfaces not set up. Not trying system tests." >&2;
|
{ echo "I:Interfaces not set up. Not trying system tests." >&2;
|
||||||
exit 0;
|
exit 0;
|
||||||
@ -67,4 +70,6 @@ sh stop.sh $test
|
|||||||
# Cleanup
|
# Cleanup
|
||||||
( cd $test ; sh clean.sh )
|
( cd $test ; sh clean.sh )
|
||||||
|
|
||||||
|
echo "E:$test:`date`"
|
||||||
|
|
||||||
exit $status
|
exit $status
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
echo "S:`date`"
|
|
||||||
echo "T:system_views:1"
|
|
||||||
echo "A:A test to determine online functionality of views"
|
echo "A:A test to determine online functionality of views"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
SYSTEMTESTTOP=..
|
SYSTEMTESTTOP=..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
|
|
||||||
echo "S:`date`"
|
|
||||||
echo "T:system_xfer:1"
|
|
||||||
echo "A:A test to determine online functionality of zone transfers"
|
echo "A:A test to determine online functionality of zone transfers"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
SYSTEMTESTTOP=..
|
SYSTEMTESTTOP=..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
|
|
||||||
echo "S:`date`"
|
|
||||||
echo "T:system_xferquota:1"
|
|
||||||
echo "A:A test to determine online speed of zone transfers"
|
echo "A:A test to determine online speed of zone transfers"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user