File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ endfunction()
69
69
70
70
function (add_ydb_test )
71
71
set (opts GTEST )
72
- set (oneval_args NAME WORKING_DIRECTORY )
72
+ set (oneval_args NAME WORKING_DIRECTORY OUTPUT_DIRECTORY )
73
73
set (multival_args INCLUDE_DIRS SOURCES LINK_LIBRARIES LABELS )
74
74
cmake_parse_arguments (YDB_TEST
75
75
"${opts} "
@@ -82,6 +82,10 @@ function(add_ydb_test)
82
82
file (MAKE_DIRECTORY "${YDB_TEST_WORKING_DIRECTORY} " )
83
83
endif ()
84
84
85
+ if (YDB_TEST_OUTPUT_DIRECTORY AND NOT EXISTS "${YDB_TEST_OUTPUT_DIRECTORY} " )
86
+ file (MAKE_DIRECTORY "${YDB_TEST_OUTPUT_DIRECTORY} " )
87
+ endif ()
88
+
85
89
add_executable (${YDB_TEST_NAME} )
86
90
target_include_directories (${YDB_TEST_NAME} PRIVATE ${YDB_TEST_INCLUDE_DIRS} )
87
91
target_link_libraries (${YDB_TEST_NAME} PRIVATE ${YDB_TEST_LINK_LIBRARIES} )
Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ if (YDB_SDK_TESTS)
265
265
system /filemap_ut.cpp
266
266
system /file_ut.cpp
267
267
system /flock_ut.cpp
268
- system /fstat_ut.cpp
269
268
system /fs_ut.cpp
270
269
system /getpid_ut.cpp
271
270
system /guard_ut.cpp
@@ -311,6 +310,20 @@ if (YDB_SDK_TESTS)
311
310
unit
312
311
)
313
312
313
+ add_ydb_test (NAME util-system-fstat_ut
314
+ WORKING_DIRECTORY
315
+ ${CMAKE_CURRENT_BINARY_DIR} /system
316
+ OUTPUT_DIRECTORY
317
+ ${CMAKE_CURRENT_BINARY_DIR} /system/testing_out_stuff
318
+ SOURCES
319
+ system /fstat_ut.cpp
320
+ LINK_LIBRARIES
321
+ yutil
322
+ cpp-testing-unittest_main
323
+ LABELS
324
+ unit
325
+ )
326
+
314
327
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
315
328
add_ydb_test (NAME util-system-fs_win_ut
316
329
WORKING_DIRECTORY
You can’t perform that action at this time.
0 commit comments