#include "lib/trace.h"
#include <unistd.h>
#include "sns/cm/cm.h"
#include "cm/ut/common_service.h"
#include "rpc/rpclib.h"
#include "lib/fs.h"
#include "ut/misc.h"
#include "ut/ut.h"
Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CM |
Definition at line 23 of file cm.c.
◆ ag_id_assign()
static void ag_id_assign |
( |
struct m0_cm_ag_id * |
id, |
|
|
uint64_t |
hi_hi, |
|
|
uint64_t |
hi_lo, |
|
|
uint64_t |
lo_hi, |
|
|
uint64_t |
lo_lo |
|
) |
| |
|
static |
Definition at line 232 of file cm.c.
◆ ag_id_test_cmp()
static void ag_id_test_cmp |
( |
| ) |
|
|
static |
Definition at line 241 of file cm.c.
◆ ag_id_test_find()
static void ag_id_test_find |
( |
| ) |
|
|
static |
Definition at line 258 of file cm.c.
◆ ag_list_test_sort()
static void ag_list_test_sort |
( |
| ) |
|
|
static |
Definition at line 278 of file cm.c.
◆ cm_ag_ut()
static void cm_ag_ut |
( |
void |
| ) |
|
|
static |
Definition at line 293 of file cm.c.
◆ cm_init_failure_ut()
static void cm_init_failure_ut |
( |
void |
| ) |
|
|
static |
Definition at line 144 of file cm.c.
◆ cm_prepare_failure_ut()
static void cm_prepare_failure_ut |
( |
void |
| ) |
|
|
static |
Definition at line 169 of file cm.c.
◆ cm_ready_failure_ut()
static void cm_ready_failure_ut |
( |
void |
| ) |
|
|
static |
Definition at line 186 of file cm.c.
◆ cm_setup_failure_ut()
static void cm_setup_failure_ut |
( |
void |
| ) |
|
|
static |
Definition at line 158 of file cm.c.
◆ cm_setup_ut()
static void cm_setup_ut |
( |
void |
| ) |
|
|
static |
Definition at line 108 of file cm.c.
◆ cm_start_failure_ut()
static void cm_start_failure_ut |
( |
void |
| ) |
|
|
static |
Definition at line 208 of file cm.c.
◆ cm_ut_fini()
static int cm_ut_fini |
( |
void |
| ) |
|
|
static |
Definition at line 99 of file cm.c.
◆ cm_ut_init()
static int cm_ut_init |
( |
void |
| ) |
|
|
static |
Definition at line 81 of file cm.c.
◆ cm_ut_sctx2cm()
static struct m0_cm* cm_ut_sctx2cm |
( |
void |
| ) |
|
|
static |
Definition at line 69 of file cm.c.
◆ cm_ut_server_start()
static void cm_ut_server_start |
( |
void |
| ) |
|
|
static |
Definition at line 49 of file cm.c.
◆ cm_ut_server_stop()
static void cm_ut_server_stop |
( |
void |
| ) |
|
|
static |
Definition at line 64 of file cm.c.
◆ cm_generic_ut
Initial value:= {
.ts_name = "cm-ut",
.ts_tests = {
}
}
static int cm_ut_init(void)
static void cm_setup_failure_ut(void)
static void cm_prepare_failure_ut(void)
static void cm_ready_failure_ut(void)
static void cm_start_failure_ut(void)
static void cm_ag_ut(void)
static void cm_setup_ut(void)
static void cm_init_failure_ut(void)
static int cm_ut_fini(void)
Definition at line 336 of file cm.c.
◆ cm_ut_sctx
Definition at line 35 of file cm.c.
◆ cm_ut_server_args
char* cm_ut_server_args[] |
Initial value:= {
"m0d", "-T", "LINUX",
"-D", "sr_db", "-S", "sr_stob",
"-A", "linuxstob:sr_addb_stob",
"-w", "10",
"-F",
}
#define M0_NET_XPRT_PREFIX_DEFAULT
#define M0_UT_CONF_PROCESS
Definition at line 37 of file cm.c.
◆ SERVER_LOGFILE
const char* SERVER_LOGFILE = "cm_ut.log" |
|
static |
Definition at line 36 of file cm.c.