migrate t_rbt to lib/dns/tests/rbt_test
This commit is contained in:
1
bin/tests/.gitignore
vendored
1
bin/tests/.gitignore
vendored
@@ -8,7 +8,6 @@ t_db
|
||||
gsstest
|
||||
t_dst
|
||||
t_names
|
||||
t_rbt
|
||||
conf.sh
|
||||
dlopen
|
||||
keycreate
|
||||
|
||||
@@ -32,8 +32,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
|
||||
|
||||
TESTDIRS = system
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright (C) 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/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
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@ @ISC_OPENSSL_LIBS@
|
||||
|
||||
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}
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# test data for dns_rbt_addname assertion 1
|
||||
#
|
||||
# format is: <dbfile> <command> <testname> <exp_result>
|
||||
#
|
||||
dns_rbt.data add new.name ISC_R_SUCCESS
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# test data for dns_rbt_delete assertion 2
|
||||
#
|
||||
# format is: <dbfile> <command> <testname> <exp_result>
|
||||
#
|
||||
dns_rbt.data delete new.name ISC_R_NOTFOUND
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# 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 .
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# 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 .
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
a.b.vix.com
|
||||
b.b.vix.com
|
||||
a.c.vix.com
|
||||
b.c.vix.com
|
||||
vayu.com
|
||||
isc.org
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_rbtnodechain_last
|
||||
#
|
||||
# format is: <dbfile> <last> <lastorigin> <prev> <prevorigin>
|
||||
#
|
||||
dns_rbtnodechain_last_1.data isc.org . iengines.net .
|
||||
dns_rbtnodechain_last_2.data isc.org . b c.vix.com.
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# test data for dns_rbtnodechain_next
|
||||
#
|
||||
# format is: <dbfile> <startname> <expected_name> <expected_origin>
|
||||
#
|
||||
dns_rbtnodechain_next.data c.vix.com. a c.vix.com.
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#
|
||||
# test data for dns_rbtnodechain_prev
|
||||
#
|
||||
# format is: <dbfile> <startname> <expected_name> <expected_origin>
|
||||
#
|
||||
dns_rbtnodechain_prev.data a.b.vix.com. b vix.com.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_rbt.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,110 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{39F714D4-FEFB-4E23-91DB-1F6FC80A98B5}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>t_rbt</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<StringPooling>true</StringPooling>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_rbt.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
Reference in New Issue
Block a user