#include <config.h>
#include <time.h>
#include <isc/app.h>
#include <isc/buffer.h>
#include <isc/entropy.h>
#include <isc/hash.h>
#include <isc/mem.h>
#include <isc/os.h>
#include <isc/socket.h>
#include <isc/string.h>
#include <isc/task.h>
#include <isc/timer.h>
#include <isc/util.h>
#include "isctest.h"
Go to the source code of this file.
Functions | |
static void | cleanup_managers (void) |
static isc_result_t | create_managers (void) |
isc_result_t | isc_test_begin (FILE *logfile, isc_boolean_t start_managers) |
void | isc_test_end (void) |
void | isc_test_nap (isc_uint32_t usec) |
Variables | |
isc_mem_t * | mctx = NULL |
isc_entropy_t * | ectx = NULL |
isc_log_t * | lctx = NULL |
isc_taskmgr_t * | taskmgr = NULL |
isc_timermgr_t * | timermgr = NULL |
isc_socketmgr_t * | socketmgr = NULL |
isc_task_t * | maintask = NULL |
int | ncpus |
static isc_boolean_t | hash_active = ISC_FALSE |
static isc_logcategory_t | categories [] |
Definition in file isctest.c.
static void cleanup_managers | ( | void | ) | [static] |
Definition at line 66 of file isctest.c.
References isc_socketmgr_destroy(), isc_task_destroy(), isc_taskmgr_destroy(), and isc_timermgr_destroy().
Referenced by create_managers(), dns_test_end(), and isc_test_end().
static isc_result_t create_managers | ( | void | ) | [static] |
Definition at line 78 of file isctest.c.
References CHECK, cleanup(), cleanup_managers(), isc_os_ncpus(), ISC_R_SUCCESS, isc_socketmgr_create(), isc_task_create(), isc_taskmgr_create(), isc_taskmgr_setexcltask(), isc_timermgr_create(), and ncpus.
Referenced by dns_test_begin(), isc_test_begin(), and setup().
isc_result_t isc_test_begin | ( | FILE * | logfile, | |
isc_boolean_t | start_managers | |||
) |
Definition at line 100 of file isctest.c.
References CHECK, cleanup(), create_managers(), isc_logdestination::file, hash_active, isc_entropy_create(), isc_hash_create(), isc_log_create(), isc_log_createchannel(), ISC_LOG_DYNAMIC, isc_log_registercategories(), ISC_LOG_ROLLNEVER, isc_log_setcontext(), ISC_LOG_TOFILEDESC, isc_log_usechannel(), isc_mem_create(), isc_mem_debugging, ISC_MEM_DEBUGRECORD, isc_os_ncpus(), ISC_R_SUCCESS, isc_test_end(), ISC_TRUE, isc_logfile::maximum_size, isc_logfile::name, ncpus, isc_logfile::stream, and isc_logfile::versions.
Referenced by ATF_TC_BODY().
void isc_test_end | ( | void | ) |
Definition at line 146 of file isctest.c.
References cleanup_managers(), hash_active, isc_entropy_detach(), ISC_FALSE, isc_hash_destroy(), isc_log_destroy(), isc_mem_destroy(), isc_task_detach(), and isc_taskmgr_destroy().
Referenced by ATF_TC_BODY(), and isc_test_begin().
void isc_test_nap | ( | isc_uint32_t | usec | ) |
Definition at line 39 of file isctest.c.
Referenced by add_sigs(), addclosest(), addnoqname(), addrdataset(), allrdatasets(), ATF_TC_BODY(), bevent_destroy(), build_name_from_str(), cache_find(), cache_findzonecut(), cache_zonecut_callback(), clean_cache_node(), clean_zone_node(), client_create(), compare_labelsequences(), configure_staticstub(), configure_staticstub_serveraddrs(), configure_staticstub_servernames(), configure_zone_ssutable(), delete_data(), destroy(), destroy_ecdb(), destroynode(), dns_difftuple_free(), dns_dlzdestroy(), dns_dlzunregister(), dns_dnssec_signmessage(), dns_dnssec_verifymessage(), dns_fwdtable_destroy(), dns_rbtdb_create(), dns_sdb_putrdata(), dns_sdb_putrr(), dns_sdb_unregister(), dns_sdlz_putnamedrr(), dns_sdlz_putrr(), dns_sdlzunregister(), dns_tkeyctx_destroy(), dns_tsig_sign(), dns_tsig_verify(), dns_view_createresolver(), findnode(), flush_lookup_list(), free_keynode(), free_nta(), get_next_command(), getnode(), hmacmd5_parse(), hmacsha1_parse(), hmacsha224_parse(), hmacsha256_parse(), hmacsha384_parse(), hmacsha512_parse(), include_callback(), insert_nodes(), isc__timermgr_destroy(), isc_buffer_free(), ISC_LIST(), isselfsigned(), levent_destroy(), LIST(), load_raw(), load_text(), loadctx_destroy(), main(), make_dispatchset(), manager_free(), modrdataset(), ns_lwdmanager_detach(), ns_lwreslistener_detach(), ns_lwsearchlist_detach(), ns_xfr_start(), ns_zone_configure(), plus_option(), printmessage(), printrdata(), random_test(), rdatasetiter_destroy(), remove_nodes(), rollback_private(), say_message(), setup_db(), test_context_setup(), test_context_teardown(), test_master(), tostruct_afsdb(), tostruct_any_tsig(), tostruct_caa(), tostruct_cdnskey(), tostruct_cds(), tostruct_cert(), tostruct_ch_a(), tostruct_cname(), tostruct_dlv(), tostruct_dname(), tostruct_dnskey(), tostruct_ds(), tostruct_eui48(), tostruct_eui64(), tostruct_gpos(), tostruct_hinfo(), tostruct_hip(), tostruct_hs_a(), tostruct_in_a(), tostruct_in_a6(), tostruct_in_aaaa(), tostruct_in_apl(), tostruct_in_dhcid(), tostruct_in_kx(), tostruct_in_nsap(), tostruct_in_nsap_ptr(), tostruct_in_px(), tostruct_in_srv(), tostruct_in_wks(), tostruct_ipseckey(), tostruct_isdn(), tostruct_key(), tostruct_keydata(), tostruct_l32(), tostruct_l64(), tostruct_loc(), tostruct_lp(), tostruct_mb(), tostruct_md(), tostruct_mf(), tostruct_mg(), tostruct_minfo(), tostruct_mr(), tostruct_mx(), tostruct_naptr(), tostruct_nid(), tostruct_ns(), tostruct_nsec(), tostruct_nsec3(), tostruct_nsec3param(), tostruct_null(), tostruct_nxt(), tostruct_openpgpkey(), tostruct_opt(), tostruct_ptr(), tostruct_rp(), tostruct_rrsig(), tostruct_rt(), tostruct_sig(), tostruct_soa(), tostruct_spf(), tostruct_sshfp(), tostruct_tkey(), tostruct_tlsa(), tostruct_txt(), tostruct_unspec(), tostruct_uri(), tostruct_x25(), tsig_verify_tcp(), undefine(), and update_action().
isc_entropy_t* ectx = NULL |
Definition at line 41 of file isctest.c.
Referenced by dns_client_create(), dns_loadctx_detach(), dns_master_loadbuffer(), dns_master_loadbufferinc(), dns_master_loadfile5(), dns_master_loadfileinc5(), dns_master_loadlexer(), dns_master_loadlexerinc(), dns_master_loadstream(), dns_master_loadstreaminc(), ISC_LIST(), load_quantum(), loadctx_create(), and main().
isc_taskmgr_t* taskmgr = NULL |
isc_timermgr_t* timermgr = NULL |
isc_socketmgr_t* socketmgr = NULL |
Definition at line 44 of file isctest.c.
Referenced by ATF_TC_BODY(), ISC_LIST(), make_dispatchset(), and waitbody().
isc_task_t* maintask = NULL |
int ncpus |
Definition at line 46 of file isctest.c.
Referenced by create_managers(), isc_os_ncpus(), and isc_test_begin().
isc_boolean_t hash_active = ISC_FALSE [static] |
Definition at line 48 of file isctest.c.
Referenced by dns_test_begin(), dns_test_end(), isc_test_begin(), and isc_test_end().
isc_logcategory_t categories[] [static] |
Initial value:
{ { "", 0 }, { "client", 0 }, { "network", 0 }, { "update", 0 }, { "queries", 0 }, { "unmatched", 0 }, { "update-security", 0 }, { "query-errors", 0 }, { NULL, 0 } }
Definition at line 53 of file isctest.c.
Referenced by bind9_check_logging(), load_configuration(), and ns_log_configure().