ifw-odp 5.0.0
Loading...
Searching...
No Matches
Functions
Unit Testing Tools

Functions

void clipm_testlib_init (int argc, char **argv)
 Initializes CPL and message levels.
 
int clipm_testlib_end (void)
 Shuts down CPL and logging etc.
 
int clipm_testlib_is_verbose (void)
 Return whether verbose mode is set.
 
void clipm_testlib_msg_error (const char *format,...)
 Display an error message.
 
void clipm_testlib_msg_warning (const char *format,...)
 Display a warning message.
 
void clipm_testlib_msg_info (const char *format,...)
 Display an information message.
 
void clipm_testlib_msg_debug (const char *format,...)
 Display a debug message.
 
void _clipm_testlib_call_testfunction (void(*testfunc)(void), const char *name)
 

Detailed Description

Define here the tools used by more test programs.

Function Documentation

◆ _clipm_testlib_call_testfunction()

void _clipm_testlib_call_testfunction ( void(*)(void) testfunc,
const char * name )

◆ clipm_testlib_end()

int clipm_testlib_end ( void )

Shuts down CPL and logging etc.

Returns
Error code, 0 for NONE

◆ clipm_testlib_init()

void clipm_testlib_init ( int argc,
char ** argv )

Initializes CPL and message levels.

Parameters
argc
argv
Returns
void

◆ clipm_testlib_is_verbose()

int clipm_testlib_is_verbose ( void )

Return whether verbose mode is set.

Returns
1 or 0.

◆ clipm_testlib_msg_debug()

void clipm_testlib_msg_debug ( const char * format,
... )

Display a debug message.

Returns
Nothing.
Parameters
formatFormat string.
...Variable argument list associated to the format string.

See the description of the function cpl_msg_error().

◆ clipm_testlib_msg_error()

void clipm_testlib_msg_error ( const char * format,
... )

Display an error message.

Returns
Nothing.
Parameters
formatFormat string.
...Variable argument list associated to the format string.

See the description of the function cpl_msg_error().

◆ clipm_testlib_msg_info()

void clipm_testlib_msg_info ( const char * format,
... )

Display an information message.

Returns
Nothing.
Parameters
formatFormat string.
...Variable argument list associated to the format string.

See the description of the function cpl_msg_error().

◆ clipm_testlib_msg_warning()

void clipm_testlib_msg_warning ( const char * format,
... )

Display a warning message.

Returns
Nothing.
Parameters
formatFormat string.
...Variable argument list associated to the format string.

See the description of the function cpl_msg_error().