Motr  M0
m0ut.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <err.h>
#include <string.h>
#include "ut/ut.h"
#include "ut/module.h"
#include "module/instance.h"
#include "lib/trace.h"
#include "lib/user_space/trace.h"
#include "lib/thread.h"
#include "lib/getopts.h"
#include "lib/finject.h"
#include "lib/atomic.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/uuid.h"
#include "lib/misc.h"
Include dependency graph for m0ut.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE   /* required for basename, see man basename(3) */
 
#define UT_SANDBOX   "./ut-sandbox"
 

Functions

static void tests_add (struct m0_ut_module *m)
 
int main (int argc, char *argv[])
 

Variables

struct m0_ut_suite libm0_ut
 
struct m0_ut_suite addb2_base_ut
 
struct m0_ut_suite addb2_consumer_ut
 
struct m0_ut_suite addb2_hist_ut
 
struct m0_ut_suite addb2_net_ut
 
struct m0_ut_suite addb2_storage_ut
 
struct m0_ut_suite addb2_sys_ut
 
struct m0_ut_suite balloc_ut
 
struct m0_ut_suite be_ut
 
struct m0_ut_suite buffer_pool_ut
 
struct m0_ut_suite bulkio_client_ut
 
struct m0_ut_suite bulkio_server_ut
 
struct m0_ut_suite bytecount_ut
 
struct m0_ut_suite capa_ut
 
struct m0_ut_suite cas_client_ut
 
struct m0_ut_suite cas_service_ut
 
struct m0_ut_suite ut_suite
 
struct m0_ut_suite ut_suite_obj
 
struct m0_ut_suite ut_suite_io
 
struct m0_ut_suite ut_suite_io_nw_xfer
 
struct m0_ut_suite ut_suite_io_pargrp
 
struct m0_ut_suite ut_suite_io_req
 
struct m0_ut_suite ut_suite_io_req_fop
 
struct m0_ut_suite ut_suite_sync
 
struct m0_ut_suite ut_suite_idx
 
struct m0_ut_suite ut_suite_idx_dix
 
struct m0_ut_suite ut_suite_mt_idx_dix
 
struct m0_ut_suite ut_suite_layout
 
struct m0_ut_suite ut_suite_ufid
 
struct m0_ut_suite cm_cp_ut
 
struct m0_ut_suite cm_generic_ut
 
struct m0_ut_suite cob_ut
 
struct m0_ut_suite cobfoms_ut
 
struct m0_ut_suite conf_diter_ut
 
struct m0_ut_suite conf_glob_ut
 
struct m0_ut_suite conf_load_ut
 
struct m0_ut_suite conf_pvers_ut
 
struct m0_ut_suite conf_ut
 
struct m0_ut_suite conf_validation_ut
 
struct m0_ut_suite conf_walk_ut
 
struct m0_ut_suite confc_ut
 
struct m0_ut_suite confstr_ut
 
struct m0_ut_suite rconfc_ut
 
struct m0_ut_suite conn_ut
 
struct m0_ut_suite console_ut
 
struct m0_ut_suite di_ut
 
struct m0_ut_suite dix_client_ut
 
struct m0_ut_suite dix_cm_iter_ut
 
struct m0_ut_suite db_cursor_ut
 
struct m0_ut_suite db_ut
 
struct m0_ut_suite dtm_dtx_ut
 
struct m0_ut_suite dtm_nucleus_ut
 
struct m0_ut_suite dtm_transmit_ut
 
struct m0_ut_suite dtm0_ut
 
struct m0_ut_suite dtm0_clk_src_ut
 
struct m0_ut_suite dtm0_log_ut
 
struct m0_ut_suite emap_ut
 
struct m0_ut_suite failure_domains_tree_ut
 
struct m0_ut_suite failure_domains_ut
 
struct m0_ut_suite fis_ut
 
struct m0_ut_suite fdmi_pd_ut
 
struct m0_ut_suite fdmi_sd_ut
 
struct m0_ut_suite fdmi_fol_ut
 
struct m0_ut_suite fdmi_fol_fini_ut
 
struct m0_ut_suite fdmi_filterc_ut
 
struct m0_ut_suite fdmi_filter_eval_ut
 
struct m0_ut_suite fit_ut
 
struct m0_ut_suite fol_ut
 
struct m0_ut_suite fom_timedwait_ut
 
struct m0_ut_suite frm_ut
 
struct m0_ut_suite ha_ut
 
struct m0_ut_suite ha_state_ut
 
struct m0_ut_suite ios_bufferpool_ut
 
struct m0_ut_suite isc_api_ut
 
struct m0_ut_suite isc_service_ut
 
struct m0_ut_suite item_ut
 
struct m0_ut_suite item_source_ut
 
struct m0_ut_suite layout_ut
 
struct m0_ut_suite layout_access_plan_ut
 
struct m0_ut_suite link_lib_ut
 
struct m0_ut_suite m0_fop_lock_ut
 
struct m0_ut_suite m0_fom_stats_ut
 
struct m0_ut_suite m0_net_bulk_if_ut
 
struct m0_ut_suite m0_net_bulk_mem_ut
 
struct m0_ut_suite m0_net_lnet_ut
 
struct m0_ut_suite m0_net_misc_ut
 
struct m0_ut_suite m0_net_module_ut
 
struct m0_ut_suite m0_net_test_ut
 
struct m0_ut_suite m0_net_tm_prov_ut
 
struct m0_ut_suite m0d_ut
 
struct m0_ut_suite mdservice_ut
 
struct m0_ut_suite module_ut
 
struct m0_ut_suite ms_fom_ut
 
struct m0_ut_suite packet_encdec_ut
 
struct m0_ut_suite parity_math_ut
 
struct m0_ut_suite parity_math_ssse3_ut
 
struct m0_ut_suite poolmach_ut
 
struct m0_ut_suite reqh_ut
 
struct m0_ut_suite reqh_fop_allow_ut
 
struct m0_ut_suite reqh_service_ut
 
struct m0_ut_suite reqh_service_ctx_ut
 
struct m0_ut_suite rm_ut
 
struct m0_ut_suite rm_rcredits_ut
 
struct m0_ut_suite rm_rwlock_ut
 
struct m0_ut_suite rpc_at_ut
 
struct m0_ut_suite rpc_mc_ut
 
struct m0_ut_suite rpc_rcv_session_ut
 
struct m0_ut_suite rpclib_ut
 
struct m0_ut_suite rpc_conn_pool_ut
 
struct m0_ut_suite session_ut
 
struct m0_ut_suite sm_ut
 
struct m0_ut_suite sns_cm_repair_ut
 
struct m0_ut_suite snscm_net_ut
 
struct m0_ut_suite snscm_storage_ut
 
struct m0_ut_suite snscm_xform_ut
 
struct m0_ut_suite spiel_ut
 
struct m0_ut_suite spiel_ci_ut
 
struct m0_ut_suite sss_ut
 
struct m0_ut_suite spiel_conf_ut
 
struct m0_ut_suite stats_ut
 
struct m0_ut_suite stob_ut
 
struct m0_ut_suite storage_dev_ut
 
struct m0_ut_suite udb_ut
 
struct m0_ut_suite xcode_bufvec_fop_ut
 
struct m0_ut_suite xcode_ff2c_ut
 
struct m0_ut_suite xcode_ut
 
struct m0_ut_suite sns_flock_ut
 
struct m0_ut_suite ut_suite_pi
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE   /* required for basename, see man basename(3) */

Definition at line 29 of file m0ut.c.

◆ UT_SANDBOX

#define UT_SANDBOX   "./ut-sandbox"

Definition at line 47 of file m0ut.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 326 of file m0ut.c.

Here is the call graph for this function:

◆ tests_add()

static void tests_add ( struct m0_ut_module m)
static

Definition at line 179 of file m0ut.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ addb2_base_ut

struct m0_ut_suite addb2_base_ut

Definition at line 431 of file base.c.

◆ addb2_consumer_ut

struct m0_ut_suite addb2_consumer_ut

Definition at line 391 of file consumer.c.

◆ addb2_hist_ut

struct m0_ut_suite addb2_hist_ut

Definition at line 105 of file histogram.c.

◆ addb2_net_ut

struct m0_ut_suite addb2_net_ut

Definition at line 52 of file net.c.

◆ addb2_storage_ut

struct m0_ut_suite addb2_storage_ut

Definition at line 526 of file storage.c.

◆ balloc_ut

struct m0_ut_suite balloc_ut

Definition at line 302 of file balloc.c.

◆ be_ut

struct m0_ut_suite be_ut

Definition at line 156 of file main.c.

◆ buffer_pool_ut

struct m0_ut_suite buffer_pool_ut

Definition at line 211 of file buffer_pool_ut.c.

◆ bulkio_client_ut

struct m0_ut_suite bulkio_client_ut

Definition at line 484 of file bulkio_client.c.

◆ bulkio_server_ut

struct m0_ut_suite bulkio_server_ut

Definition at line 1816 of file bulkio_ut.c.

◆ bytecount_ut

struct m0_ut_suite bytecount_ut

Definition at line 269 of file bytecount.c.

◆ capa_ut

struct m0_ut_suite capa_ut

Definition at line 102 of file capa_ut.c.

◆ cm_cp_ut

struct m0_ut_suite cm_cp_ut

Definition at line 298 of file cp.c.

◆ cm_generic_ut

struct m0_ut_suite cm_generic_ut

Definition at line 336 of file cm.c.

◆ cob_ut

struct m0_ut_suite cob_ut

Definition at line 340 of file cob.c.

◆ cobfoms_ut

Definition at line 1556 of file cob_foms.c.

◆ conf_diter_ut

struct m0_ut_suite conf_diter_ut

Definition at line 392 of file diter.c.

◆ conf_glob_ut

struct m0_ut_suite conf_glob_ut

Definition at line 233 of file glob.c.

◆ conf_load_ut

struct m0_ut_suite conf_load_ut

Definition at line 324 of file load.c.

◆ conf_pvers_ut

struct m0_ut_suite conf_pvers_ut

Definition at line 182 of file pvers.c.

◆ conf_ut

struct m0_ut_suite conf_ut

Definition at line 186 of file cache.c.

◆ conf_validation_ut

struct m0_ut_suite conf_validation_ut

Definition at line 151 of file validation.c.

◆ conf_walk_ut

struct m0_ut_suite conf_walk_ut

Definition at line 53 of file walk.c.

◆ confc_ut

struct m0_ut_suite confc_ut

Definition at line 477 of file confc.c.

◆ confstr_ut

struct m0_ut_suite confstr_ut

Definition at line 230 of file db.c.

◆ conn_ut

struct m0_ut_suite conn_ut

Definition at line 318 of file conn.c.

◆ db_cursor_ut

struct m0_ut_suite db_cursor_ut

◆ db_ut

struct m0_ut_suite db_ut

◆ di_ut

struct m0_ut_suite di_ut

Definition at line 134 of file di.c.

◆ dix_client_ut

struct m0_ut_suite dix_client_ut

Definition at line 3164 of file client_ut.c.

◆ dix_cm_iter_ut

struct m0_ut_suite dix_cm_iter_ut

Definition at line 3385 of file iter_ut.c.

◆ dtm0_clk_src_ut

struct m0_ut_suite dtm0_clk_src_ut

Definition at line 122 of file clk_src_ut.c.

◆ dtm0_log_ut

struct m0_ut_suite dtm0_log_ut

Definition at line 608 of file dtm0_log_ut.c.

◆ dtm0_ut

struct m0_ut_suite dtm0_ut

Definition at line 108 of file main.c.

◆ emap_ut

struct m0_ut_suite emap_ut

◆ failure_domains_tree_ut

struct m0_ut_suite failure_domains_tree_ut

Definition at line 182 of file fd_tree.c.

◆ failure_domains_ut

struct m0_ut_suite failure_domains_ut

Definition at line 541 of file fd.c.

◆ fdmi_filter_eval_ut

struct m0_ut_suite fdmi_filter_eval_ut

Definition at line 397 of file filter_eval.c.

◆ fdmi_filterc_ut

struct m0_ut_suite fdmi_filterc_ut

Definition at line 299 of file filterc_ut.c.

◆ fdmi_fol_fini_ut

struct m0_ut_suite fdmi_fol_fini_ut

Definition at line 474 of file fol_ut.c.

◆ fdmi_fol_ut

struct m0_ut_suite fdmi_fol_ut

Definition at line 461 of file fol_ut.c.

◆ fdmi_pd_ut

struct m0_ut_suite fdmi_pd_ut

Definition at line 704 of file pd_ut.c.

◆ fdmi_sd_ut

struct m0_ut_suite fdmi_sd_ut

Definition at line 37 of file sd_ut.c.

◆ fis_ut

struct m0_ut_suite fis_ut

Definition at line 190 of file fis_ut.c.

◆ fit_ut

struct m0_ut_suite fit_ut

Definition at line 157 of file iterator_test.c.

◆ fol_ut

struct m0_ut_suite fol_ut

Definition at line 137 of file fol.c.

◆ fom_timedwait_ut

struct m0_ut_suite fom_timedwait_ut

Definition at line 444 of file fom_timedwait_ut.c.

◆ frm_ut

struct m0_ut_suite frm_ut

Definition at line 659 of file formation2.c.

◆ ha_state_ut

struct m0_ut_suite ha_state_ut

Definition at line 637 of file note.c.

◆ ios_bufferpool_ut

struct m0_ut_suite ios_bufferpool_ut

Definition at line 146 of file ios_buffer_pool.c.

◆ isc_api_ut

struct m0_ut_suite isc_api_ut

Definition at line 122 of file isc.c.

◆ isc_service_ut

struct m0_ut_suite isc_service_ut

Definition at line 940 of file service_ut.c.

◆ item_ut

struct m0_ut_suite item_ut

Definition at line 1292 of file item.c.

◆ layout_access_plan_ut

struct m0_ut_suite layout_access_plan_ut

Definition at line 326 of file plan.c.

◆ layout_ut

struct m0_ut_suite layout_ut

Definition at line 3763 of file layout.c.

◆ libm0_ut

struct m0_ut_suite libm0_ut

Definition at line 64 of file main.c.

◆ link_lib_ut

struct m0_ut_suite link_lib_ut

Definition at line 405 of file link_ut.c.

◆ m0_fom_stats_ut

struct m0_ut_suite m0_fom_stats_ut

Definition at line 133 of file stats_ut.c.

◆ m0_fop_lock_ut

struct m0_ut_suite m0_fop_lock_ut

Definition at line 159 of file long_lock_ut.c.

◆ m0_net_bulk_if_ut

struct m0_ut_suite m0_net_bulk_if_ut

Definition at line 1229 of file bulk_if.c.

◆ m0_net_bulk_mem_ut

struct m0_ut_suite m0_net_bulk_mem_ut

Definition at line 819 of file bulk_mem_ut.c.

◆ m0_net_lnet_ut

struct m0_ut_suite m0_net_lnet_ut

Definition at line 2231 of file lnet_ut.c.

◆ m0_net_misc_ut

struct m0_ut_suite m0_net_misc_ut

Definition at line 50 of file misc.c.

◆ m0_net_module_ut

struct m0_ut_suite m0_net_module_ut

Definition at line 56 of file module.c.

◆ m0_net_test_ut

struct m0_ut_suite m0_net_test_ut

Definition at line 60 of file main.c.

◆ m0_net_tm_prov_ut

struct m0_ut_suite m0_net_tm_prov_ut

Definition at line 538 of file tm_provision_ut.c.

◆ m0d_ut

struct m0_ut_suite m0d_ut

Definition at line 713 of file cs_ut_main.c.

◆ mdservice_ut

struct m0_ut_suite mdservice_ut

Definition at line 296 of file mdstore.c.

◆ module_ut

struct m0_ut_suite module_ut

Definition at line 467 of file module.c.

◆ ms_fom_ut

struct m0_ut_suite ms_fom_ut

Definition at line 402 of file ms_fom_ut.c.

◆ packet_encdec_ut

struct m0_ut_suite packet_encdec_ut

Definition at line 259 of file packet.c.

◆ parity_math_ssse3_ut

struct m0_ut_suite parity_math_ssse3_ut

Definition at line 1424 of file parity_math_ut.c.

◆ parity_math_ut

struct m0_ut_suite parity_math_ut

Definition at line 1416 of file parity_math_ut.c.

◆ poolmach_ut

struct m0_ut_suite poolmach_ut

Definition at line 539 of file test_pm.c.

◆ rconfc_ut

struct m0_ut_suite rconfc_ut

Definition at line 1426 of file rconfc.c.

◆ reqh_fop_allow_ut

struct m0_ut_suite reqh_fop_allow_ut

Definition at line 212 of file fop_allow_ut.c.

◆ reqh_service_ctx_ut

struct m0_ut_suite reqh_service_ctx_ut

Definition at line 233 of file service_ctx.c.

◆ reqh_service_ut

struct m0_ut_suite reqh_service_ut

Definition at line 117 of file service.c.

◆ rm_rcredits_ut

struct m0_ut_suite rm_rcredits_ut

Definition at line 1123 of file rcredits.c.

◆ rm_rwlock_ut

struct m0_ut_suite rm_rwlock_ut

Definition at line 572 of file rm_rwlock.c.

◆ rm_ut

struct m0_ut_suite rm_ut

Definition at line 458 of file rmut.c.

◆ rpc_at_ut

struct m0_ut_suite rpc_at_ut

Definition at line 752 of file at_ut.c.

◆ rpc_conn_pool_ut

struct m0_ut_suite rpc_conn_pool_ut

Definition at line 181 of file conn_pool.c.

◆ rpc_mc_ut

struct m0_ut_suite rpc_mc_ut

Definition at line 222 of file rpc_machine.c.

◆ rpc_rcv_session_ut

struct m0_ut_suite rpc_rcv_session_ut

Definition at line 306 of file rcv_session.c.

◆ rpclib_ut

struct m0_ut_suite rpclib_ut

Definition at line 170 of file rpclib_ut.c.

◆ session_ut

struct m0_ut_suite session_ut

Definition at line 322 of file session.c.

◆ sm_ut

struct m0_ut_suite sm_ut

Definition at line 643 of file sm.c.

◆ sns_cm_repair_ut

struct m0_ut_suite sns_cm_repair_ut

Definition at line 536 of file cm.c.

◆ sns_flock_ut

struct m0_ut_suite sns_flock_ut

Definition at line 343 of file flock.c.

◆ snscm_net_ut

struct m0_ut_suite snscm_net_ut

Definition at line 1095 of file net.c.

◆ snscm_storage_ut

struct m0_ut_suite snscm_storage_ut

Definition at line 380 of file storage.c.

◆ snscm_xform_ut

struct m0_ut_suite snscm_xform_ut

Definition at line 743 of file xform.c.

◆ spiel_ci_ut

struct m0_ut_suite spiel_ci_ut

Definition at line 836 of file spiel_ci_ut.c.

◆ spiel_conf_ut

struct m0_ut_suite spiel_conf_ut

Definition at line 1975 of file spiel_conf_ut.c.

◆ spiel_ut

struct m0_ut_suite spiel_ut

Definition at line 82 of file spiel_ut.c.

◆ sss_ut

struct m0_ut_suite sss_ut

Definition at line 473 of file sss_ut.c.

◆ stats_ut

struct m0_ut_suite stats_ut

Definition at line 37 of file stats_ut.c.

◆ stob_ut

struct m0_ut_suite stob_ut

Definition at line 47 of file main.c.

◆ storage_dev_ut

struct m0_ut_suite storage_dev_ut

Definition at line 333 of file storage_dev_ut.c.

◆ udb_ut

struct m0_ut_suite udb_ut

Definition at line 109 of file udb_ut.c.

◆ ut_suite

struct m0_ut_suite ut_suite

Definition at line 1201 of file client.c.

◆ ut_suite_idx

struct m0_ut_suite ut_suite_idx

Definition at line 36 of file idx.c.

◆ ut_suite_idx_dix

struct m0_ut_suite ut_suite_idx_dix

Definition at line 800 of file idx_dix.c.

◆ ut_suite_io

struct m0_ut_suite ut_suite_io

Definition at line 51 of file io.c.

◆ ut_suite_io_nw_xfer

struct m0_ut_suite ut_suite_io_nw_xfer

Definition at line 46 of file io_nw_xfer.c.

◆ ut_suite_io_pargrp

struct m0_ut_suite ut_suite_io_pargrp

Definition at line 47 of file io_pargrp.c.

◆ ut_suite_io_req

struct m0_ut_suite ut_suite_io_req

Definition at line 53 of file io_req.c.

◆ ut_suite_io_req_fop

struct m0_ut_suite ut_suite_io_req_fop

Definition at line 44 of file io_req_fop.c.

◆ ut_suite_layout

struct m0_ut_suite ut_suite_layout

Definition at line 37 of file layout.c.

◆ ut_suite_mt_idx_dix

struct m0_ut_suite ut_suite_mt_idx_dix

Definition at line 1223 of file idx_dix.c.

◆ ut_suite_obj

struct m0_ut_suite ut_suite_obj

Definition at line 1512 of file obj.c.

◆ ut_suite_pi

struct m0_ut_suite ut_suite_pi

Definition at line 35 of file protection_info_checks.c.

◆ ut_suite_sync

struct m0_ut_suite ut_suite_sync

Definition at line 47 of file sync.c.

◆ ut_suite_ufid

struct m0_ut_suite ut_suite_ufid

Definition at line 39 of file ufid.c.

◆ xcode_bufvec_fop_ut

struct m0_ut_suite xcode_bufvec_fop_ut

Definition at line 324 of file xcode_fop_test.c.

◆ xcode_ff2c_ut

struct m0_ut_suite xcode_ff2c_ut

Definition at line 206 of file ff2c.c.

◆ xcode_ut

struct m0_ut_suite xcode_ut

Definition at line 1273 of file xcode.c.