unbound
0.1
|
Unit test main program. More...
#include "config.h"
#include <ldns/ldns.h>
#include "util/log.h"
#include "testcode/unitmain.h"
#include "util/alloc.h"
#include "util/net_help.h"
#include "util/config_file.h"
#include "util/rtt.h"
#include "services/cache/infra.h"
#include "util/random.h"
Functions | |
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 | 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, uint32_t now, struct infra_key **k) |
static void | infra_test (void) |
test host cache | |
static void | rnd_test (void) |
test randomness | |
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. |
Variables | |
int | testcount = 0 |
number of tests done |
Unit test main program.
Calls all the other unit tests. Exits with code 1 on a failure. 0 if all unit tests are successfull.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main unit test program.
Setup, teardown and report errors.
argc,: | arg count. |
argv,: | array of commandline arguments. |
References alloc_test(), anchors_test(), config_memsize_test(), dname_test(), infra_test(), log_init(), lruhash_test(), msgparse_test(), neg_test(), net_test(), regional_test(), rnd_test(), rtt_test(), slabhash_test(), testcount, and verify_test().