21 #define STA(x) [STATUS_ ## x] = #x 111 xtf_error(
"Test did not report a status\n");
113 printk(
"Test result: %s%s\n",
116 " with warnings" :
"");
128 panic(
"xtf_exit(): hypercall_shutdown(SHUTDOWN_poweroff) returned\n");
Issue with the tested matter.
void xtf_exit(void)
Exit the test early.
void panic(const char *fmt,...)
void printk(const char *fmt,...)
static const char * status_to_str[]
void xtf_warning(const char *fmt,...)
Report a test warning.
Issue with the test itself.
static long hypercall_shutdown(unsigned int reason)
static void set_status(enum test_status s)
void xtf_success(const char *fmt,...)
Report test success.
void xtf_failure(const char *fmt,...)
Report a test failure.
Test cannot be completed.
void vprintk(const char *fmt, va_list args)
void xtf_skip(const char *fmt,...)
Report a test skip.
void xtf_report_status(void)
Print a status report.
__builtin_va_list va_list
void xtf_error(const char *fmt,...)
Report a test error.
static bool warnings
Whether a warning has occurred.
#define SHUTDOWN_poweroff
bool xtf_status_reported(void)
Query whether a status has already been reported.
static enum test_status status
Current status of this test.
API for reporting test status.