23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT 35 #define SERVER_DB_NAME "sss_ut_server.db" 36 #define SERVER_STOB_NAME "sss_ut_server.stob" 37 #define SERVER_ADDB_STOB_NAME "linuxstob:sss_ut_server.addb_stob" 38 #define SERVER_LOG_NAME "sss_ut_server.log" 39 #define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" 40 #define SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR 42 #define CLIENT_DB_NAME "sss_ut_client.db" 43 #define CLIENT_ENDPOINT_ADDR "0@lo:12345:34:*" 95 m0_fi_enable(
"ss_svc_rsto_service_allocate",
"fail_allocation");
98 m0_fi_disable(
"ss_svc_rsto_service_allocate",
"fail_allocation");
222 process_fop_req->
ssp_cmd = cmd;
226 (
void *)process_fop_req,
376 for (
i = 0;
i < 2; ++
i) {
379 rc = asprintf(&sopath,
"%s/%s",
381 "ut/.libs/libtestlib.so.0.0.0");
491 #undef M0_TRACE_SUBSYSTEM
static void sss_process_quiesce_test(void)
static void rpc_client_and_server_stop(void)
void m0_net_domain_fini(struct m0_net_domain *dom)
static int sss_ut_fini(void)
static struct io_request req
M0_INTERNAL void m0_fop_init(struct m0_fop *fop, struct m0_fop_type *fopt, void *data, void(*fop_release)(struct m0_ref *))
#define M0_LOG(level,...)
struct m0_fop_type m0_sss_fop_device_fopt
int m0_rpc_server_start(struct m0_rpc_server_ctx *sctx)
int(* fto_create)(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
M0_INTERNAL void m0_buf_init(struct m0_buf *buf, void *data, uint32_t nob)
static void sss_process_svc_list_test(void)
void * m0_fop_data(const struct m0_fop *fop)
static const struct m0_fid ut_fid
struct m0_fop_type m0_fop_ss_fopt
static struct m0_rpc_item * item
struct m0_fom_type ft_fom_type
struct m0_fop_type m0_fop_process_fopt
static char * server_argv[]
static void sss_device_fom_create_fail(void)
struct m0_ut_suite sss_ut
static void sss_process_lib_load_noent_test(void)
struct m0_fop_type * f_type
static void ut_sss_process_param_set(struct m0_fop *fop, const char *name)
static void ut_sss_process_req(struct m0_fop *fop, int ssr_rc_exptd)
static void rpc_client_and_server_start(void)
const struct m0_build_info * m0_build_info_get(void)
#define CLIENT_ENDPOINT_ADDR
#define M0_FID_TINIT(type, container, key)
#define M0_AMB(obj, ptr, field)
static void sss_commands_test(void)
static void sss_process_lib_load_libc_test(void)
static struct m0_rpc_server_ctx sctx
M0_INTERNAL void m0_fi_disable(const char *fp_func, const char *fp_tag)
static void m0_fi_enable(const char *func, const char *tag)
static void sss_process_reconfig_test(void)
static struct m0_fop * sss_ut_fop_alloc(const char *name, uint32_t cmd)
struct m0_bufs sspr_services
static void sss_process_fom_create_fail(void)
#define SERVER_ADDB_STOB_NAME
int m0_rpc_client_stop(struct m0_rpc_client_ctx *cctx)
static int sss_ut_init(void)
static struct m0_fop * ut_sss_process_create_req(uint32_t cmd)
struct m0_net_xprt * m0_net_xprt_default_get(void)
int m0_rpc_client_start(struct m0_rpc_client_ctx *cctx)
struct m0_net_xprt ** rsx_xprts
struct m0_rpc_item * ri_reply
int m0_rpc_post_sync(struct m0_fop *fop, struct m0_rpc_session *session, const struct m0_rpc_item_ops *ri_ops, m0_time_t deadline)
static void sss_ut_req(uint32_t cmd, int32_t expected_rc, uint32_t expected_state)
static struct m0_net_domain client_net_dom
M0_INTERNAL void m0_fop_fini(struct m0_fop *fop)
struct m0_net_domain * rcx_net_dom
const struct m0_fom_type_ops * ft_ops
M0_INTERNAL void m0_ss_fop_release(struct m0_ref *ref)
static struct m0_rpc_client_ctx cctx
static void sss_process_stop_test(void)
#define SERVER_ENDPOINT_ADDR
int m0_net_domain_init(struct m0_net_domain *dom, const struct m0_net_xprt *xprt)
struct m0_rpc_session rcx_session
#define M0_FI_ENABLED(tag)
M0_INTERNAL void m0_fop_release(struct m0_ref *ref)
#define M0_ALLOC_PTR(ptr)
#define M0_UT_CONF_PROCESS
struct m0_net_xprt ** m0_net_all_xprt_get(void)
static void sss_process_commands_test(void)
static void sss_fop_ut_release(struct m0_ref *ref)
void m0_fop_put_lock(struct m0_fop *fop)
static struct m0_fop * fop
struct m0_fop * m0_rpc_item_to_fop(const struct m0_rpc_item *item)
static void m0_fi_enable_once(const char *func, const char *tag)
static void sss_process_lib_load_testlib_test(void)
void m0_rpc_server_stop(struct m0_rpc_server_ctx *sctx)
struct m0_rpc_machine rcx_rpc_machine
static enum m0_ha_obj_state expected_state
struct m0_rpc_machine * ri_rmachine
static void sss_process_health_test(void)
struct m0_rpc_item f_item
#define M0_BUF_INIT_CONST(size, data)
struct m0_fid g_process_fid
struct m0_motr rsx_motr_ctx
const struct m0_fom_type_ops ss_process_fom_type_ops