mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 20:00:00 -04:00
db regression test initial commit
This commit is contained in:
parent
ca71fc20eb
commit
58042eafd0
50 changed files with 3204 additions and 0 deletions
48
bin/tests/db/Makefile.in
Normal file
48
bin/tests/db/Makefile.in
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Copyright (C) 1999 Internet Software Consortium.
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
# purpose with or without fee is hereby granted, provided that the above
|
||||
# copyright notice and this permission notice appear in all copies.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
||||
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
||||
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
CINCLUDES = -I${srcdir}/../../../lib/isc/unix/include \
|
||||
-I${srcdir}/../../../lib/isc/pthreads/include \
|
||||
-I${srcdir}/../../../lib/isc/include \
|
||||
-I${srcdir}/../../../lib/dns/include \
|
||||
-I${srcdir}/../../../lib/tests/include
|
||||
|
||||
CDEFINES =
|
||||
CWARNINGS =
|
||||
|
||||
LIBS = ../../../lib/dns/libdns.a \
|
||||
../../../lib/isc/libisc.a \
|
||||
../../../lib/tests/libt_api.a \
|
||||
@LIBS@
|
||||
|
||||
TARGETS = t_db
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
t_db: t_db.o
|
||||
${CC} -o $@ t_db.o ${LIBS}
|
||||
|
||||
test:
|
||||
-@./t_db -c @top_srcdir@/t_config -a >> ../t_journal 2>&1
|
||||
|
||||
testhelp:
|
||||
@./t_db -h
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
||||
11
bin/tests/db/dns_db_class_1.data
Normal file
11
bin/tests/db/dns_db_class_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
9
bin/tests/db/dns_db_class_data
Normal file
9
bin/tests/db/dns_db_class_data
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# test data for dns_db_class
|
||||
#
|
||||
# format:
|
||||
# filename class
|
||||
#
|
||||
#
|
||||
dns_db_class_1.data in
|
||||
# dns_db_class_1.data any
|
||||
11
bin/tests/db/dns_db_closeversion_1.data
Normal file
11
bin/tests/db/dns_db_closeversion_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_closeversion_1_data
Normal file
7
bin/tests/db/dns_db_closeversion_1_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_closeversion test 1
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache new_name new_type existing_name existing_type
|
||||
#
|
||||
dns_db_closeversion_1.data rbt vix.com. in zone a.b.c.vix.com. A a.vix.com. NS
|
||||
11
bin/tests/db/dns_db_closeversion_2.data
Normal file
11
bin/tests/db/dns_db_closeversion_2.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_closeversion_2_data
Normal file
7
bin/tests/db/dns_db_closeversion_2_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_closeversion test 2
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache new_name new_type existing_name existing_type
|
||||
#
|
||||
dns_db_closeversion_1.data rbt vix.com. in zone a.b.c.vix.com. A a.vix.com. NS
|
||||
11
bin/tests/db/dns_db_currentversion.data
Normal file
11
bin/tests/db/dns_db_currentversion.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c.vix.com. a 1.2.3.4
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_currentversion_data
Normal file
7
bin/tests/db/dns_db_currentversion_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_currentversion
|
||||
#
|
||||
# format:
|
||||
# filename findname findtype
|
||||
#
|
||||
dns_db_currentversion.data rbt vix.com. IN zone a.b.c.vix.com. A
|
||||
11
bin/tests/db/dns_db_expirenode.data
Normal file
11
bin/tests/db/dns_db_expirenode.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_expirenode_data
Normal file
7
bin/tests/db/dns_db_expirenode_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_expirenode
|
||||
#
|
||||
# format:
|
||||
# filename type origin class existing_name existing_type
|
||||
#
|
||||
dns_db_expirenode.data rbt vix.com. in a.vix.com. 10000 0 DNS_R_NOTFOUND
|
||||
12
bin/tests/db/dns_db_find_1.data
Normal file
12
bin/tests/db/dns_db_find_1.data
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
a.b.c in ns b
|
||||
10
bin/tests/db/dns_db_find_10.data
Normal file
10
bin/tests/db/dns_db_find_10.data
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c in NS ns1.vix.com.
|
||||
a.b.c in A 1.2.3.4
|
||||
8
bin/tests/db/dns_db_find_10_data
Normal file
8
bin/tests/db/dns_db_find_10_data
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# test data for dns_db_find expiration time handling
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_10.data rbt vix.com. in cache a.b.c.vix.com. NS 0 1010 DNS_R_NOTFOUND
|
||||
dns_db_find_10.data rbt vix.com. in cache a.b.c.vix.com. NS 0 0 DNS_R_SUCCESS
|
||||
7
bin/tests/db/dns_db_find_1_data
Normal file
7
bin/tests/db/dns_db_find_1_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_find best match
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_1.data rbt vix.com. in zone a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
9
bin/tests/db/dns_db_find_2.data
Normal file
9
bin/tests/db/dns_db_find_2.data
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
fx in ns a.fx.vix.com.
|
||||
a.fx in a 1.2.3.4
|
||||
8
bin/tests/db/dns_db_find_2_data
Normal file
8
bin/tests/db/dns_db_find_2_data
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_GLUE
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_2.data rbt vix.com. in zone a.fx.vix.com. A DNS_DBFIND_GLUEOK 0 DNS_R_GLUE
|
||||
dns_db_find_2.data rbt vix.com. in zone a.fx.vix.com. NS DNS_DBFIND_GLUEOK 0 DNS_R_GLUE
|
||||
10
bin/tests/db/dns_db_find_3.data
Normal file
10
bin/tests/db/dns_db_find_3.data
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c in ns b
|
||||
a.a.b.c in a 10.0.0.1
|
||||
b in a 10.0.0.2
|
||||
9
bin/tests/db/dns_db_find_3_data
Normal file
9
bin/tests/db/dns_db_find_3_data
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_DELAGATION
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_3.data rbt vix.com. in zone a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
dns_db_find_3.data rbt vix.com. in zone a.a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
dns_db_find_3.data rbt vix.com. in zone a.a.b.c.vix.com. A DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
9
bin/tests/db/dns_db_find_4.data
Normal file
9
bin/tests/db/dns_db_find_4.data
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c in ns b
|
||||
b.a.b.c in a 10.0.0.2
|
||||
7
bin/tests/db/dns_db_find_4_data
Normal file
7
bin/tests/db/dns_db_find_4_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_ZONECUT
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_4.data rbt vix.com. in zone a.b.c.vix.com. ANY 0 0 DNS_R_ZONECUT
|
||||
10
bin/tests/db/dns_db_find_5.data
Normal file
10
bin/tests/db/dns_db_find_5.data
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c. in DNAME x.y.z.
|
||||
a.x.y.z. in A 1.2.3.4
|
||||
|
||||
8
bin/tests/db/dns_db_find_5_data
Normal file
8
bin/tests/db/dns_db_find_5_data
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_DNAME
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_5.data rbt vix.com. in zone x.a.b.c. ANY 0 0 DNS_R_DNAME
|
||||
dns_db_find_5.data rbt vix.com. in zone a.a.b.c. ANY 0 0 DNS_R_DNAME
|
||||
10
bin/tests/db/dns_db_find_6.data
Normal file
10
bin/tests/db/dns_db_find_6.data
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
exploder in CNAME mx
|
||||
mx in A 1.2.3.4
|
||||
|
||||
8
bin/tests/db/dns_db_find_6_data
Normal file
8
bin/tests/db/dns_db_find_6_data
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_CNAME
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_6.data rbt vix.com. in zone exploder.vix.com. A 0 0 DNS_R_CNAME
|
||||
dns_db_find_6.data rbt vix.com. in zone exploder.vix.com. ANY 0 0 DNS_R_CNAME
|
||||
13
bin/tests/db/dns_db_find_7.data
Normal file
13
bin/tests/db/dns_db_find_7.data
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in A 1.2.3.4
|
||||
a.b.c. in A 1.2.3.4
|
||||
a.b in A 1.2.3.4
|
||||
a in NS ns1.vix.com.
|
||||
|
||||
7
bin/tests/db/dns_db_find_7_data
Normal file
7
bin/tests/db/dns_db_find_7_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_NXDOMAIN
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_7.data rbt vix.com. in zone a.b.c.vix.com. ANY 0 0 DNS_R_NXDOMAIN
|
||||
13
bin/tests/db/dns_db_find_8.data
Normal file
13
bin/tests/db/dns_db_find_8.data
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in A 1.2.3.4
|
||||
a.b.c in A 1.2.3.4
|
||||
a.b in A 1.2.3.4
|
||||
a in NS ns1.vix.com.
|
||||
|
||||
7
bin/tests/db/dns_db_find_8_data
Normal file
7
bin/tests/db/dns_db_find_8_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_NXRDATASET
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_8.data rbt vix.com. in zone a.b.c.vix.com. NS 0 0 DNS_R_NXRDATASET
|
||||
14
bin/tests/db/dns_db_find_9.data
Normal file
14
bin/tests/db/dns_db_find_9.data
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in NS ns1.vix.com.
|
||||
a.b.c in A 1.2.3.4
|
||||
a.b in NS ns1.vix.com.
|
||||
a in NS ns1.vix.com.
|
||||
a.b.c. in NS ns1.vix.com.
|
||||
|
||||
7
bin/tests/db/dns_db_find_9_data
Normal file
7
bin/tests/db/dns_db_find_9_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_find DNS_R_NOTFOUND
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_9.data rbt vix.com. in cache a.b.c.vix.com. NS 0 0 DNS_R_NOTFOUND
|
||||
11
bin/tests/db/dns_db_findnode_1.data
Normal file
11
bin/tests/db/dns_db_findnode_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
9
bin/tests/db/dns_db_findnode_1_data
Normal file
9
bin/tests/db/dns_db_findnode_1_data
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# test data for dns_db_findnode, case DNS_R_SUCCESS
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache existingname rdatatype
|
||||
#
|
||||
dns_db_findnode_1.data rbt vix.com. in zone a.vix.com. NS DNS_R_SUCCESS
|
||||
dns_db_findnode_1.data rbt vix.com. in zone b.vix.com. A DNS_R_SUCCESS
|
||||
dns_db_findnode_1.data rbt vix.com. in zone c.vix.com. A DNS_R_NOTFOUND
|
||||
11
bin/tests/db/dns_db_findnode_2.data
Normal file
11
bin/tests/db/dns_db_findnode_2.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_findnode_2_data
Normal file
7
bin/tests/db/dns_db_findnode_2_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_findnode 2
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache newname
|
||||
#
|
||||
dns_db_findnode_2.data rbt vix.com. in zone a.b.c.vix.com.
|
||||
11
bin/tests/db/dns_db_iscache_1.data
Normal file
11
bin/tests/db/dns_db_iscache_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_iscache_1_data
Normal file
7
bin/tests/db/dns_db_iscache_1_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_iscache test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iscache_1.data rbt . in
|
||||
11
bin/tests/db/dns_db_iscache_2.data
Normal file
11
bin/tests/db/dns_db_iscache_2.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_iscache_2_data
Normal file
7
bin/tests/db/dns_db_iscache_2_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_iscache test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iscache_2.data rbt . in
|
||||
11
bin/tests/db/dns_db_iszone_1.data
Normal file
11
bin/tests/db/dns_db_iszone_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_iszone_1_data
Normal file
7
bin/tests/db/dns_db_iszone_1_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_iszone test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iszone_1.data rbt . in
|
||||
11
bin/tests/db/dns_db_iszone_2.data
Normal file
11
bin/tests/db/dns_db_iszone_2.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_iszone_2_data
Normal file
7
bin/tests/db/dns_db_iszone_2_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_iszone test 2
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iszone_2.data rbt . in
|
||||
11
bin/tests/db/dns_db_load_1.data
Normal file
11
bin/tests/db/dns_db_load_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_load_data
Normal file
7
bin/tests/db/dns_db_load_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_load
|
||||
#
|
||||
# format:
|
||||
# filename type origin cache class findname expected_result
|
||||
#
|
||||
dns_db_load_1.data rbt . zone in DNS_R_SUCCESS a. A DNS_R_DELEGATION
|
||||
11
bin/tests/db/dns_db_newversion.data
Normal file
11
bin/tests/db/dns_db_newversion.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
7
bin/tests/db/dns_db_newversion_data
Normal file
7
bin/tests/db/dns_db_newversion_data
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# test data for dns_db_newversion
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache newname newtype
|
||||
#
|
||||
dns_db_newversion.data rbt vix.com. in zone a.b.c.vix.com. A
|
||||
11
bin/tests/db/dns_db_origin_1.data
Normal file
11
bin/tests/db/dns_db_origin_1.data
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
8
bin/tests/db/dns_db_origin_data
Normal file
8
bin/tests/db/dns_db_origin_data
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# test data for dns_db_origin
|
||||
#
|
||||
# format:
|
||||
# filename origin
|
||||
#
|
||||
dns_db_origin_1.data .
|
||||
dns_db_origin_1.data vix.com.
|
||||
2713
bin/tests/db/t_db.c
Normal file
2713
bin/tests/db/t_db.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue