Skip to content

Commit 05990ef

Browse files
committed
Add tests for library/cpp/yt/coding into listfile (#210)
1 parent 2aa3dba commit 05990ef

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

library/cpp/yt/CMakeLists.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if (YDB_SDK_TESTS)
2+
add_subdirectory(coding/unittests)
3+
endif()
4+
15
_ydb_sdk_add_library(yt-assert)
26
target_compile_options(yt-assert PRIVATE
37
-Wdeprecated-this-capture
@@ -33,8 +37,11 @@ _ydb_sdk_add_library(yt-exception)
3337
target_compile_options(yt-exception PRIVATE
3438
-Wdeprecated-this-capture
3539
)
36-
target_link_libraries(yt-exception PUBLIC
37-
yutil
40+
target_link_libraries(yt-exception
41+
PUBLIC
42+
yutil
43+
PRIVATE
44+
yt-assert
3845
)
3946
target_sources(yt-exception PRIVATE
4047
exception/exception.cpp
@@ -107,7 +114,7 @@ _ydb_sdk_install_targets(TARGETS yt-misc)
107114

108115

109116
_ydb_sdk_add_library(yt-small_containers INTERFACE)
110-
target_link_libraries(yt-small_containers
117+
target_link_libraries(yt-small_containers
111118
INTERFACE
112119
yutil
113120
yt-assert
@@ -121,7 +128,7 @@ _ydb_sdk_add_library(yt-string)
121128
target_compile_options(yt-string PRIVATE
122129
-Wdeprecated-this-capture
123130
)
124-
target_link_libraries(yt-string
131+
target_link_libraries(yt-string
125132
PUBLIC
126133
yutil
127134
yt-assert
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
add_ydb_test(NAME yt-coding-varint_ut GTEST
2+
SOURCES
3+
varint_ut.cpp
4+
LINK_LIBRARIES
5+
yt-coding
6+
GTest::gtest_main
7+
LABELS
8+
unit
9+
)
10+
11+
add_ydb_test(NAME yt-coding-zig_zag_ut GTEST
12+
SOURCES
13+
zig_zag_ut.cpp
14+
LINK_LIBRARIES
15+
yt-coding
16+
GTest::gtest_main
17+
LABELS
18+
unit
19+
)

0 commit comments

Comments
 (0)