21 #include <rtems/test-info.h> 26 .printer = rtems_printk_printer
29 static const char*
const test_state_strings[] =
42 "\n\n*** BEGIN OF TEST %s ***\n" 43 "*** TEST VERSION: %s\n" 44 "*** TEST STATE: %s\n" 49 #
if RTEMS_MULTIPROCESSING
50 " RTEMS_MULTIPROCESSING" 68 "*** TEST TOOLS: " __VERSION__
"\n",
71 test_state_strings[state]
79 "\n*** END OF TEST %s ***\n\n", name
RTEMS_TEST_STATE
Test states.
int rtems_test_begin(const char *name, const RTEMS_TEST_STATE state)
Prints a begin of test message using printf().
int rtems_test_printf(const char *format,...) RTEMS_PRINTFLIKE(1
Prints via the RTEMS printer.
int int rtems_vprintf(const rtems_printer *printer, const char *format, va_list ap)
Print to the kernel plugin handler. This has to be a macro because there is no vprint version of the ...
int rtems_test_end(const char *name)
Prints an end of test message using printf().
void rtems_test_exit(int status)
Exit the test without calling exit() since it closes stdin, etc and pulls in stdio code...
RTEMS_NO_RETURN void rtems_shutdown_executive(uint32_t result)
Shuts down the RTEMS environment.
Interface to Kernel Print Methods.
rtems_printer rtems_test_printer
Each test must define a printer.
const char * rtems_version(void)
Returns the version string.
int rtems_printf(const rtems_printer *printer, const char *format,...) RTEMS_PRINTFLIKE(2
Print to the kernel plugin handler. This has to be a macro because there is no vprint version of the ...