Motr
M0
|
#include "motr/setup.c"
#include "net/bulk_mem.h"
#include "ut/cs_fop.h"
#include "ut/misc.h"
#include "ut/ut.h"
#include "motr/iem.h"
#include "rm/st/wlock_helper.h"
Go to the source code of this file.
Data Structures | |
struct | cl_ctx |
Macros | |
#define | SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
#define | SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR |
#define | SERVER_LOG_FILE_NAME "cs_ut.errlog" |
Enumerations | |
enum | { MAX_RPCS_IN_FLIGHT = 10 } |
Functions | |
static int | cs_ut_client_init (struct cl_ctx *cctx, const char *cl_ep_addr, const char *srv_ep_addr, const char *dbname, const struct m0_net_xprt *xprt) |
static void | cs_ut_client_fini (struct cl_ctx *cctx) |
int | m0_cs_ut_send_fops (struct m0_rpc_session *cl_rpc_session, int dstype) |
static int | cs_ut_test_helper_success (struct cl_ctx *cctx, size_t cctx_nr, char *cs_argv[], int cs_argc) |
static void | cs_ut_test_helper_failure (char *cs_argv[], int cs_argc) |
static void | test_cs_ut_cs_start_err (void) |
static void | test_cs_ut_service_one (void) |
static void | dev_conf_file_create (void) |
static void | test_cs_ut_dev_stob (void) |
static void | test_cs_ut_services_many (void) |
static void | test_cs_ut_opts_jumbled (void) |
static void | test_cs_ut_linux_stob_cleanup (void) |
static void | test_cs_ut_stype_bad (void) |
static void | test_cs_ut_xprt_bad (void) |
static void | test_cs_ut_ep_bad (void) |
static void | test_cs_ut_lnet_ep_bad (void) |
static void | test_cs_ut_lnet_ep_duplicate (void) |
static void | test_cs_ut_lnet_multiple_if (void) |
static void | test_cs_ut_lnet_ep_mixed_dup (void) |
static void | test_cs_ut_service_bad (void) |
static void | test_cs_ut_args_bad (void) |
static void | test_cs_ut_buffer_pool (void) |
static void | test_cs_ut_lnet (void) |
static void | test_cs_ut_setup_fail (void) |
static void | test_cs_ut_rconfc_fail (void) |
static void | cs_ut_term_sig_handler (int signum) |
static int | cs_ut_register_signal (void) |
static struct m0_rpc_machine * | cs_ut_reqh2rmach (struct m0_reqh *reqh) |
static void | cs_ut_write_lock_trigger (struct m0_reqh *reqh) |
static void | test_cs_ut_rconfc_fatal (void) |
static void | test_cs_ut_iem (void) |
Variables | |
const struct m0_tl_descr | ndoms_descr |
static char * | cs_ut_service_one_cmd [] |
static char * | cs_ut_services_many_cmd [] |
static char * | cs_ut_opts_jumbled_cmd [] |
static char * | cs_ut_dev_stob_cmd [] |
static char * | cs_ut_stype_bad_cmd [] |
static char * | cs_ut_xprt_bad_cmd [] |
static char * | cs_ut_ep_bad_cmd [] |
static char * | cs_ut_service_bad_cmd [] |
static char * | cs_ut_args_bad_cmd [] |
static char * | cs_ut_buffer_pool_cmd [] |
static char * | cs_ut_lnet_cmd [] |
static char * | cs_ut_lnet_mult_if_cmd [] |
static char * | cs_ut_ep_mixed_dup_cmd [] |
static char * | cs_ut_lnet_dup_tcp_if_cmd [] |
static char * | cs_ut_lnet_ep_bad_cmd [] |
static const char * | cdbnames [] = { "cdb1", "cdb2" } |
static const char * | cl_ep_addrs [] = { "0@lo:12345:34:2", "127.0.0.1:34569" } |
static const char * | srv_ep_addrs [] = { SERVER_ENDPOINT_ADDR, "127.0.0.1:35678" } |
volatile sig_atomic_t | gotsignal |
struct m0_ut_suite | m0d_ut |
#define SERVER_ENDPOINT M0_NET_XPRT_PREFIX_DEFAULT":"SERVER_ENDPOINT_ADDR |
Definition at line 35 of file cs_ut_main.c.
#define SERVER_ENDPOINT_ADDR "0@lo:12345:34:1" |
Definition at line 34 of file cs_ut_main.c.
#define SERVER_LOG_FILE_NAME "cs_ut.errlog" |
Definition at line 197 of file cs_ut_main.c.
anonymous enum |
Enumerator | |
---|---|
MAX_RPCS_IN_FLIGHT |
Definition at line 195 of file cs_ut_main.c.
|
static |
Definition at line 226 of file cs_ut_main.c.
|
static |
Definition at line 199 of file cs_ut_main.c.
|
static |
Definition at line 585 of file cs_ut_main.c.
|
static |
|
static |
|
static |
Definition at line 322 of file cs_ut_main.c.
|
static |
Definition at line 283 of file cs_ut_main.c.
|
static |
Definition at line 609 of file cs_ut_main.c.
|
static |
int m0_cs_ut_send_fops | ( | struct m0_rpc_session * | cl_rpc_session, |
int | dstype | ||
) |
Sends fops to server.
Definition at line 237 of file cs_ut_main.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 682 of file cs_ut_main.c.
|
static |
Tests m0d failure paths using fault injection.
Definition at line 409 of file cs_ut_main.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Test fatal signal delivery.
Standard m0_rpc_server_start() invokes motr instance running confd, RM and dummy HA. A standalone rconfc is launched and wired to standard cs_rconfc_fatal_cb() (borrowed from server already running). Write lock triggering makes rconfc cancel its read lock. On next read lock arrival fault injection makes rconfc fail, and therefore, rise signal via cs_rconfc_fatal_cb().
Definition at line 628 of file cs_ut_main.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 191 of file cs_ut_main.c.
|
static |
Definition at line 192 of file cs_ut_main.c.
|
static |
Definition at line 117 of file cs_ut_main.c.
|
static |
Definition at line 124 of file cs_ut_main.c.
|
static |
Definition at line 76 of file cs_ut_main.c.
|
static |
Definition at line 103 of file cs_ut_main.c.
|
static |
Definition at line 159 of file cs_ut_main.c.
|
static |
Definition at line 137 of file cs_ut_main.c.
|
static |
Definition at line 172 of file cs_ut_main.c.
|
static |
Definition at line 183 of file cs_ut_main.c.
|
static |
Definition at line 146 of file cs_ut_main.c.
|
static |
Definition at line 67 of file cs_ut_main.c.
|
static |
Definition at line 110 of file cs_ut_main.c.
|
static |
Definition at line 48 of file cs_ut_main.c.
|
static |
Definition at line 57 of file cs_ut_main.c.
|
static |
Definition at line 86 of file cs_ut_main.c.
|
static |
Definition at line 95 of file cs_ut_main.c.
struct m0_ut_suite m0d_ut |
Definition at line 713 of file cs_ut_main.c.
const struct m0_tl_descr ndoms_descr |
|
static |
Definition at line 193 of file cs_ut_main.c.