diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-03-15 19:59:12 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-03-15 19:59:12 +0300 |
commit | 056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch) | |
tree | 4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/actors/util/ut | |
parent | 269126dcced1cc8b53eb4398b4a33e5142f10290 (diff) | |
download | ydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz |
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/actors/util/ut')
-rw-r--r-- | library/cpp/actors/util/ut/CMakeLists.darwin-x86_64.txt | 72 | ||||
-rw-r--r-- | library/cpp/actors/util/ut/CMakeLists.linux-aarch64.txt | 76 | ||||
-rw-r--r-- | library/cpp/actors/util/ut/CMakeLists.linux-x86_64.txt | 78 | ||||
-rw-r--r-- | library/cpp/actors/util/ut/CMakeLists.txt | 17 | ||||
-rw-r--r-- | library/cpp/actors/util/ut/CMakeLists.windows-x86_64.txt | 66 | ||||
-rw-r--r-- | library/cpp/actors/util/ut/ya.make | 20 |
6 files changed, 329 insertions, 0 deletions
diff --git a/library/cpp/actors/util/ut/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/util/ut/CMakeLists.darwin-x86_64.txt new file mode 100644 index 0000000000..058c400181 --- /dev/null +++ b/library/cpp/actors/util/ut/CMakeLists.darwin-x86_64.txt @@ -0,0 +1,72 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(library-cpp-actors-util-ut) +target_include_directories(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util +) +target_link_libraries(library-cpp-actors-util-ut PUBLIC + contrib-libs-cxxsupp + yutil + cpp-malloc-system + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-util +) +target_link_options(library-cpp-actors-util-ut PRIVATE + -Wl,-no_deduplicate + -Wl,-sdk_version,10.15 + -fPIC + -fPIC +) +target_sources(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/cpu_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_tracker_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/thread_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rope_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rc_buf_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_native_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/unordered_cache_ut.cpp +) +set_property( + TARGET + library-cpp-actors-util-ut + PROPERTY + SPLIT_FACTOR + 1 +) +add_yunittest( + NAME + library-cpp-actors-util-ut + TEST_TARGET + library-cpp-actors-util-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-util-ut) diff --git a/library/cpp/actors/util/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/util/ut/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..095f1c02f4 --- /dev/null +++ b/library/cpp/actors/util/ut/CMakeLists.linux-aarch64.txt @@ -0,0 +1,76 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(library-cpp-actors-util-ut) +target_include_directories(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util +) +target_link_libraries(library-cpp-actors-util-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-malloc-jemalloc + cpp-testing-unittest_main + cpp-actors-util +) +target_link_options(library-cpp-actors-util-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/cpu_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_tracker_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/thread_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rope_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rc_buf_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_native_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/unordered_cache_ut.cpp +) +set_property( + TARGET + library-cpp-actors-util-ut + PROPERTY + SPLIT_FACTOR + 1 +) +add_yunittest( + NAME + library-cpp-actors-util-ut + TEST_TARGET + library-cpp-actors-util-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-util-ut) diff --git a/library/cpp/actors/util/ut/CMakeLists.linux-x86_64.txt b/library/cpp/actors/util/ut/CMakeLists.linux-x86_64.txt new file mode 100644 index 0000000000..9d526492d8 --- /dev/null +++ b/library/cpp/actors/util/ut/CMakeLists.linux-x86_64.txt @@ -0,0 +1,78 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(library-cpp-actors-util-ut) +target_include_directories(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util +) +target_link_libraries(library-cpp-actors-util-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-malloc-tcmalloc + libs-tcmalloc-no_percpu_cache + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-util +) +target_link_options(library-cpp-actors-util-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/cpu_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_tracker_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/thread_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rope_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rc_buf_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_native_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/unordered_cache_ut.cpp +) +set_property( + TARGET + library-cpp-actors-util-ut + PROPERTY + SPLIT_FACTOR + 1 +) +add_yunittest( + NAME + library-cpp-actors-util-ut + TEST_TARGET + library-cpp-actors-util-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-util-ut) diff --git a/library/cpp/actors/util/ut/CMakeLists.txt b/library/cpp/actors/util/ut/CMakeLists.txt new file mode 100644 index 0000000000..d90657116d --- /dev/null +++ b/library/cpp/actors/util/ut/CMakeLists.txt @@ -0,0 +1,17 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) + include(CMakeLists.linux-x86_64.txt) +endif() diff --git a/library/cpp/actors/util/ut/CMakeLists.windows-x86_64.txt b/library/cpp/actors/util/ut/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..becfd9853b --- /dev/null +++ b/library/cpp/actors/util/ut/CMakeLists.windows-x86_64.txt @@ -0,0 +1,66 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_executable(library-cpp-actors-util-ut) +target_include_directories(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util +) +target_link_libraries(library-cpp-actors-util-ut PUBLIC + contrib-libs-cxxsupp + yutil + cpp-malloc-system + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-util +) +target_sources(library-cpp-actors-util-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/cpu_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/memory_tracker_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/thread_load_log_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rope_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/rc_buf_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/shared_data_native_rope_backend_ut.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/actors/util/unordered_cache_ut.cpp +) +set_property( + TARGET + library-cpp-actors-util-ut + PROPERTY + SPLIT_FACTOR + 1 +) +add_yunittest( + NAME + library-cpp-actors-util-ut + TEST_TARGET + library-cpp-actors-util-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-util-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-util-ut) diff --git a/library/cpp/actors/util/ut/ya.make b/library/cpp/actors/util/ut/ya.make new file mode 100644 index 0000000000..9ac8504751 --- /dev/null +++ b/library/cpp/actors/util/ut/ya.make @@ -0,0 +1,20 @@ +UNITTEST_FOR(library/cpp/actors/util) + +IF (WITH_VALGRIND) + TIMEOUT(600) + SIZE(MEDIUM) +ENDIF() + +SRCS( + cpu_load_log_ut.cpp + memory_tracker_ut.cpp + thread_load_log_ut.cpp + rope_ut.cpp + rc_buf_ut.cpp + shared_data_ut.cpp + shared_data_rope_backend_ut.cpp + shared_data_native_rope_backend_ut.cpp + unordered_cache_ut.cpp +) + +END() |