/*
* Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2011, 2013, 2016, 2017 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: t_master.c,v 1.41 2011/03/12 04:59:46 tbox Exp $ */
#include <config.h>
#include <ctype.h>
#include <stdlib.h>
#include <dns/callbacks.h>
#include <dns/rdataclass.h>
#include <dns/rdataset.h>
static isc_result_t
static isc_result_t
&target);
if (result != ISC_R_SUCCESS)
return(result);
}
static int
{
int result;
int len;
else
if (isc_result != ISC_R_SUCCESS) {
return(T_UNRESOLVED);
}
0, &target);
if (dns_result != ISC_R_SUCCESS) {
t_info("dns_name_fromtext failed %s\n",
return(T_UNRESOLVED);
}
if (dns_result != ISC_R_SUCCESS) {
t_info("dns_rdataclass_fromtext failed %s\n",
return(T_UNRESOLVED);
}
T1_mctx);
if (dns_result == exp_result)
else {
t_info("dns_master_loadfile: got %s, expected %s\n",
}
return(result);
}
static int
char *p;
int line;
int cnt;
int result;
line = 0;
++line;
/*
* Skip comment lines.
*/
(void)free(p);
continue;
}
/*
* Name of data file, origin, zclass, expected result.
*/
if (cnt == 4) {
Tokens[2],
} else {
t_info("bad format in %s at line %d\n",
}
(void)free(p);
}
} else {
}
return(result);
}
"returns ISC_R_SUCCESS";
static void
t1(void) {
int result;
}
static const char *a2 =
"dns_master_loadfile returns ISC_R_UNEXPECTEDEND when the "
"masterfile input ends unexpectedly";
static void
t2(void) {
int result;
}
"an ownername is not specified";
static void
t3() {
int result;
}
"where the first record has an undefined TTL, "
"as long as it is a SOA";
static void
t4() {
int result;
}
"the record class did not match the zone class";
static void
t5() {
int result;
}
static const char *a6 =
"dns_master_loadfile understands DNSKEY RR specifications "
"containing key material";
static void
t6() {
int result;
}
static const char *a7 =
"dns_master_loadfile understands DNSKEY RR specifications "
"containing no key material";
static void
t7() {
int result;
}
static const char *a8 =
"dns_master_loadfile understands $INCLUDE";
static void
t8() {
int result;
}
static const char *a9 =
"dns_master_loadfile understands $INCLUDE with failure";
static void
t9() {
int result;
}
static const char *a10 =
"dns_master_loadfile non-empty blank lines";
static void
t10() {
int result;
}
static const char *a11 =
"dns_master_loadfile allow leading zeros in SOA";
static void
t11() {
int result;
}
};
#ifdef WIN32
int
}
#endif