zt_test.c File Reference

#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <isc/app.h>
#include <isc/buffer.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <dns/db.h>
#include <dns/name.h>
#include <dns/view.h>
#include <dns/zone.h>
#include <dns/zt.h>
#include "dnstest.h"

Go to the source code of this file.

Data Structures

struct  args

Functions

static isc_result_t count_zone (dns_zone_t *zone, void *uap)
static isc_result_t load_done (dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task)
static isc_result_t all_done (void *arg)
static void start_zt_asyncload (isc_task_t *task, isc_event_t *event)
static void start_zone_asyncload (isc_task_t *task, isc_event_t *event)
 ATF_TC (apply)
 ATF_TC_HEAD (apply, tc)
 ATF_TC_BODY (apply, tc)
 ATF_TC (asyncload_zone)
 ATF_TC_HEAD (asyncload_zone, tc)
 ATF_TC_BODY (asyncload_zone, tc)
 ATF_TC (asyncload_zt)
 ATF_TC_HEAD (asyncload_zt, tc)
 ATF_TC_BODY (asyncload_zt, tc)
 ATF_TP_ADD_TCS (tp)


Detailed Description

Definition in file zt_test.c.


Function Documentation

static isc_result_t count_zone ( dns_zone_t zone,
void *  uap 
) [static]

Definition at line 49 of file zt_test.c.

References ISC_R_SUCCESS, and UNUSED.

Referenced by ATF_TC_BODY().

static isc_result_t load_done ( dns_zt_t zt,
dns_zone_t zone,
isc_task_t task 
) [static]

Definition at line 59 of file zt_test.c.

References isc_app_shutdown(), ISC_R_SUCCESS, ISC_TRUE, and UNUSED.

Referenced by start_zone_asyncload().

static isc_result_t all_done ( void *  arg  )  [static]

Definition at line 72 of file zt_test.c.

References isc_app_shutdown(), ISC_R_SUCCESS, and ISC_TRUE.

Referenced by adb_shutdown(), dns_view_weakdetach(), req_shutdown(), resolver_shutdown(), start_zt_asyncload(), and view_flushanddetach().

static void start_zt_asyncload ( isc_task_t task,
isc_event_t event 
) [static]

Definition at line 81 of file zt_test.c.

References all_done(), args::arg1, args::arg2, dns_zt_asyncload(), isc_event_free(), and UNUSED.

Referenced by ATF_TC_BODY().

static void start_zone_asyncload ( isc_task_t task,
isc_event_t event 
) [static]

Definition at line 92 of file zt_test.c.

References args::arg1, args::arg2, dns_zone_asyncload(), isc_event_free(), load_done(), and UNUSED.

Referenced by ATF_TC_BODY().

ATF_TC ( apply   ) 

ATF_TC_HEAD ( apply  ,
tc   
)

Definition at line 105 of file zt_test.c.

ATF_TC_BODY ( apply  ,
tc   
)

Definition at line 108 of file zt_test.c.

References count_zone(), dns_test_begin(), dns_test_closezonemgr(), dns_test_end(), dns_test_makezone(), dns_test_managezone(), dns_test_releasezone(), dns_test_setupzonemgr(), dns_view_detach(), dns_zone_detach(), dns_zone_getview(), dns_zt_apply(), ISC_FALSE, ISC_R_SUCCESS, ISC_TRUE, UNUSED, zone, and dns_view::zonetable.

ATF_TC ( asyncload_zone   ) 

ATF_TC_HEAD ( asyncload_zone  ,
tc   
)

Definition at line 146 of file zt_test.c.

ATF_TC_BODY ( asyncload_zone  ,
tc   
)

Definition at line 149 of file zt_test.c.

References args::arg1, args::arg2, dns__zone_loadpending(), dns_db_detach(), dns_test_begin(), dns_test_closezonemgr(), dns_test_end(), dns_test_makezone(), dns_test_managezone(), dns_test_nap(), dns_test_releasezone(), dns_test_setupzonemgr(), dns_view_detach(), dns_zone_detach(), dns_zone_getdb(), dns_zone_getview(), dns_zone_setfile(), isc_app_onrun(), isc_app_run(), ISC_FALSE, ISC_R_SUCCESS, ISC_TRUE, maintask, mctx, start_zone_asyncload(), UNUSED, zone, and dns_view::zonetable.

ATF_TC ( asyncload_zt   ) 

ATF_TC_HEAD ( asyncload_zt  ,
tc   
)

Definition at line 204 of file zt_test.c.

ATF_TC_BODY ( asyncload_zt  ,
tc   
)

Definition at line 207 of file zt_test.c.

References args::arg1, args::arg2, dns__zone_loadpending(), dns_db_detach(), dns_test_begin(), dns_test_closezonemgr(), dns_test_end(), dns_test_makezone(), dns_test_managezone(), dns_test_nap(), dns_test_releasezone(), dns_test_setupzonemgr(), dns_view_detach(), dns_zone_detach(), dns_zone_getdb(), dns_zone_getview(), dns_zone_setfile(), isc_app_onrun(), isc_app_run(), ISC_FALSE, ISC_R_SUCCESS, ISC_TRUE, maintask, mctx, start_zt_asyncload(), UNUSED, and dns_view::zonetable.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 290 of file zt_test.c.


Generated on Tue Apr 28 17:41:13 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha