Commit 58042eaf authored by William King's avatar William King
Browse files

db regression test initial commit

parent ca71fc20
# 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}
$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
#
# test data for dns_db_class
#
# format:
# filename class
#
#
dns_db_class_1.data in
# dns_db_class_1.data any
$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
#
# 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
$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
#
# 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
$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
#
# 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
$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
#
# 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
$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
$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
#
# 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
#
# 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
$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
#
# 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
$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
#
# 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
$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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment