#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "unit_test.h"
#include "testrand.h"
#include "tests_common.h"
Go to the source code of this file.
|
static int | parse_jobs_count (const char *key, const char *value, struct tf_framework *tf) |
|
static int | parse_iterations (const char *key, const char *value, struct tf_framework *tf) |
|
static int | parse_seed (const char *key, const char *value, struct tf_framework *tf) |
|
static int | parse_target (const char *key, const char *value, struct tf_framework *tf) |
|
static int | parse_logging (const char *key, const char *value, struct tf_framework *tf) |
|
static void | print_args (const struct tf_args *args) |
|
static int | read_env (struct tf_framework *tf) |
|
static int | parse_arg (const char *key, const char *value, struct tf_framework *tf) |
|
static void | help (void) |
|
static void | print_test_list (struct tf_framework *tf) |
|
static const char * | normalize_key (const char *arg, const char **err_msg) |
|
static int | read_args (int argc, char **argv, int start, struct tf_framework *tf) |
|
static void | run_test_log (const struct tf_test_entry *t) |
|
static void | run_test (const struct tf_test_entry *t) |
|
static int | run_sequential (struct tf_framework *tf) |
|
static int | tf_init (struct tf_framework *tf, int argc, char **argv) |
|
static int | tf_run (struct tf_framework *tf) |
|
◆ UNUSED
#define UNUSED |
( |
|
x | ) |
(void)(x) |
◆ ArgHandler
typedef int(* ArgHandler) (const char *key, const char *value, struct tf_framework *tf) |
◆ help()
static void help |
( |
void |
| ) |
|
|
static |
◆ normalize_key()
static const char * normalize_key |
( |
const char * |
arg, |
|
|
const char ** |
err_msg |
|
) |
| |
|
static |
◆ parse_arg()
static int parse_arg |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ parse_iterations()
static int parse_iterations |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ parse_jobs_count()
static int parse_jobs_count |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ parse_logging()
static int parse_logging |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ parse_seed()
static int parse_seed |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ parse_target()
static int parse_target |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ print_args()
static void print_args |
( |
const struct tf_args * |
args | ) |
|
|
static |
◆ print_test_list()
◆ read_args()
static int read_args |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int |
start, |
|
|
struct tf_framework * |
tf |
|
) |
| |
|
static |
◆ read_env()
◆ run_sequential()
◆ run_test()
◆ run_test_log()
◆ tf_init()
static int tf_init |
( |
struct tf_framework * |
tf, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
◆ tf_run()
◆ arg_map
Initial value:= {
{ NULL, NULL }
}
static int parse_seed(const char *key, const char *value, struct tf_framework *tf)
static int parse_iterations(const char *key, const char *value, struct tf_framework *tf)
static int parse_logging(const char *key, const char *value, struct tf_framework *tf)
static int parse_target(const char *key, const char *value, struct tf_framework *tf)
static int parse_jobs_count(const char *key, const char *value, struct tf_framework *tf)
Definition at line 45 of file unit_test.c.
◆ COUNT