From 572a088bc82d8221e1d51ca3b9ae4dff38517f56 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 18:01:10 +0300
Subject: [PATCH 01/13] Add tests for library/cpp/iterator into listfile (#189)
---
library/cpp/iterator/CMakeLists.txt | 4 ++
library/cpp/iterator/ut/CMakeLists.txt | 59 ++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 library/cpp/iterator/ut/CMakeLists.txt
diff --git a/library/cpp/iterator/CMakeLists.txt b/library/cpp/iterator/CMakeLists.txt
index 41e93423370..ada78e6f774 100644
--- a/library/cpp/iterator/CMakeLists.txt
+++ b/library/cpp/iterator/CMakeLists.txt
@@ -1,3 +1,7 @@
+if (YDB_SDK_TESTS)
+ add_subdirectory(ut)
+endif()
+
_ydb_sdk_add_library(iterator)
target_link_libraries(iterator PUBLIC
diff --git a/library/cpp/iterator/ut/CMakeLists.txt b/library/cpp/iterator/ut/CMakeLists.txt
new file mode 100644
index 00000000000..60497936a41
--- /dev/null
+++ b/library/cpp/iterator/ut/CMakeLists.txt
@@ -0,0 +1,59 @@
+add_ydb_test(NAME iterator-filtering_ut GTEST
+ SOURCES
+ filtering_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME iterator-functools_ut GTEST
+ SOURCES
+ functools_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME iterator-iterate_keys_ut GTEST
+ SOURCES
+ iterate_keys_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME iterator-iterate_values_ut GTEST
+ SOURCES
+ iterate_values_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME iterator-mapped_ut GTEST
+ SOURCES
+ mapped_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME iterator-zip_ut GTEST
+ SOURCES
+ zip_ut.cpp
+ LINK_LIBRARIES
+ iterator
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 2c57e2f7f85f9ca7b502d798ff41ff6f9d6aaec3 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 18:01:51 +0300
Subject: [PATCH 02/13] Add tests for library/cpp/yson into listfile (#209)
---
library/cpp/yson/CMakeLists.txt | 8 ++++++--
library/cpp/yson/ut/CMakeLists.txt | 9 +++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
create mode 100644 library/cpp/yson/ut/CMakeLists.txt
diff --git a/library/cpp/yson/CMakeLists.txt b/library/cpp/yson/CMakeLists.txt
index f1aaa232d4b..ae7273c701a 100644
--- a/library/cpp/yson/CMakeLists.txt
+++ b/library/cpp/yson/CMakeLists.txt
@@ -1,13 +1,17 @@
+if (YDB_SDK_TESTS)
+ add_subdirectory(ut)
+endif()
+
_ydb_sdk_add_library(yson)
-target_link_libraries(yson
+target_link_libraries(yson
PUBLIC
yutil
yt-misc
yt-yson
)
-target_sources(yson
+target_sources(yson
PRIVATE
consumer.cpp
lexer.cpp
diff --git a/library/cpp/yson/ut/CMakeLists.txt b/library/cpp/yson/ut/CMakeLists.txt
new file mode 100644
index 00000000000..1490a412cf2
--- /dev/null
+++ b/library/cpp/yson/ut/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_ydb_test(NAME yson-ut GTEST
+ SOURCES
+ yson_ut.cpp
+ LINK_LIBRARIES
+ yson
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 0d20ef5f5634930e4bf8b2d067c961f409181b7a Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 18:42:48 +0300
Subject: [PATCH 03/13] Add missing gmock (#189)
---
library/cpp/iterator/ut/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/library/cpp/iterator/ut/CMakeLists.txt b/library/cpp/iterator/ut/CMakeLists.txt
index 60497936a41..c53717435a4 100644
--- a/library/cpp/iterator/ut/CMakeLists.txt
+++ b/library/cpp/iterator/ut/CMakeLists.txt
@@ -4,6 +4,7 @@ add_ydb_test(NAME iterator-filtering_ut GTEST
LINK_LIBRARIES
iterator
GTest::gtest_main
+ GTest::gmock
LABELS
unit
)
@@ -14,6 +15,7 @@ add_ydb_test(NAME iterator-functools_ut GTEST
LINK_LIBRARIES
iterator
GTest::gtest_main
+ GTest::gmock
LABELS
unit
)
@@ -24,6 +26,7 @@ add_ydb_test(NAME iterator-iterate_keys_ut GTEST
LINK_LIBRARIES
iterator
GTest::gtest_main
+ GTest::gmock
LABELS
unit
)
@@ -34,6 +37,7 @@ add_ydb_test(NAME iterator-iterate_values_ut GTEST
LINK_LIBRARIES
iterator
GTest::gtest_main
+ GTest::gmock
LABELS
unit
)
@@ -44,6 +48,7 @@ add_ydb_test(NAME iterator-mapped_ut GTEST
LINK_LIBRARIES
iterator
GTest::gtest_main
+ GTest::gmock
LABELS
unit
)
From 037be92eccff8bb9750a6036e37b55052ae6bd2c Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 18:44:27 +0300
Subject: [PATCH 04/13] Add tests for library/cpp/yt/coding into listfile
(#210)
---
library/cpp/yt/CMakeLists.txt | 15 +++++++++++----
.../cpp/yt/coding/unittests/CMakeLists.txt | 19 +++++++++++++++++++
2 files changed, 30 insertions(+), 4 deletions(-)
create mode 100644 library/cpp/yt/coding/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index 920be15656b..d04ec052d4b 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -1,3 +1,7 @@
+if (YDB_SDK_TESTS)
+ add_subdirectory(coding/unittests)
+endif()
+
_ydb_sdk_add_library(yt-assert)
target_compile_options(yt-assert PRIVATE
-Wdeprecated-this-capture
@@ -33,8 +37,11 @@ _ydb_sdk_add_library(yt-exception)
target_compile_options(yt-exception PRIVATE
-Wdeprecated-this-capture
)
-target_link_libraries(yt-exception PUBLIC
- yutil
+target_link_libraries(yt-exception
+ PUBLIC
+ yutil
+ PRIVATE
+ yt-assert
)
target_sources(yt-exception PRIVATE
exception/exception.cpp
@@ -107,7 +114,7 @@ _ydb_sdk_install_targets(TARGETS yt-misc)
_ydb_sdk_add_library(yt-small_containers INTERFACE)
-target_link_libraries(yt-small_containers
+target_link_libraries(yt-small_containers
INTERFACE
yutil
yt-assert
@@ -121,7 +128,7 @@ _ydb_sdk_add_library(yt-string)
target_compile_options(yt-string PRIVATE
-Wdeprecated-this-capture
)
-target_link_libraries(yt-string
+target_link_libraries(yt-string
PUBLIC
yutil
yt-assert
diff --git a/library/cpp/yt/coding/unittests/CMakeLists.txt b/library/cpp/yt/coding/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..38aa1f8c2d8
--- /dev/null
+++ b/library/cpp/yt/coding/unittests/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_ydb_test(NAME yt-coding-varint_ut GTEST
+ SOURCES
+ varint_ut.cpp
+ LINK_LIBRARIES
+ yt-coding
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-coding-zig_zag_ut GTEST
+ SOURCES
+ zig_zag_ut.cpp
+ LINK_LIBRARIES
+ yt-coding
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 61399d1da5aac49552ae0e3964e5fe2875425ae0 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 18:48:34 +0300
Subject: [PATCH 05/13] Add tests for library/cpp/yt/containers into listfile
(#210)
---
library/cpp/yt/CMakeLists.txt | 1 +
.../yt/containers/unittests/CMakeLists.txt | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
create mode 100644 library/cpp/yt/containers/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index d04ec052d4b..6efaec82d88 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -1,5 +1,6 @@
if (YDB_SDK_TESTS)
add_subdirectory(coding/unittests)
+ add_subdirectory(containers/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
diff --git a/library/cpp/yt/containers/unittests/CMakeLists.txt b/library/cpp/yt/containers/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..417883ddeab
--- /dev/null
+++ b/library/cpp/yt/containers/unittests/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_ydb_test(NAME yt-containers-enum_indexed_array_ut GTEST
+ SOURCES
+ enum_indexed_array_ut.cpp
+ LINK_LIBRARIES
+ yt-containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-containers-sharded_set_ut GTEST
+ SOURCES
+ sharded_set_ut.cpp
+ LINK_LIBRARIES
+ yt-containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 23c578bb7d80b494d07a0eb2ad0688b799449a13 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 19:08:54 +0300
Subject: [PATCH 06/13] Add tests for library/cpp/yt/memory into listfile
(#210)
---
library/cpp/yt/CMakeLists.txt | 1 +
.../cpp/yt/memory/unittests/CMakeLists.txt | 123 ++++++++++++++++++
2 files changed, 124 insertions(+)
create mode 100644 library/cpp/yt/memory/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index 6efaec82d88..a80758cc4ef 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -1,6 +1,7 @@
if (YDB_SDK_TESTS)
add_subdirectory(coding/unittests)
add_subdirectory(containers/unittests)
+ add_subdirectory(memory/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
diff --git a/library/cpp/yt/memory/unittests/CMakeLists.txt b/library/cpp/yt/memory/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..e86d2a65e1e
--- /dev/null
+++ b/library/cpp/yt/memory/unittests/CMakeLists.txt
@@ -0,0 +1,123 @@
+add_ydb_test(NAME yt-memory-atomic_intrusive_ptr_ut GTEST
+ SOURCES
+ atomic_intrusive_ptr_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ GTest::gmock
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-chunked_memory_pool_allocator_ut GTEST
+ SOURCES
+ chunked_memory_pool_allocator_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-chunked_memory_pool_output_ut GTEST
+ SOURCES
+ chunked_memory_pool_output_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-chunked_memory_pool_ut GTEST
+ SOURCES
+ chunked_memory_pool_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+#[=[
+TODO: missing the library `library/cpp/int128`
+add_ydb_test(NAME yt-memory-erased_storage_ut GTEST
+ SOURCES
+ erased_storage_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+#]=]
+add_ydb_test(NAME yt-memory-free_list_ut GTEST
+ SOURCES
+ free_list_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-function_view_ut GTEST
+ SOURCES
+ function_view_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-intrusive_ptr_ut GTEST
+ SOURCES
+ intrusive_ptr_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ GTest::gmock
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-ref_ut GTEST
+ SOURCES
+ ref_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-safe_memory_reader_ut GTEST
+ SOURCES
+ safe_memory_reader_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-shared_range_ut GTEST
+ SOURCES
+ shared_range_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-memory-weak_ptr_ut GTEST
+ SOURCES
+ weak_ptr_ut.cpp
+ LINK_LIBRARIES
+ yt-memory
+ GTest::gtest_main
+ GTest::gmock
+ LABELS
+ unit
+)
From 52e5550ecec8a1ee45df8622d6b674a3c465ce0b Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 19:14:01 +0300
Subject: [PATCH 07/13] Add tests for library/cpp/yt/misc into listfile (#210)
---
library/cpp/yt/CMakeLists.txt | 1 +
library/cpp/yt/misc/unittests/CMakeLists.txt | 39 ++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 library/cpp/yt/misc/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index a80758cc4ef..0dd074ea38a 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -2,6 +2,7 @@ if (YDB_SDK_TESTS)
add_subdirectory(coding/unittests)
add_subdirectory(containers/unittests)
add_subdirectory(memory/unittests)
+ add_subdirectory(misc/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
diff --git a/library/cpp/yt/misc/unittests/CMakeLists.txt b/library/cpp/yt/misc/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..fa86d5d470a
--- /dev/null
+++ b/library/cpp/yt/misc/unittests/CMakeLists.txt
@@ -0,0 +1,39 @@
+add_ydb_test(NAME yt-misc-enum_ut GTEST
+ SOURCES
+ enum_ut.cpp
+ LINK_LIBRARIES
+ yt-misc
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-misc-guid_ut GTEST
+ SOURCES
+ guid_ut.cpp
+ LINK_LIBRARIES
+ yt-misc
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-misc-preprocessor_ut GTEST
+ SOURCES
+ preprocessor_ut.cpp
+ LINK_LIBRARIES
+ yt-misc
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-misc-strong_typedef_ut GTEST
+ SOURCES
+ strong_typedef_ut.cpp
+ LINK_LIBRARIES
+ yt-misc
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 7929544ae946c22810b969b58978669e24f44324 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Sun, 11 Aug 2024 19:22:01 +0300
Subject: [PATCH 08/13] Add tests for library/cpp/yt/small_containers into
listfile (#210)
---
library/cpp/yt/CMakeLists.txt | 1 +
.../small_containers/unittests/CMakeLists.txt | 50 +++++++++++++++++++
2 files changed, 51 insertions(+)
create mode 100644 library/cpp/yt/small_containers/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index 0dd074ea38a..6d1ddb3506a 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -3,6 +3,7 @@ if (YDB_SDK_TESTS)
add_subdirectory(containers/unittests)
add_subdirectory(memory/unittests)
add_subdirectory(misc/unittests)
+ add_subdirectory(small_containers/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
diff --git a/library/cpp/yt/small_containers/unittests/CMakeLists.txt b/library/cpp/yt/small_containers/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..69472c83616
--- /dev/null
+++ b/library/cpp/yt/small_containers/unittests/CMakeLists.txt
@@ -0,0 +1,50 @@
+add_ydb_test(NAME yt-small_containers-compact_flat_map_ut GTEST
+ SOURCES
+ compact_flat_map_ut.cpp
+ LINK_LIBRARIES
+ yt-small_containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-small_containers-compact_heap_ut GTEST
+ SOURCES
+ compact_heap_ut.cpp
+ LINK_LIBRARIES
+ yt-small_containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-small_containers-compact_queue_ut GTEST
+ SOURCES
+ compact_queue_ut.cpp
+ LINK_LIBRARIES
+ yt-small_containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-small_containers-compact_set_ut GTEST
+ SOURCES
+ compact_set_ut.cpp
+ LINK_LIBRARIES
+ yt-small_containers
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-small_containers-compact_vector_ut GTEST
+ SOURCES
+ compact_vector_ut.cpp
+ LINK_LIBRARIES
+ yt-small_containers
+ GTest::gtest_main
+ GTest::gmock
+ LABELS
+ unit
+)
From 7826b0d086d2088c1ba3294bd2ddcdfc27d96dc2 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Mon, 12 Aug 2024 01:17:58 +0300
Subject: [PATCH 09/13] Add tests for library/cpp/yt/string into listfile
(#210)
---
library/cpp/yt/CMakeLists.txt | 2 +
.../yt/containers/unittests/CMakeLists.txt | 2 +
library/cpp/yt/misc/unittests/CMakeLists.txt | 3 ++
.../small_containers/unittests/CMakeLists.txt | 5 +++
.../cpp/yt/string/unittests/CMakeLists.txt | 39 +++++++++++++++++++
5 files changed, 51 insertions(+)
create mode 100644 library/cpp/yt/string/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index 6d1ddb3506a..33f0773afff 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -4,6 +4,7 @@ if (YDB_SDK_TESTS)
add_subdirectory(memory/unittests)
add_subdirectory(misc/unittests)
add_subdirectory(small_containers/unittests)
+ add_subdirectory(string/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
@@ -147,6 +148,7 @@ target_sources(yt-string
string/guid.cpp
string/string.cpp
string/format.cpp
+ string/format_string.cpp
)
_ydb_sdk_install_targets(TARGETS yt-string)
diff --git a/library/cpp/yt/containers/unittests/CMakeLists.txt b/library/cpp/yt/containers/unittests/CMakeLists.txt
index 417883ddeab..3a734babd79 100644
--- a/library/cpp/yt/containers/unittests/CMakeLists.txt
+++ b/library/cpp/yt/containers/unittests/CMakeLists.txt
@@ -3,6 +3,7 @@ add_ydb_test(NAME yt-containers-enum_indexed_array_ut GTEST
enum_indexed_array_ut.cpp
LINK_LIBRARIES
yt-containers
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -13,6 +14,7 @@ add_ydb_test(NAME yt-containers-sharded_set_ut GTEST
sharded_set_ut.cpp
LINK_LIBRARIES
yt-containers
+ yt-string
GTest::gtest_main
LABELS
unit
diff --git a/library/cpp/yt/misc/unittests/CMakeLists.txt b/library/cpp/yt/misc/unittests/CMakeLists.txt
index fa86d5d470a..23c13008884 100644
--- a/library/cpp/yt/misc/unittests/CMakeLists.txt
+++ b/library/cpp/yt/misc/unittests/CMakeLists.txt
@@ -13,6 +13,7 @@ add_ydb_test(NAME yt-misc-guid_ut GTEST
guid_ut.cpp
LINK_LIBRARIES
yt-misc
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -23,6 +24,7 @@ add_ydb_test(NAME yt-misc-preprocessor_ut GTEST
preprocessor_ut.cpp
LINK_LIBRARIES
yt-misc
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -33,6 +35,7 @@ add_ydb_test(NAME yt-misc-strong_typedef_ut GTEST
strong_typedef_ut.cpp
LINK_LIBRARIES
yt-misc
+ yt-string
GTest::gtest_main
LABELS
unit
diff --git a/library/cpp/yt/small_containers/unittests/CMakeLists.txt b/library/cpp/yt/small_containers/unittests/CMakeLists.txt
index 69472c83616..9339a5d68c0 100644
--- a/library/cpp/yt/small_containers/unittests/CMakeLists.txt
+++ b/library/cpp/yt/small_containers/unittests/CMakeLists.txt
@@ -3,6 +3,7 @@ add_ydb_test(NAME yt-small_containers-compact_flat_map_ut GTEST
compact_flat_map_ut.cpp
LINK_LIBRARIES
yt-small_containers
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -13,6 +14,7 @@ add_ydb_test(NAME yt-small_containers-compact_heap_ut GTEST
compact_heap_ut.cpp
LINK_LIBRARIES
yt-small_containers
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -23,6 +25,7 @@ add_ydb_test(NAME yt-small_containers-compact_queue_ut GTEST
compact_queue_ut.cpp
LINK_LIBRARIES
yt-small_containers
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -33,6 +36,7 @@ add_ydb_test(NAME yt-small_containers-compact_set_ut GTEST
compact_set_ut.cpp
LINK_LIBRARIES
yt-small_containers
+ yt-string
GTest::gtest_main
LABELS
unit
@@ -43,6 +47,7 @@ add_ydb_test(NAME yt-small_containers-compact_vector_ut GTEST
compact_vector_ut.cpp
LINK_LIBRARIES
yt-small_containers
+ yt-string
GTest::gtest_main
GTest::gmock
LABELS
diff --git a/library/cpp/yt/string/unittests/CMakeLists.txt b/library/cpp/yt/string/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..84e591173d3
--- /dev/null
+++ b/library/cpp/yt/string/unittests/CMakeLists.txt
@@ -0,0 +1,39 @@
+add_ydb_test(NAME yt-string-enum_ut GTEST
+ SOURCES
+ enum_ut.cpp
+ LINK_LIBRARIES
+ yt-string
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-string-format_ut GTEST
+ SOURCES
+ format_ut.cpp
+ LINK_LIBRARIES
+ yt-string
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-string-guid_ut GTEST
+ SOURCES
+ guid_ut.cpp
+ LINK_LIBRARIES
+ yt-string
+ GTest::gtest_main
+ LABELS
+ unit
+)
+
+add_ydb_test(NAME yt-string-string_ut GTEST
+ SOURCES
+ string_ut.cpp
+ LINK_LIBRARIES
+ yt-string
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 8edc7df11b669a24ef864f70e54028eff6e293a4 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Mon, 12 Aug 2024 01:31:46 +0300
Subject: [PATCH 10/13] Add tests for library/cpp/yt/yson_string into listfile
(#210)
---
library/cpp/yt/CMakeLists.txt | 1 +
.../yt/yson_string/unittests/CMakeLists.txt | 21 +++++++++++++++++++
2 files changed, 22 insertions(+)
create mode 100644 library/cpp/yt/yson_string/unittests/CMakeLists.txt
diff --git a/library/cpp/yt/CMakeLists.txt b/library/cpp/yt/CMakeLists.txt
index 33f0773afff..70d206dee3b 100644
--- a/library/cpp/yt/CMakeLists.txt
+++ b/library/cpp/yt/CMakeLists.txt
@@ -5,6 +5,7 @@ if (YDB_SDK_TESTS)
add_subdirectory(misc/unittests)
add_subdirectory(small_containers/unittests)
add_subdirectory(string/unittests)
+ add_subdirectory(yson_string/unittests)
endif()
_ydb_sdk_add_library(yt-assert)
diff --git a/library/cpp/yt/yson_string/unittests/CMakeLists.txt b/library/cpp/yt/yson_string/unittests/CMakeLists.txt
new file mode 100644
index 00000000000..16fa0bcc582
--- /dev/null
+++ b/library/cpp/yt/yson_string/unittests/CMakeLists.txt
@@ -0,0 +1,21 @@
+#[=[
+TODO: missing `library/cpp/testing/gtest_extensions`
+add_ydb_test(NAME yt-yson_string-convert_ut GTEST
+ SOURCES
+ convert_ut.cpp
+ LINK_LIBRARIES
+ yt-yson_string
+ GTest::gtest_main
+ LABELS
+ unit
+)
+#]=]
+add_ydb_test(NAME yt-yson_string-saveload_ut GTEST
+ SOURCES
+ saveload_ut.cpp
+ LINK_LIBRARIES
+ yt-yson_string
+ GTest::gtest_main
+ LABELS
+ unit
+)
From 79ae5e0063daa55ffec402639ad47fd4918581b0 Mon Sep 17 00:00:00 2001
From: Pavel Tsayukov
Date: Mon, 12 Aug 2024 01:36:57 +0300
Subject: [PATCH 11/13] Fix includes
---
library/cpp/iterator/ut/filtering_ut.cpp | 3 ++-
library/cpp/iterator/ut/functools_ut.cpp | 3 ++-
library/cpp/iterator/ut/iterate_keys_ut.cpp | 3 ++-
library/cpp/iterator/ut/iterate_values_ut.cpp | 3 ++-
library/cpp/iterator/ut/mapped_ut.cpp | 3 ++-
library/cpp/iterator/ut/zip_ut.cpp | 3 +--
library/cpp/yson/ut/yson_ut.cpp | 2 +-
library/cpp/yt/coding/unittests/varint_ut.cpp | 4 +++-
library/cpp/yt/coding/unittests/zig_zag_ut.cpp | 2 +-
library/cpp/yt/containers/unittests/enum_indexed_array_ut.cpp | 3 +--
library/cpp/yt/containers/unittests/sharded_set_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/atomic_intrusive_ptr_ut.cpp | 3 ++-
.../yt/memory/unittests/chunked_memory_pool_allocator_ut.cpp | 2 +-
.../cpp/yt/memory/unittests/chunked_memory_pool_output_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/chunked_memory_pool_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/erased_storage_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/free_list_ut.cpp | 4 +++-
library/cpp/yt/memory/unittests/function_view_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/intrusive_ptr_ut.cpp | 4 +++-
library/cpp/yt/memory/unittests/ref_ut.cpp | 3 +--
library/cpp/yt/memory/unittests/safe_memory_reader_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/shared_range_ut.cpp | 2 +-
library/cpp/yt/memory/unittests/weak_ptr_ut.cpp | 3 ++-
library/cpp/yt/misc/unittests/enum_ut.cpp | 3 +--
library/cpp/yt/misc/unittests/guid_ut.cpp | 2 +-
library/cpp/yt/misc/unittests/preprocessor_ut.cpp | 2 +-
.../cpp/yt/small_containers/unittests/compact_flat_map_ut.cpp | 2 +-
library/cpp/yt/small_containers/unittests/compact_heap_ut.cpp | 2 +-
.../cpp/yt/small_containers/unittests/compact_queue_ut.cpp | 2 +-
library/cpp/yt/small_containers/unittests/compact_set_ut.cpp | 2 +-
.../cpp/yt/small_containers/unittests/compact_vector_ut.cpp | 3 ++-
library/cpp/yt/string/unittests/enum_ut.cpp | 4 +---
library/cpp/yt/string/unittests/format_ut.cpp | 2 +-
library/cpp/yt/string/unittests/guid_ut.cpp | 2 +-
library/cpp/yt/string/unittests/string_ut.cpp | 3 +--
library/cpp/yt/yson_string/unittests/convert_ut.cpp | 2 +-
library/cpp/yt/yson_string/unittests/saveload_ut.cpp | 4 +---
37 files changed, 51 insertions(+), 46 deletions(-)
diff --git a/library/cpp/iterator/ut/filtering_ut.cpp b/library/cpp/iterator/ut/filtering_ut.cpp
index 60c20446988..57ede17fd8a 100644
--- a/library/cpp/iterator/ut/filtering_ut.cpp
+++ b/library/cpp/iterator/ut/filtering_ut.cpp
@@ -1,6 +1,7 @@
#include
-#include
+#include
+#include
#include
diff --git a/library/cpp/iterator/ut/functools_ut.cpp b/library/cpp/iterator/ut/functools_ut.cpp
index 2dee9a55c85..1d7f2f7ad61 100644
--- a/library/cpp/iterator/ut/functools_ut.cpp
+++ b/library/cpp/iterator/ut/functools_ut.cpp
@@ -1,6 +1,7 @@
#include
-#include
+#include
+#include
#include
#include
diff --git a/library/cpp/iterator/ut/iterate_keys_ut.cpp b/library/cpp/iterator/ut/iterate_keys_ut.cpp
index 49eb866b6ec..a4cf31c238d 100644
--- a/library/cpp/iterator/ut/iterate_keys_ut.cpp
+++ b/library/cpp/iterator/ut/iterate_keys_ut.cpp
@@ -1,6 +1,7 @@
#include
-#include
+#include
+#include
#include