unitmain.c File Reference

Unit test main program. More...

#include "config.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 ()
 test alloc code
static void net_test ()
 test net code
static void config_memsize_test ()
 test config_file: cfg_parse_memsize
static void rtt_test ()
 test RTT code
static void infra_test ()
 test host cache
static void rnd_test ()
 test randomness
int main (int argc, char *argv[])
 Main unit test program.

Variables

int testcount = 0
 number of tests done


Detailed Description

Unit test main program.

Calls all the other unit tests. Exits with code 1 on a failure. 0 if all unit tests are successfull.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Main unit test program.

Setup, teardown and report errors.

Parameters:
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(), rnd_test(), rtt_test(), slabhash_test(), testcount, and verify_test().


Generated on Tue Oct 13 06:46:31 2009 for unbound by  doxygen 1.5.9