]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/dbstore: Add dbstore-tests to `make check` 45061/head
authorSoumya Koduri <skoduri@redhat.com>
Tue, 8 Feb 2022 10:02:16 +0000 (15:32 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Wed, 16 Feb 2022 17:20:52 +0000 (22:50 +0530)
Include and run dbstore-tests as part of `make check` target

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/store/dbstore/tests/CMakeLists.txt
src/rgw/store/dbstore/tests/dbstore_tests.cc

index e7a2a1e48db9d88d9f0e8f9942addfc03412b743..5ae2fba67b791abd53bdc1a881157348edbd7f68 100644 (file)
@@ -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)
index 4591abdc5d777cebe0127570d3fd9ba7043becab..34bded47edbf8024ba6c2755b72e8ec3caf32e42 100644 (file)
@@ -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)->get();
+            CODE_ENVIRONMENT_DAEMON,
+            CINIT_FLAG_NO_DEFAULT_CONFIG_FILE | CINIT_FLAG_NO_MON_CONFIG | CINIT_FLAG_NO_DAEMON_ACTIONS)->get();
         if (!db_type.compare("SQLite")) {
           db = new SQLiteDB(tenant, cct);
           ASSERT_TRUE(db != nullptr);