-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ecaballero-nic-develop' into develop
- Loading branch information
Showing
8 changed files
with
130 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/10-ldns-compare-zones.tpkg/10-ldns-compare-zones.diffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
++_added.justazone.example. 3600 IN TXT "added" | ||
~+a1.justazone.example. 3600 IN A 192.0.2.1 | ||
~-a1.justazone.example. 3600 IN A 192.0.2.2 | ||
~-a2.justazone.example. 3600 IN A 192.0.2.1 | ||
~+a2.justazone.example. 3600 IN A 192.0.2.2 | ||
~-a3.justazone.example. 3600 IN A 192.0.2.1 | ||
~+a3.justazone.example. 3600 IN A 192.0.2.2 | ||
~-a3.justazone.example. 3600 IN A 203.0.113.1 | ||
~+a3.justazone.example. 3600 IN A 203.0.113.2 | ||
~+delegation1.justazone.example. 3600 IN NS ns2.delegation1.justazone.example. | ||
++delegation2.justazone.example. 3600 IN NS ns1.delegation2.justazone.example. | ||
--delegation4.justazone.example. 3600 IN NS ns1.delegation3.justazone.example. | ||
~+grow2to3.justazone.example. 3600 IN TXT "three" | ||
~-shrink2to1.justazone.example. 3600 IN TXT "two" | ||
~-shrink3to2.justazone.example. 3600 IN TXT "three" | ||
--zz.justazone.example. 3600 IN TXT "top" | ||
--zz.justazone.example. 3600 IN TXT "zZZZzzz" | ||
+2 -2 ~7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BaseName: 10-ldns-compare-zones | ||
Version: 1.0 | ||
Description: Check ldns-compare-zone behaviour | ||
CreationDate: Wed Oct 6 15:11:39 CEST 2021 | ||
Maintainer: Willem Toorop | ||
Category: | ||
Component: | ||
Depends: | ||
Help: 10-ldns-compare-zones.help | ||
Pre: | ||
Post: | ||
Test: 10-ldns-compare-zones.test | ||
AuxFiles: 10-ldns-compare-zones.zone1 10-ldns-compare-zones.zone2 10-ldns-compare-zones.diffs | ||
Passed: | ||
Failure: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
No arguments are used for this test. | ||
|
||
The example tool ldns-compare-zone is used to compare two zone files with numerous differences. | ||
|
19 changes: 19 additions & 0 deletions
19
test/10-ldns-compare-zones.tpkg/10-ldns-compare-zones.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# #-- 05-nm.test --# | ||
# source the master var file when it's there | ||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master | ||
# use .tpkg.var.test for in test variable passing | ||
[ -f .tpkg.var.test ] && source .tpkg.var.test | ||
# svnserve resets the path, you may need to adjust it, like this: | ||
PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:. | ||
|
||
LIB=../../lib/ | ||
export LD_LIBRARY_PATH=$LIB:$LD_LIBRARY_PATH | ||
|
||
# get the libdns symbols | ||
../../examples/ldns-compare-zones -as 10-ldns-compare-zones.zone1 10-ldns-compare-zones.zone2 > 10-ldns-compare-zones.out | ||
|
||
diff 10-ldns-compare-zones.out 10-ldns-compare-zones.diffs | ||
fail=$? | ||
rm -f 10-ldns-compare-zones.out | ||
|
||
exit $fail |
31 changes: 31 additions & 0 deletions
31
test/10-ldns-compare-zones.tpkg/10-ldns-compare-zones.zone1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
$ORIGIN justazone.example. | ||
|
||
@ SOA @ hostmaster ( | ||
1 | ||
1800 ; refresh (30 minutes) | ||
900 ; retry (15 minutes) | ||
604800 ; expire (1 week) | ||
86400 ; minimum (1 day) | ||
) | ||
; This delegation will grow to 2 records | ||
; this change was undetected in ldns < 1.7.2 | ||
delegation1 NS ns1.delegation1 | ||
|
||
delegation3 NS ns1.delegation3 | ||
|
||
delegation4 NS ns1.delegation3 | ||
delegation5 NS ns1.delegation5 | ||
a1 A 192.0.2.2 | ||
a2 A 192.0.2.1 | ||
a3 A 192.0.2.1 | ||
A 198.51.100.1 | ||
A 203.0.113.1 | ||
shrink3to2 TXT one | ||
TXT two | ||
TXT three | ||
shrink2to1 TXT one | ||
TXT two | ||
grow2to3 TXT one | ||
TXT two | ||
zz TXT top | ||
TXT zZZZzzz |
30 changes: 30 additions & 0 deletions
30
test/10-ldns-compare-zones.tpkg/10-ldns-compare-zones.zone2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
$ORIGIN justazone.example. | ||
|
||
@ SOA @ hostmaster ( | ||
1 | ||
1800 ; refresh (30 minutes) | ||
900 ; retry (15 minutes) | ||
604800 ; expire (1 week) | ||
86400 ; minimum (1 day) | ||
) | ||
; This delegation will grow to 2 records | ||
; this change was undetected in ldns < 1.7.2 | ||
delegation1 NS ns1.delegation1 | ||
NS ns2.delegation1 | ||
; delegation2 is not in zone1 | ||
delegation2 NS ns1.delegation2 | ||
delegation3 NS ns1.delegation3 | ||
|
||
delegation5 NS ns1.delegation5 | ||
a1 A 192.0.2.1 | ||
a2 A 192.0.2.2 | ||
a3 A 192.0.2.2 | ||
A 198.51.100.1 | ||
A 203.0.113.2 | ||
shrink3to2 TXT one | ||
TXT two | ||
shrink2to1 TXT one | ||
grow2to3 TXT one | ||
TXT two | ||
TXT three | ||
_added TXT added |