25 #ifndef __MOTR_UT_UT_H__ 26 #define __MOTR_UT_UT_H__ 46 # define M0_UT_ASSERT(a) m0_ut_assertimpl((a), #a, __FILE__, __LINE__, __func__) 48 #if defined M0_UT_TRACE && M0_UT_TRACE > 0 49 # define M0_UT_ENTER(FMT, ...) \ 50 m0_console_printf("> %s: " FMT "\n", __func__, ## __VA_ARGS__) 51 # define M0_UT_LOG(FMT, ...) \ 52 m0_console_printf("* %s: " FMT "\n", __func__, ## __VA_ARGS__) 53 # define M0_UT_RETURN(FMT, ...) \ 54 m0_console_printf("< %s: " FMT "\n", __func__, ## __VA_ARGS__) 56 # define M0_UT_ENTER(...) 57 # define M0_UT_LOG(...) 58 # define M0_UT_RETURN(...) 163 M0_INTERNAL
void m0_ut_list(
bool with_tests,
bool yaml_output);
182 int lno,
const char *func);
M0_INTERNAL int m0_ut_enable_fault_points_from_file(const char *file_name)
M0_INTERNAL bool m0_error_mesg_match(FILE *fp, const char *mesg)
static struct m0_addb2_mach * m
M0_INTERNAL void m0_stream_restore(const struct m0_ut_redirect *redir)
const char * ts_yaml_config_string
M0_INTERNAL void m0_ut_fini(void)
struct m0_ut ts_tests[M0_UT_SUITE_TESTS_MAX]
M0_INTERNAL int m0_ut_init(struct m0 *instance)
M0_INTERNAL void m0_ut_start_from(const char *suite)
static struct m0_addb2_callback c
const struct m0_ut_moddep * ts_deps
M0_INTERNAL int m0_ut_enable_fault_point(const char *str)
M0_INTERNAL void m0_ut_list_owners(void)
M0_INTERNAL bool m0_ut_assertimpl(bool c, const char *str_c, const char *file, int lno, const char *func)
M0_EXTERN struct m0_fid g_process_fid
M0_INTERNAL void m0_ut_add(struct m0_ut_module *m, struct m0_ut_suite *ts, bool enable)
static struct m0 instance
M0_INTERNAL bool m0_ut_small_credits(void)
M0_INTERNAL void m0_stream_redirect(FILE *stream, const char *path, struct m0_ut_redirect *redir)
struct m0_list_link ts_linkage
M0_INTERNAL int m0_ut_run(void)
M0_INTERNAL void m0_ut_list(bool with_tests, bool yaml_output)
M0_INTERNAL void m0_ut_shuffle(unsigned seed)
struct m0_module ts_module