]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // -*- mode:C; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #include "gtest/gtest.h" | |
5 | #include "common/ceph_argparse.h" | |
6 | #include "common/ceph_crypto.h" | |
11fdf7f2 | 7 | #include "common/config_proxy.h" |
7c673cae FG |
8 | #include "global/global_context.h" |
9 | #include "global/global_init.h" | |
10 | #include <vector> | |
11 | ||
12 | int main(int argc, char **argv) | |
13 | { | |
14 | ::testing::InitGoogleTest(&argc, argv); | |
15 | ||
20effc67 | 16 | auto args = argv_to_vec(argc, argv); |
7c673cae | 17 | |
20effc67 | 18 | auto cct = global_init(nullptr, args, CEPH_ENTITY_TYPE_OSD, |
11fdf7f2 TL |
19 | CODE_ENVIRONMENT_UTILITY, |
20 | CINIT_FLAG_NO_MON_CONFIG); | |
21 | g_conf().set_val("lockdep", "true"); | |
7c673cae FG |
22 | common_init_finish(g_ceph_context); |
23 | ||
24 | int r = RUN_ALL_TESTS(); | |
25 | return r; | |
26 | } |