Skip to content

Commit 3e9713a

Browse files
committed
Add tests for util/generic into listfile (#158)
1 parent d069898 commit 3e9713a

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

util/CMakeLists.txt

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,79 @@ if (YDB_SDK_TESTS)
5959
threading-future
6060
)
6161

62+
add_ydb_util_tests(FOLDER generic
63+
TESTS
64+
adaptor_ut
65+
algorithm_ut
66+
array_ref_ut
67+
array_size_ut
68+
bitmap_ut
69+
bitops_ut
70+
buffer_ut
71+
cast_ut
72+
deque_ut
73+
enum_range_ut
74+
explicit_type_ut
75+
flags_ut
76+
function_ref_ut
77+
function_ut
78+
guid_ut
79+
hash_primes_ut
80+
hash_ut
81+
intrlist_ut
82+
is_in_ut
83+
iterator_range_ut
84+
iterator_ut
85+
lazy_value_ut
86+
list_ut
87+
mapfindptr_ut
88+
map_ut
89+
maybe_ut
90+
mem_copy_ut
91+
objects_counter_ut
92+
overloaded_ut
93+
ptr_ut
94+
queue_ut
95+
scope_ut
96+
serialized_enum_ut
97+
set_ut
98+
singleton_ut
99+
size_literals_ut
100+
stack_ut
101+
store_policy_ut
102+
strbuf_ut
103+
# TODO: either add library/cpp/containers/absl_flat_hash
104+
# or use __cplusplus macro to switch to C++20 and use std::unordered_set
105+
# string_transparent_hash_ut
106+
string_ut
107+
typelist_ut
108+
typetraits_ut
109+
utility_ut
110+
va_args_ut
111+
vector_ut
112+
xrange_ut
113+
ylimits_ut
114+
ymath_ut
115+
)
116+
117+
add_ydb_test(NAME util-generic-yexception_ut
118+
SOURCES
119+
generic/yexception_ut.c
120+
generic/yexception_ut.cpp
121+
LINK_LIBRARIES
122+
yutil
123+
cpp-testing-unittest_main
124+
LABELS
125+
unit
126+
)
127+
if (CMAKE_SYSTEM_NAME MATCHES "^(Linux|Darwin)$")
128+
target_compile_definitions(util-generic-yexception_ut
129+
PRIVATE
130+
LIBCXX_BUILDING_LIBCXXRT
131+
LIBCXX_BUILDING_LIBGCC
132+
)
133+
endif()
134+
62135
add_ydb_util_tests(FOLDER network
63136
TESTS
64137
address_ut

0 commit comments

Comments
 (0)