]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2932. [cleanup] Corrected a numbering error in the "dnssec" test.
authorEvan Hunt <each@isc.org>
Mon, 9 Aug 2010 22:34:56 +0000 (22:34 +0000)
committerEvan Hunt <each@isc.org>
Mon, 9 Aug 2010 22:34:56 +0000 (22:34 +0000)
[RT #21597]

CHANGES
bin/tests/system/dnssec/tests.sh

diff --git a/CHANGES b/CHANGES
index 9644b5f0d164e45d300c3bfbf00107a89e7247e7..d86eb6c1f466a2dc444eaf9c3668def699e3e055 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2932.  [cleanup]       Corrected a numbering error in the "dnssec" test.
+                       [RT #21597]
+
 2931.  [bug]           Temporarily and partially disable change 2864
                        because it would cause inifinite attempts of RRSIG
                        queries.  This is an urgent care fix; we'll
index de0c8a0d68683d6854a009aa092e12304917a5a7..511e425104fa8245dcc5c3553c350919c08d5877 100644 (file)
@@ -15,7 +15,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.67 2010/07/15 01:17:45 jinmei Exp $
+# $Id: tests.sh,v 1.68 2010/08/09 22:34:56 each Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -934,11 +934,12 @@ ret=0
 cd signer
 RANDFILE=../random.data
 zone=example
-key1=`$KEYGEN -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone`
-key2=`$KEYGEN -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone`
+key1=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone`
+key2=`$KEYGEN -q -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone`
 cat example.db.in $key1.key $key2.key > example.db
 $SIGNER -o example -f example.db example.db > /dev/null 2>&1
 ) || ret=1
+n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
@@ -948,12 +949,13 @@ ret=0
 cd signer
 RANDFILE=../random.data
 zone=example
-key1=`$KEYGEN -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone`
-key2=`$KEYGEN -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone`
+key1=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone`
+key2=`$KEYGEN -q -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone`
 cat example.db.in $key1.key $key2.key > example.db
 $SIGNER -3 - -H 10 -o example -f example.db example.db > /dev/null 2>&1
 grep "IQF9LQTLKKNFK0KVIFELRAK4IC4QLTMG.example. 0 IN NSEC3 1 0 10 - IQF9LQTLKKNFK0KVIFELRAK4IC4QLTMG A NS SOA RRSIG DNSKEY NSEC3PARAM" example.db > /dev/null 
 ) || ret=1
+n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
@@ -970,17 +972,6 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
-# Run a minimal update test if possible.  This is really just
-# a regression test for RT #2399; more tests should be added.
-
-if $PERL -e 'use Net::DNS;' 2>/dev/null
-then
-    echo "I:running DNSSEC update test"
-    $PERL dnssec_update_test.pl -s 10.53.0.3 -p 5300 dynamic.example. || status=1
-else
-    echo "I:The DNSSEC update test requires the Net::DNS library." >&2
-fi
-
 # Check direct query for RRSIG.  If we first ask for normal (non RRSIG)
 # record, the corresponding RRSIG should be cached and subsequent query
 # for RRSIG will be returned with the cached record.
@@ -1004,5 +995,16 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+# Run a minimal update test if possible.  This is really just
+# a regression test for RT #2399; more tests should be added.
+
+if $PERL -e 'use Net::DNS;' 2>/dev/null
+then
+    echo "I:running DNSSEC update test"
+    $PERL dnssec_update_test.pl -s 10.53.0.3 -p 5300 dynamic.example. || status=1
+else
+    echo "I:The DNSSEC update test requires the Net::DNS library." >&2
+fi
+
 echo "I:exit status: $status"
 exit $status