tu_init
int tu_init(void)
Initializes the test framework according to the contents of the tu_config
struct. This function must be called before any tests are run.
Arguments
N/A
Returned values
Returns 0 on success; nonzero on failure.
Example
Here's an example of stand-alone code which allows the user to execute regression tests for sys/config package only.
#ifdef PKG_TEST int main(int argc, char **argv) { tu_config.tc_print_results = 1; tu_init(); conf_init(); config_test_all(); return tu_any_failed; } #endif