Motr  M0
m0_ut_suite Struct Reference

#include <ut.h>

Collaboration diagram for m0_ut_suite:
Collaboration graph

Data Fields

struct m0_module ts_module
 
const struct m0_ut_moddepts_deps
 
unsigned ts_deps_nr
 
struct m0_list_link ts_linkage
 
bool ts_enabled
 
bool ts_masked
 
const char * ts_name
 
const char * ts_owners
 
const char * ts_yaml_config_string
 
int(* ts_init )(void)
 
int(* ts_fini )(void)
 
struct m0_ut ts_tests [M0_UT_SUITE_TESTS_MAX]
 
int ts_order
 

Detailed Description

Definition at line 77 of file ut.h.

Field Documentation

◆ ts_deps

const struct m0_ut_moddep* ts_deps

modular dependencies of this suite

XXX FIXME: How do we know the value of m0_ut_moddep::ud_module at compile time? We don't.

Definition at line 85 of file ut.h.

◆ ts_deps_nr

unsigned ts_deps_nr

length of ->ts_deps array

Definition at line 87 of file ut.h.

◆ ts_enabled

bool ts_enabled

indicates whether this suite should be executed

Definition at line 90 of file ut.h.

◆ ts_fini

int(* ts_fini) (void)

The function to run after the tests of this suite are executed. Optional.

Definition at line 117 of file ut.h.

◆ ts_init

int(* ts_init) (void)

This function is run after ->ts_deps are satisfied, but before the tests are executed. It is optional.

Definition at line 112 of file ut.h.

◆ ts_linkage

struct m0_list_link ts_linkage

Definition at line 88 of file ut.h.

◆ ts_masked

bool ts_masked

test can be masked at compile time, this overrides ts_enabled; this field can be set directly at m0_ut_suite initialization or by m0_ut_add(), it can be used to disable broken tests, in this case a message will be printed on console

Definition at line 97 of file ut.h.

◆ ts_module

struct m0_module ts_module

Definition at line 78 of file ut.h.

◆ ts_name

const char* ts_name

name of the suite

Definition at line 99 of file ut.h.

◆ ts_order

int ts_order

Suite order for re-ordered runs.

Definition at line 121 of file ut.h.

◆ ts_owners

const char* ts_owners

suite owners names

Definition at line 101 of file ut.h.

◆ ts_tests

struct m0_ut ts_tests[M0_UT_SUITE_TESTS_MAX]

tests in the suite

Definition at line 119 of file ut.h.

◆ ts_yaml_config_string

const char* ts_yaml_config_string

optional configuration string in YAML format, it's interpreted by m0gentestds utility, check it's documentation regarding format of YAML data

Definition at line 107 of file ut.h.


The documentation for this struct was generated from the following file: