Skip to content

Commit d240888

Browse files
stanislav-shchetininGazizonoki
authored andcommitted
session_pool_ut
1 parent c41c3e7 commit d240888

File tree

6 files changed

+973
-1
lines changed

6 files changed

+973
-1
lines changed

cmake/testing.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,13 @@ endfunction()
6969

7070
function(add_ydb_test)
7171
set(opts GTEST)
72+
<<<<<<< HEAD
7273
set(oneval_args NAME WORKING_DIRECTORY OUTPUT_DIRECTORY)
7374
set(multival_args INCLUDE_DIRS SOURCES LINK_LIBRARIES LABELS TEST_ARG)
75+
=======
76+
set(oneval_args NAME)
77+
set(multival_args SPLIT_FACTOR INCLUDE_DIRS SOURCES LINK_LIBRARIES LABELS)
78+
>>>>>>> 273b4fe0c (session_pool_ut)
7479
cmake_parse_arguments(YDB_TEST
7580
"${opts}"
7681
"${oneval_args}"
@@ -112,12 +117,16 @@ function(add_ydb_test)
112117
)
113118
endif()
114119

120+
if(NOT DEFINED YDB_TEST_SPLIT_FACTOR)
121+
set(YDB_TEST_SPLIT_FACTOR "1")
122+
endif()
123+
115124
set_property(
116125
TARGET
117126
${YDB_TEST_NAME}
118127
PROPERTY
119128
SPLIT_FACTOR
120-
1
129+
${YDB_TEST_SPLIT_FACTOR}
121130
)
122131
if (YDB_TEST_GTEST)
123132
add_yunittest(

tests/unit/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
add_subdirectory(client)
22
add_subdirectory(library)
3+
add_subdirectory(sessions_pool)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
add_ydb_test(NAME sessions_pool_ut
2+
SPLIT_FACTOR 12
3+
SOURCES
4+
sessions_pool_ut.cpp
5+
LINK_LIBRARIES
6+
yutil
7+
cpp-testing-unittest_main
8+
YDB-CPP-SDK::Table
9+
api-grpc
10+
LABELS
11+
unit
12+
)

0 commit comments

Comments
 (0)