MOS Source Code
Loading...
Searching...
No Matches
test_engine.c File Reference
#include "mos/platform/platform.h"
#include "test_engine_impl.h"
#include <mos/lib/structures/list.h>
#include <mos/misc/cmdline.h>
#include <mos/misc/panic.h>
#include <mos/misc/setup.h>
#include <mos/syslog/printk.h>
#include <mos_stdio.h>
#include <mos_stdlib.h>
#include <mos_string.h>
+ Include dependency graph for test_engine.c:

Go to the source code of this file.

Functions

static void test_engine_warning_handler (const char *func, u32 line, const char *fmt, va_list args)
 
static bool mos_test_engine_setup_skip_prefix_list (const char *arg)
 
 MOS_SETUP ("mos_tests_skip_prefix", mos_test_engine_setup_skip_prefix_list)
 
static bool mos_tests_setup_halt_on_success (const char *arg)
 
 MOS_SETUP ("mos_tests_halt_on_success", mos_tests_setup_halt_on_success)
 
static bool mos_test_engine_should_skip (const char *test_name)
 
static bool mos_test_engine_run_tests (const char *arg)
 
 MOS_SETUP ("mos_tests", mos_test_engine_run_tests)
 

Variables

s32 test_engine_n_warning_expected = 0
 
static const char ** test_engine_skip_prefix_list = NULL
 
static bool mos_tests_halt_on_success = false
 

Function Documentation

◆ test_engine_warning_handler()

static void test_engine_warning_handler ( const char * func,
u32 line,
const char * fmt,
va_list args )
static

Definition at line 17 of file test_engine.c.

Referenced by mos_test_engine_run_tests().

+ Here is the call graph for this function:

◆ mos_test_engine_setup_skip_prefix_list()

static bool mos_test_engine_setup_skip_prefix_list ( const char * arg)
static

Definition at line 36 of file test_engine.c.

+ Here is the call graph for this function:

◆ MOS_SETUP() [1/3]

MOS_SETUP ( "mos_tests_skip_prefix" ,
mos_test_engine_setup_skip_prefix_list  )

◆ mos_tests_setup_halt_on_success()

static bool mos_tests_setup_halt_on_success ( const char * arg)
static

Definition at line 60 of file test_engine.c.

+ Here is the call graph for this function:

◆ MOS_SETUP() [2/3]

MOS_SETUP ( "mos_tests_halt_on_success" ,
mos_tests_setup_halt_on_success  )

◆ mos_test_engine_should_skip()

static bool mos_test_engine_should_skip ( const char * test_name)
static

Definition at line 68 of file test_engine.c.

Referenced by mos_test_engine_run_tests().

+ Here is the call graph for this function:

◆ mos_test_engine_run_tests()

static bool mos_test_engine_run_tests ( const char * arg)
static

Definition at line 82 of file test_engine.c.

+ Here is the call graph for this function:

◆ MOS_SETUP() [3/3]

MOS_SETUP ( "mos_tests" ,
mos_test_engine_run_tests  )

Variable Documentation

◆ test_engine_n_warning_expected

s32 test_engine_n_warning_expected = 0

Definition at line 15 of file test_engine.c.

Referenced by test_engine_warning_handler().

◆ test_engine_skip_prefix_list

const char** test_engine_skip_prefix_list = NULL
static

◆ mos_tests_halt_on_success

bool mos_tests_halt_on_success = false
static

Definition at line 34 of file test_engine.c.

Referenced by mos_test_engine_run_tests(), and mos_tests_setup_halt_on_success().