Skip to content

Commit fcc2203

Browse files
committed
Add tests for util/system into listfile (#164)
1 parent b910b57 commit fcc2203

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

util/CMakeLists.txt

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,93 @@ if (YDB_SDK_TESTS)
207207
util_ut
208208
vector_ut
209209
)
210+
211+
add_ydb_util_tests(FOLDER system
212+
TESTS
213+
align_ut
214+
atexit_ut
215+
backtrace_ut
216+
byteorder_ut
217+
compat_ut
218+
compiler_ut
219+
condvar_ut
220+
context_ut
221+
cpu_id_ut
222+
daemon_ut
223+
datetime_ut
224+
# TODO: direct_io_ut freezes
225+
direct_io_ut
226+
env_ut
227+
error_ut
228+
event_ut
229+
execpath_ut
230+
filemap_ut
231+
file_ut
232+
flock_ut
233+
# TODO: fix fstat_ut
234+
# TestFileStat::SymlinkToExistingFileTest
235+
# TestFileStat::SymlinkToNonExistingFileTest
236+
# TestFileStat::SymlinkToFileThatCantExistTest
237+
fstat_ut
238+
fs_ut
239+
getpid_ut
240+
guard_ut
241+
hi_lo_ut
242+
hostname_ut
243+
info_ut
244+
interrupt_signals_ut
245+
mem_info_ut
246+
mincore_ut
247+
mktemp_ut
248+
mutex_ut
249+
nice_ut
250+
pipe_ut
251+
platform_ut
252+
# TODO: fix progname_ut
253+
# TProgramNameTest::TestIt
254+
progname_ut
255+
rusage_ut
256+
rwlock_ut
257+
sanitizers_ut
258+
shellcommand_ut
259+
shmat_ut
260+
spinlock_ut
261+
# TODO: fix src_location_ut
262+
# TestLocation::Test1
263+
src_location_ut
264+
# TODO: fix src_root_ut
265+
# TestSourceRoot::TestStrip
266+
src_root_ut
267+
tempfile_ut
268+
# TODO: fix thread_ut
269+
# TSysThreadTest::TestSetGetThreadNameInChildThread
270+
thread_ut
271+
tls_ut
272+
# TODO: fix type_name_ut
273+
# TypeName::FromWellKnownTypes
274+
# TypeName::FromWellKnownValues
275+
# TypeName::FromWellKnownValues
276+
type_name_ut
277+
types_ut
278+
# TODO: add library/cpp/testing/benchmark
279+
# depends only on NBench::Clobber, that's a memory optimization barrier
280+
# unaligned_mem_ut
281+
user_ut
282+
yassert_ut
283+
)
284+
285+
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
286+
add_ydb_test(NAME util-system-fs_win_ut
287+
SOURCES
288+
system/fs_win_ut.cpp
289+
LINK_LIBRARIES
290+
yutil
291+
cpp-testing-unittest_main
292+
LABELS
293+
unit
294+
)
295+
endif()
296+
210297
endif()
211298

212299
_ydb_sdk_add_library(yutil)

0 commit comments

Comments
 (0)