|
unbound 0.1
|
Declarations useful for the unit tests. More...
#include "util/log.h"Macros | |
| #define | unit_assert(x) |
| test bool x, exits on failure, increases testcount. | |
Functions | |
| void | unit_show_func (const char *file, const char *func) |
| we are now testing this function | |
| void | unit_show_feature (const char *feature) |
| we are testing this functionality | |
| void | lruhash_test (void) |
| unit test lruhashtable implementation | |
| void | slabhash_test (void) |
| unit test slabhashtable implementation | |
| void | msgparse_test (void) |
| unit test for msgreply and msgparse | |
| void | dname_test (void) |
| unit test dname handling functions | |
| void | anchors_test (void) |
| unit test trust anchor storage functions | |
| void | verify_test (void) |
| unit test for verification functions | |
| void | neg_test (void) |
| unit test for negative cache functions | |
| void | regional_test (void) |
| unit test for regional allocator functions | |
| void | ldns_test (void) |
| unit test for ldns functions | |
| void | authzone_test (void) |
| unit test for auth zone functions | |
| void | zonemd_test (void) |
| unit test for zonemd functions | |
| void | tcpreuse_test (void) |
| unit test for tcp_reuse functions | |
| void | doq_test (void) |
| unit test for doq functions | |
| void | infra_test (void) |
| unit test for infra cache functions | |
Variables | |
| int | testcount |
| number of tests done | |
Declarations useful for the unit tests.
| #define unit_assert | ( | x | ) |
test bool x, exits on failure, increases testcount.
Referenced by add_item(), alloc_test(), anchors_test(), authzone_chunkline_count_parens_test(), authzone_compare_serial(), b64_test(), buf_to_hex(), burden_test(), canon_owner_buf_test(), cfg_insert_respip_data(), check_data(), check_lru(), check_lru_table(), check_neg_invariants(), check_read_exact(), check_reuse_write_wait_removal(), check_snip(), check_table(), check_the_rrsigs(), check_tree_and_list(), check_waiting_tcp_removal(), check_zone_invariants(), checkfile(), checkformerr(), config_memsize_test(), config_ports_list_test(), config_tag_test(), corner_cases(), dname_test(), dname_test_canoncmp(), dname_test_count_labels(), dname_test_count_size_labels(), dname_test_dname_lab_cmp(), dname_test_has_label(), dname_test_isroot(), dname_test_iswild(), dname_test_pkt_dname_len(), dname_test_pkt_dname_len_budget(), dname_test_qdl(), dname_test_qdtl(), dname_test_query_dname_compare(), dname_test_removelabel(), dname_test_removelabellimitlen(), dname_test_sigcount(), dname_test_strict_subdomain(), dname_test_subdomain(), dname_test_topdomain(), dname_test_valid(), dnskey_ds_digest_test(), dstest_entry(), dstest_file(), edns_ede_answer_encode_test(), entry_to_buf(), entry_to_repinfo(), extract_keys(), infra_test(), mesh_test(), neg_test(), net_test(), nsec3_hash_test(), nsec3_hash_test_entry(), nsectest(), packed_rrset_test(), perf_encode(), perftestpkt(), pif_list_contains(), q_ans_query(), respip_conf_actions_test(), respip_conf_data_test(), respip_delete_first_test(), respip_test_add(), respip_test_lookup(), respip_view_conf_actions_test(), respip_view_conf_data_test(), reuse_write_wait_clear(), rnd_test(), rr_checks(), rr_test_file(), rr_transform(), rtt_test(), specific_cases(), stress_test(), svcb_ech_test(), tcpid_addmore(), test_anchor_empty(), test_anchor_one(), test_anchors(), test_bin_find_entry(), test_buffers(), test_long_names(), test_long_table(), test_long_table(), test_lru(), test_short_table(), test_short_table(), test_thr_main(), test_thr_main(), testlookup(), testlookup(), testlookup_unlim(), testlookup_unlim(), testpkt(), verify_respip_set_actions(), verify_rrset(), verifytest_file(), verifytest_rrset(), waiting_tcp_list_clear(), zonemd_check_test(), zonemd_generate_test(), and zonemd_verify_test().
| void unit_show_func | ( | const char * | file, |
| const char * | func ) |
we are now testing this function
References unit_show_func().
Referenced by canon_owner_buf_test(), config_memsize_test(), config_ports_list_test(), config_tag_test(), dname_test_canoncmp(), dname_test_count_labels(), dname_test_count_size_labels(), dname_test_dname_lab_cmp(), dname_test_has_label(), dname_test_isroot(), dname_test_iswild(), dname_test_pdtl(), dname_test_pkt_dname_len(), dname_test_pkt_dname_len_budget(), dname_test_qdl(), dname_test_qdtl(), dname_test_query_dname_compare(), dname_test_removelabel(), dname_test_removelabellimitlen(), dname_test_sigcount(), dname_test_strict_subdomain(), dname_test_subdomain(), dname_test_topdomain(), dname_test_valid(), dnskey_ds_digest_test(), dstest_file(), mesh_test(), net_test(), nsec3_hash_test(), packed_rrset_test(), respip_delete_first_test(), rtt_test(), tcp_reuse_tree_list_test(), tcpid_test(), unit_show_func(), verifytest_file(), zonemd_check_test(), zonemd_generate_tests(), and zonemd_verify_tests().
| void unit_show_feature | ( | const char * | feature | ) |
we are testing this functionality
References unit_show_feature().
Referenced by alloc_test(), anchors_test(), authzone_test(), edns_cookie_test(), edns_ede_answer_encode_test(), infra_test(), ldns_test(), lruhash_test(), msgparse_test(), neg_test(), regional_test(), respip_conf_actions_test(), respip_conf_data_test(), respip_view_conf_actions_test(), respip_view_conf_data_test(), rnd_test(), slabhash_test(), tcpreuse_test(), unit_show_feature(), verify_test(), and zonemd_test().
| void lruhash_test | ( | void | ) |
unit test lruhashtable implementation
References lruhash_create(), lruhash_delete(), lruhash_test(), test_bin_find_entry(), test_long_table(), test_lru(), test_short_table(), test_slabhash_compfunc(), test_threaded_table(), and unit_show_feature().
Referenced by lruhash_test(), and main().
| void slabhash_test | ( | void | ) |
unit test slabhashtable implementation
References slabhash_create(), slabhash_delete(), slabhash_test(), test_long_table(), test_short_table(), test_slabhash_compfunc(), test_threaded_table(), and unit_show_feature().
Referenced by main(), and slabhash_test().
| void msgparse_test | ( | void | ) |
unit test for msgreply and msgparse
References alloc_clear(), alloc_init(), check_formerr_gone, check_nosameness, check_rrsigs, matches_nolocation, MAX_NEG_TTL, msgparse_test(), simpletest(), sldns_buffer_free(), sldns_buffer_new(), testfromdrillfile(), testfromfile(), and unit_show_feature().
Referenced by main(), and msgparse_test().
| void dname_test | ( | void | ) |
unit test dname handling functions
References dname_setup_bufs(), dname_test(), dname_test_canoncmp(), dname_test_count_labels(), dname_test_count_size_labels(), dname_test_dname_lab_cmp(), dname_test_has_label(), dname_test_isroot(), dname_test_iswild(), dname_test_pdtl(), dname_test_pkt_dname_len(), dname_test_pkt_dname_len_budget(), dname_test_qdl(), dname_test_qdtl(), dname_test_query_dname_compare(), dname_test_removelabel(), dname_test_removelabellimitlen(), dname_test_sigcount(), dname_test_strict_subdomain(), dname_test_subdomain(), dname_test_topdomain(), dname_test_valid(), sldns_buffer_flip(), sldns_buffer_free(), sldns_buffer_new(), and unit_assert.
Referenced by dname_test(), and main().
| void anchors_test | ( | void | ) |
unit test trust anchor storage functions
References anchors_create(), anchors_delete(), anchors_test(), sldns_buffer_flip(), sldns_buffer_free(), sldns_buffer_new(), test_anchor_empty(), test_anchor_one(), test_anchors(), unit_assert, and unit_show_feature().
Referenced by anchors_test(), and main().
| void verify_test | ( | void | ) |
unit test for verification functions
References canon_owner_buf_test(), dnskey_algo_id_is_supported(), dnskey_ds_digest_test(), dstest_file(), nsec3_hash_test(), nsectest(), unit_show_feature(), verify_test(), and verifytest_file().
Referenced by main(), and verify_test().
| void neg_test | ( | void | ) |
unit test for negative cache functions
References neg_cache_delete(), neg_test(), stress_test(), unit_assert, unit_show_feature(), and val_neg_create().
Referenced by main(), and neg_test().
| void regional_test | ( | void | ) |
unit test for regional allocator functions
References random_burden(), regional_test(), specific_cases(), and unit_show_feature().
Referenced by main(), and regional_test().
| void ldns_test | ( | void | ) |
unit test for ldns functions
References b64_test(), ldns_test(), rr_tests(), svcb_ech_test(), and unit_show_feature().
Referenced by ldns_test(), and main().
| void authzone_test | ( | void | ) |
unit test for auth zone functions
test authzone code
unit test for auth zone functions
References authzone_chunkline_count_parens_test(), authzone_compare_serial(), authzone_query_test(), authzone_read_test(), authzone_test(), tmpfilecleanup(), and unit_show_feature().
Referenced by authzone_test(), and main().
| void zonemd_test | ( | void | ) |
unit test for zonemd functions
zonemd unit tests
unit test for zonemd functions
References unit_show_feature(), zonemd_check_test(), zonemd_generate_tests(), zonemd_test(), and zonemd_verify_tests().
Referenced by main(), and zonemd_test().
| void tcpreuse_test | ( | void | ) |
unit test for tcp_reuse functions
References tcp_reuse_tree_list_test(), tcpid_test(), tcpreuse_test(), and unit_show_feature().
Referenced by main(), and tcpreuse_test().
| void doq_test | ( | void | ) |
unit test for doq functions
References doq_test(), and infra_test().
Referenced by doq_test(), and main().
| void infra_test | ( | void | ) |
unit test for infra cache functions
test host cache
unit test for infra cache functions
References config_apply_max_rtt(), config_auto_slab_values(), config_create(), config_delete(), infra_data::edns_version, infra_key::entry, config_file::host_ttl, infra_create(), infra_delete(), infra_edns_update(), infra_host(), infra_rtt_update(), infra_set_lame(), infra_test(), ipstrtoaddr(), infra_data::isdnsseclame, infra_data::lame_other, infra_data::lame_type_A, LDNS_RR_TYPE_A, LDNS_RR_TYPE_AAAA, lruhash_entry::lock, infra_data::rec_lame, infra_data::ttl, unit_assert, unit_show_feature(), UNKNOWN_SERVER_NICENESS, and USEFUL_SERVER_TOP_TIMEOUT.
Referenced by doq_test(), infra_test(), and main().
|
extern |
number of tests done
Referenced by main().