|
static void | alloc_test (void) |
| test alloc code
|
|
static void | net_test (void) |
| test net code
|
|
static void | config_memsize_test (void) |
| test config_file: cfg_parse_memsize
|
|
static void | config_tag_test (void) |
| test config_file: test tag code
|
|
static void | rtt_test (void) |
| test RTT code
|
|
static struct infra_data * | infra_lookup_host (struct infra_cache *infra, struct sockaddr_storage *addr, socklen_t addrlen, uint8_t *zone, size_t zonelen, int wr, time_t now, struct infra_key **k) |
|
static void | infra_test (void) |
| test host cache
|
|
static void | rnd_test (void) |
| test randomness
|
|
static void | verify_respip_set_actions (struct respip_set *set, addr_action_t actions[], int actions_len) |
| Utility function that verifies that the respip set has actions as expected. More...
|
|
static void | respip_conf_actions_test (void) |
| Global respip actions test; apply raw config data and verify that all the nodes in the respip set, looked up by address, have expected actions.
|
|
static void | respip_view_conf_actions_test (void) |
| Per-view respip actions test; apply raw configuration with two views and verify that actions are as expected in respip sets of both views.
|
|
static void | verify_rrset (struct respip_set *set, const char *ipstr, const char *rdatastr, size_t rdi, uint16_t type) |
| find the respip address node in the specified tree (by address lookup) and verify type and address of the specified rdata (by index) in this node's rrset
|
|
static void | cfg_insert_respip_data (struct config_str2list **respip_actions, struct config_str2list **respip_data) |
| Populate raw respip redirect config data, used for both global and view-based respip redirect test case.
|
|
static void | respip_conf_data_test (void) |
| Test global respip redirect w/ data directives.
|
|
static void | respip_view_conf_data_test (void) |
| Test per-view respip redirect w/ data directives.
|
|
static void | respip_test (void) |
| respip unit tests
|
|
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
|
|
int | main (int argc, char *argv[]) |
| Main unit test program. More...
|
|
Unit test main program. Calls all the other unit tests. Exits with code 1 on a failure. 0 if all unit tests are successful.