ifw-odp  2.0.0-alpha
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Unit Testing Tools

Functions

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

Detailed Description

Define here the tools used by more test programs.

Function Documentation

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

Shuts down CPL and logging etc.

Returns
Error code, 0 for NONE
void clipm_testlib_init ( int  argc,
char **  argv 
)

Initializes CPL and message levels.

Parameters
argc
argv
Returns
void
int clipm_testlib_is_verbose ( void  )

Return whether verbose mode is set.

Returns
1 or 0.
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().

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().

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().

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().