Commit 42fa3932 authored by Evan Hunt's avatar Evan Hunt
Browse files

migrate t_rbt to lib/dns/tests/rbt_test

(cherry picked from commit 109546cb)
(cherry picked from commit c505afd1)
parent 38f9cddc
......@@ -8,7 +8,6 @@ t_db
gsstest
t_dst
t_names
t_rbt
conf.sh
dlopen
lwtest
......
......@@ -29,8 +29,7 @@ ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
LIBS = @LIBS@
SUBDIR = db dst names rbt system \
@PKCS11_TOOLS@ optional
SUBDIR = db dst names system @PKCS11_TOOLS@ optional
# Test programs that are built by default:
# cfg_test is needed for regenerating doc/misc/options
......
# Copyright (C) 1999-2002, 2004, 2007, 2009, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: Makefile.in,v 1.31 2009/12/05 23:31:40 each Exp $
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
@BIND9_MAKE_INCLUDES@
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES}
CDEFINES =
CWARNINGS =
# Note that we do not want to use libtool for libt_api
DNSLIBS = ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS = ../../../lib/isc/libisc.@A@
DNSDEPLIBS = ../../../lib/dns/libdns.@A@
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
TLIB = ../../../lib/tests/libt_api.@A@
TARGETS = t_rbt@EXEEXT@
SRCS = t_rbt.c
@BIND9_MAKE_RULES@
t_rbt@EXEEXT@: t_rbt.@O@ ${DEPLIBS} ${TLIB}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_rbt.@O@ ${TLIB} ${LIBS}
test: t_rbt@EXEEXT@
-@./t_rbt@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
testhelp:
@./t_rbt@EXEEXT@ -h
clean distclean::
rm -f ${TARGETS}
a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.
a.b.c.d.e.f.vix.com
a.d.e.f.vix.com
a.vix.com
b.b.c.d.e.f.vix.com
b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.
b.vix.com
c.b.c.d.e.f.vix.com
c.vix.com
d.e.f.vix.com
g.h.vix.com
q.d.e.f.vix.com
x.a.vix.com
y.x.a.vix.com
#
# test data for dns_rbt_addname assertion 1
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data add new.name ISC_R_SUCCESS
#
# test data for dns_rbt_addname assertion 2
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data add a.vix.com ISC_R_EXISTS
a.vix.com
b.vix.com
c.vix.com
a.a.vix.com
a.a.a.vix.com
a.a.a.a.vix.com
a.a.a.a.a.vix.com
a.a.a.a.a.a.vix.com
a.a.a.a.a.a.a.vix.com
a.a.a.a.a.a.a.a.vix.com
#
# test data for dns_rbt_create assertion 1
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data create not.used ISC_R_SUCCESS
dns_rbt_bitstring.data create not.used ISC_R_SUCCESS
#
# test data for dns_rbt_delete assertion 1
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data delete a.vix.com ISC_R_SUCCESS
#
# test data for dns_rbt_delete assertion 2
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data delete new.name ISC_R_NOTFOUND
#
# test data for dns_rbt_findname assertion 1
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data search a.vix.com ISC_R_SUCCESS
#
# test data for dns_rbt_findname assertion 2
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data search not.used.here ISC_R_NOTFOUND
#
# test data for dns_rbt_findname assertion 3
#
# format is: <dbfile> <command> <testname> <exp_result>
#
dns_rbt.data search a.b.vix.com DNS_R_PARTIALMATCH
b.com
a.vix.com
b.vix.com
c.vix.com
a.a.vix.com
b.a.vix.com
a.b.vix.com
b.b.vix.com
a.c.vix.com
b.c.vix.com
iengines.net
isc.org
a.a.vix.com
b.a.vix.com
a.b.vix.com
b.b.vix.com
a.c.vix.com
b.c.vix.com
iengines.net
isc.org
#
# test data for dns_rbtnodechain_first
#
# format is: <dbfile> <firstname> <firstorigin> <nextname> <nextorigin>
#
dns_rbtnodechain_first_1.data @ . com .
dns_rbtnodechain_first_2.data @ . vix.com .
vix.com
a.vix.com
b.vix.com
c.vix.com
a.a.vix.com
b.a.vix.com
a.b.vix.com
b.b.vix.com
a.c.vix.com
b.c.vix.com
iengines.net
isc.org
#
# test data for dns_rbtnodechain_init
#
# format is: <dbfile> <findnode> <next> <nextorigin> <prev> <prevorigin> <first> <firstorigin> <last> <lastorigin>
#
dns_rbtnodechain_init.data b.vix.com. a b.vix.com. b a.vix.com. @ . isc.org .
vix.com
a.vix.com
b.vix.com
c.vix.com
a.a.vix.com
b.a.vix.com
a.b.vix.com
b.b.vix.com
a.c.vix.com
b.c.vix.com
iengines.net
isc.org
a.b.vix.com
b.b.vix.com
a.c.vix.com
b.c.vix.com
vayu.com
isc.org
Supports Markdown
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