#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 | |
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(), net_test(), rnd_test(), rtt_test(), slabhash_test(), testcount, and verify_test().
1.5.6