3
# Copyright (C) 2006-2008 Internet Systems Consortium, Inc. ("ISC")
3
# Copyright (C) 2006-2008, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
5
5
# Permission to use, copy, modify, and/or distribute this software for any
6
6
# purpose with or without fee is hereby granted, provided that the above
50
echo "I: Checking order cyclic (master + additional)"
53
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
56
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
57
-p 5300 @10.53.0.1 cyclic.example > dig.out.cyclic || ret=1
59
cp dig.out.cyclic dig.out.$j
61
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
64
cmp -s dig.out.0 dig.out.1 && ret=1
65
cmp -s dig.out.0 dig.out.2 && ret=1
66
cmp -s dig.out.0 dig.out.3 && ret=1
67
cmp -s dig.out.1 dig.out.2 && ret=1
68
cmp -s dig.out.1 dig.out.3 && ret=1
69
cmp -s dig.out.2 dig.out.3 && ret=1
70
if [ $matches -ne 16 ]; then ret=1; fi
71
if [ $ret != 0 ]; then echo "I:failed"; fi
72
status=`expr $status + $ret`
50
77
echo "I: Checking order cyclic (master)"
56
83
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
57
-p 5300 @10.53.0.1 cyclic.example > dig.out.cyclic || ret=1
84
-p 5300 @10.53.0.1 cyclic2.example > dig.out.cyclic2 || ret=1
58
85
if [ $i -le 4 ]; then
59
cp dig.out.cyclic dig.out.$j
86
cp dig.out.cyclic2 dig.out.$j
61
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
88
cmp -s dig.out.cyclic2 dig.out.$j && matches=`expr $matches + 1`
64
91
cmp -s dig.out.0 dig.out.1 && ret=1
70
97
if [ $matches -ne 16 ]; then ret=1; fi
71
98
if [ $ret != 0 ]; then echo "I:failed"; fi
72
99
status=`expr $status + $ret`
74
100
echo "I: Checking order random (master)"
76
102
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
147
echo "I: Checking order cyclic (slave + additional)"
150
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
153
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
154
-p 5300 @10.53.0.2 cyclic.example > dig.out.cyclic || ret=1
155
if [ $i -le 4 ]; then
156
cp dig.out.cyclic dig.out.$j
158
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
161
cmp -s dig.out.0 dig.out.1 && ret=1
162
cmp -s dig.out.0 dig.out.2 && ret=1
163
cmp -s dig.out.0 dig.out.3 && ret=1
164
cmp -s dig.out.1 dig.out.2 && ret=1
165
cmp -s dig.out.1 dig.out.3 && ret=1
166
cmp -s dig.out.2 dig.out.3 && ret=1
167
if [ $matches -ne 16 ]; then ret=1; fi
168
if [ $ret != 0 ]; then echo "I:failed"; fi
169
status=`expr $status + $ret`
121
174
echo "I: Checking order cyclic (slave)"
127
180
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
128
-p 5300 @10.53.0.2 cyclic.example > dig.out.cyclic || ret=1
181
-p 5300 @10.53.0.2 cyclic2.example > dig.out.cyclic2 || ret=1
129
182
if [ $i -le 4 ]; then
130
cp dig.out.cyclic dig.out.$j
183
cp dig.out.cyclic2 dig.out.$j
132
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
185
cmp -s dig.out.cyclic2 dig.out.$j && matches=`expr $matches + 1`
135
188
cmp -s dig.out.0 dig.out.1 && ret=1
261
echo "I: Checking order cyclic (slave + additional, loaded from disk)"
264
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
267
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
268
-p 5300 @10.53.0.2 cyclic.example > dig.out.cyclic || ret=1
269
if [ $i -le 4 ]; then
270
cp dig.out.cyclic dig.out.$j
272
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
275
cmp -s dig.out.0 dig.out.1 && ret=1
276
cmp -s dig.out.0 dig.out.2 && ret=1
277
cmp -s dig.out.0 dig.out.3 && ret=1
278
cmp -s dig.out.1 dig.out.2 && ret=1
279
cmp -s dig.out.1 dig.out.3 && ret=1
280
cmp -s dig.out.2 dig.out.3 && ret=1
281
if [ $matches -ne 16 ]; then ret=1; fi
282
if [ $ret != 0 ]; then echo "I:failed"; fi
283
status=`expr $status + $ret`
208
288
echo "I: Checking order cyclic (slave loaded from disk)"
214
294
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
215
-p 5300 @10.53.0.2 cyclic.example > dig.out.cyclic || ret=1
295
-p 5300 @10.53.0.2 cyclic2.example > dig.out.cyclic2 || ret=1
216
296
if [ $i -le 4 ]; then
217
cp dig.out.cyclic dig.out.$j
297
cp dig.out.cyclic2 dig.out.$j
219
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
299
cmp -s dig.out.cyclic2 dig.out.$j && matches=`expr $matches + 1`
222
302
cmp -s dig.out.0 dig.out.1 && ret=1
359
echo "I: Checking order cyclic (cache + additional)"
362
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
363
-p 5300 @10.53.0.3 cyclic.example > dig.out.cyclic || ret=1
365
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
368
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
369
-p 5300 @10.53.0.3 cyclic.example > dig.out.cyclic || ret=1
370
if [ $i -le 4 ]; then
371
cp dig.out.cyclic dig.out.$j
373
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
376
cmp -s dig.out.0 dig.out.1 && ret=1
377
cmp -s dig.out.0 dig.out.2 && ret=1
378
cmp -s dig.out.0 dig.out.3 && ret=1
379
cmp -s dig.out.1 dig.out.2 && ret=1
380
cmp -s dig.out.1 dig.out.3 && ret=1
381
cmp -s dig.out.2 dig.out.3 && ret=1
382
if [ $matches -ne 16 ]; then ret=1; fi
383
if [ $ret != 0 ]; then echo "I:failed"; fi
384
status=`expr $status + $ret`
279
389
echo "I: Checking order cyclic (cache)"
392
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
393
-p 5300 @10.53.0.3 cyclic2.example > dig.out.cyclic2 || ret=1
282
395
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
285
398
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
286
-p 5300 @10.53.0.3 cyclic.example > dig.out.cyclic || ret=1
399
-p 5300 @10.53.0.3 cyclic2.example > dig.out.cyclic2 || ret=1
287
400
if [ $i -le 4 ]; then
288
cp dig.out.cyclic dig.out.$j
401
cp dig.out.cyclic2 dig.out.$j
290
cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
403
cmp -s dig.out.cyclic2 dig.out.$j && matches=`expr $matches + 1`
293
406
cmp -s dig.out.0 dig.out.1 && ret=1