]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/journal/test_main.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #include "gtest/gtest.h"
5 #include "common/ceph_argparse.h"
6 #include "common/ceph_crypto.h"
7 #include "common/config_proxy.h"
8 #include "global/global_context.h"
9 #include "global/global_init.h"
12 int main(int argc
, char **argv
)
14 ::testing::InitGoogleTest(&argc
, argv
);
16 auto args
= argv_to_vec(argc
, argv
);
18 auto cct
= global_init(nullptr, args
, CEPH_ENTITY_TYPE_OSD
,
19 CODE_ENVIRONMENT_UTILITY
,
20 CINIT_FLAG_NO_MON_CONFIG
);
21 g_conf().set_val("lockdep", "true");
22 common_init_finish(g_ceph_context
);
24 int r
= RUN_ALL_TESTS();