~kernevil/ubuntu/trusty/bind9/sdlz-hmac-keys

« back to all changes in this revision

Viewing changes to bin/tests/system/rrsetorder/tests.sh

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, Matthew Grant, LaMont Jones
  • Date: 2012-10-29 08:37:49 UTC
  • mfrom: (1.9.2)
  • Revision ID: package-import@ubuntu.com-20121029083749-r9inpzl0yuj9xdlu
Tags: 1:9.8.4.dfsg-1
[Matthew Grant]

* Turn off dlopen as it was causing test compile failures.
* Add missing library .postrm files for debhelper

[LaMont Jones]

* New upstream version
* soname fixup
* Ack NMUs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# Copyright (C) 2006-2008  Internet Systems Consortium, Inc. ("ISC")
 
3
# Copyright (C) 2006-2008, 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
4
4
#
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
14
14
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
# PERFORMANCE OF THIS SOFTWARE.
16
16
 
17
 
# $Id: tests.sh,v 1.8 2008-10-09 21:27:52 each Exp $
 
17
# $Id$
18
18
 
19
19
SYSTEMTESTTOP=..
20
20
. $SYSTEMTESTTOP/conf.sh
47
47
#
48
48
#
49
49
#
 
50
echo "I: Checking order cyclic (master + additional)"
 
51
ret=0
 
52
matches=0
 
53
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 
54
do
 
55
    j=`expr $i % 4`
 
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
 
58
    if [ $i -le 4 ]; then
 
59
        cp dig.out.cyclic dig.out.$j
 
60
    else
 
61
        cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
 
62
    fi
 
63
done
 
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`
 
73
 
 
74
#
 
75
#
 
76
#
50
77
echo "I: Checking order cyclic (master)"
51
78
ret=0
52
79
matches=0
54
81
do
55
82
    j=`expr $i % 4`
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
60
87
    else
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`
62
89
    fi
63
90
done
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`
73
 
 
74
100
echo "I: Checking order random (master)"
75
101
ret=0
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
118
144
#
119
145
#
120
146
#
 
147
echo "I: Checking order cyclic (slave + additional)"
 
148
ret=0
 
149
matches=0
 
150
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 
151
do
 
152
    j=`expr $i % 4`
 
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
 
157
    else
 
158
        cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
 
159
    fi
 
160
done
 
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`
 
170
 
 
171
#
 
172
#
 
173
#
121
174
echo "I: Checking order cyclic (slave)"
122
175
ret=0
123
176
matches=0
125
178
do
126
179
    j=`expr $i % 4`
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
131
184
    else
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`
133
186
    fi
134
187
done
135
188
cmp -s dig.out.0 dig.out.1 && ret=1
205
258
#
206
259
#
207
260
#
 
261
echo "I: Checking order cyclic (slave + additional, loaded from disk)"
 
262
ret=0
 
263
matches=0
 
264
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 
265
do
 
266
    j=`expr $i % 4`
 
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
 
271
    else
 
272
        cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
 
273
    fi
 
274
done
 
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`
 
284
 
 
285
#
 
286
#
 
287
#
208
288
echo "I: Checking order cyclic (slave loaded from disk)"
209
289
ret=0
210
290
matches=0
212
292
do
213
293
    j=`expr $i % 4`
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
218
298
    else
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`
220
300
    fi
221
301
done
222
302
cmp -s dig.out.0 dig.out.1 && ret=1
276
356
#
277
357
#
278
358
#
 
359
echo "I: Checking order cyclic (cache + additional)"
 
360
ret=0
 
361
# prime acache
 
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
 
364
matches=0
 
365
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 
366
do
 
367
    j=`expr $i % 4`
 
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
 
372
    else
 
373
        cmp -s dig.out.cyclic dig.out.$j && matches=`expr $matches + 1`
 
374
    fi
 
375
done
 
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`
 
385
 
 
386
#
 
387
#
 
388
#
279
389
echo "I: Checking order cyclic (cache)"
280
390
ret=0
 
391
# prime acache
 
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
281
394
matches=0
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
283
396
do
284
397
    j=`expr $i % 4`
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
289
402
    else
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`
291
404
    fi
292
405
done
293
406
cmp -s dig.out.0 dig.out.1 && ret=1