Skip to content

Commit 273b4fe

Browse files
session_pool_ut
1 parent d47c399 commit 273b4fe

File tree

7 files changed

+972
-2
lines changed

7 files changed

+972
-2
lines changed

CMakePresets.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
},
8080
"execution": {
8181
"timeout": 1200
82+
},
83+
"environment": {
84+
"YDB_ENDPOINT": "localhost:2136"
8285
}
8386
},
8487
{

cmake/testing.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ endfunction()
6060
function(add_ydb_test)
6161
set(opts GTEST)
6262
set(oneval_args NAME)
63-
set(multival_args INCLUDE_DIRS SOURCES LINK_LIBRARIES LABELS)
63+
set(multival_args SPLIT_FACTOR INCLUDE_DIRS SOURCES LINK_LIBRARIES LABELS)
6464
cmake_parse_arguments(YDB_TEST
6565
"${opts}"
6666
"${oneval_args}"
@@ -94,12 +94,16 @@ function(add_ydb_test)
9494
)
9595
endif()
9696

97+
if(NOT DEFINED YDB_TEST_SPLIT_FACTOR)
98+
set(YDB_TEST_SPLIT_FACTOR "1")
99+
endif()
100+
97101
set_property(
98102
TARGET
99103
${YDB_TEST_NAME}
100104
PROPERTY
101105
SPLIT_FACTOR
102-
1
106+
${YDB_TEST_SPLIT_FACTOR}
103107
)
104108
if (YDB_TEST_GTEST)
105109
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)