mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
rgw/dbstore: Add dbstore-tests to make check
Include and run dbstore-tests as part of `make check` target Signed-off-by: Soumya Koduri <skoduri@redhat.com>
This commit is contained in:
parent
9596630073
commit
5b91ca9d48
@ -8,5 +8,6 @@ set(dbstore_tests_srcs
|
||||
|
||||
include_directories(${CMAKE_INCLUDE_DIR})
|
||||
|
||||
add_executable(dbstore-tests ${dbstore_tests_srcs})
|
||||
target_link_libraries(dbstore-tests ${CMAKE_LINK_LIBRARIES})
|
||||
add_executable(unittest_dbstore_tests ${dbstore_tests_srcs})
|
||||
target_link_libraries(unittest_dbstore_tests ${CMAKE_LINK_LIBRARIES})
|
||||
add_ceph_unittest(unittest_dbstore_tests)
|
||||
|
@ -29,7 +29,8 @@ namespace gtest {
|
||||
|
||||
void SetUp() override {
|
||||
cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT,
|
||||
CODE_ENVIRONMENT_DAEMON, CINIT_FLAG_NO_MON_CONFIG, 1);
|
||||
CODE_ENVIRONMENT_DAEMON,
|
||||
CINIT_FLAG_NO_DEFAULT_CONFIG_FILE | CINIT_FLAG_NO_MON_CONFIG | CINIT_FLAG_NO_DAEMON_ACTIONS);
|
||||
if (!db_type.compare("SQLite")) {
|
||||
db = new SQLiteDB(tenant, cct.get());
|
||||
ASSERT_TRUE(db != nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user