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/testlib | |
parent | 269126dcced1cc8b53eb4398b4a33e5142f10290 (diff) | |
download | ydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz |
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/actors/testlib')
11 files changed, 325 insertions, 0 deletions
diff --git a/library/cpp/actors/testlib/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/testlib/CMakeLists.darwin-x86_64.txt index 1508c82e9b..4f1c8d01a2 100644 --- a/library/cpp/actors/testlib/CMakeLists.darwin-x86_64.txt +++ b/library/cpp/actors/testlib/CMakeLists.darwin-x86_64.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-testlib) target_link_libraries(cpp-actors-testlib PUBLIC diff --git a/library/cpp/actors/testlib/CMakeLists.linux-aarch64.txt b/library/cpp/actors/testlib/CMakeLists.linux-aarch64.txt index 68cb3d3199..40a5c9c26f 100644 --- a/library/cpp/actors/testlib/CMakeLists.linux-aarch64.txt +++ b/library/cpp/actors/testlib/CMakeLists.linux-aarch64.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-testlib) target_link_libraries(cpp-actors-testlib PUBLIC diff --git a/library/cpp/actors/testlib/CMakeLists.linux-x86_64.txt b/library/cpp/actors/testlib/CMakeLists.linux-x86_64.txt index 68cb3d3199..40a5c9c26f 100644 --- a/library/cpp/actors/testlib/CMakeLists.linux-x86_64.txt +++ b/library/cpp/actors/testlib/CMakeLists.linux-x86_64.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-testlib) target_link_libraries(cpp-actors-testlib PUBLIC diff --git a/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt b/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt index 1508c82e9b..4f1c8d01a2 100644 --- a/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt +++ b/library/cpp/actors/testlib/CMakeLists.windows-x86_64.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(ut) add_library(cpp-actors-testlib) target_link_libraries(cpp-actors-testlib PUBLIC diff --git a/library/cpp/actors/testlib/ut/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/testlib/ut/CMakeLists.darwin-x86_64.txt new file mode 100644 index 0000000000..299d7f5aac --- /dev/null +++ b/library/cpp/actors/testlib/ut/CMakeLists.darwin-x86_64.txt @@ -0,0 +1,67 @@ + +# 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-testlib-ut) +target_include_directories(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib +) +target_link_libraries(library-cpp-actors-testlib-ut PUBLIC + contrib-libs-cxxsupp + yutil + cpp-malloc-system + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-testlib + cpp-actors-core +) +target_link_options(library-cpp-actors-testlib-ut PRIVATE + -Wl,-no_deduplicate + -Wl,-sdk_version,10.15 + -fPIC + -fPIC + -framework + CoreFoundation +) +target_sources(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib/decorator_ut.cpp +) +set_property( + TARGET + library-cpp-actors-testlib-ut + PROPERTY + SPLIT_FACTOR + 10 +) +add_yunittest( + NAME + library-cpp-actors-testlib-ut + TEST_TARGET + library-cpp-actors-testlib-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-testlib-ut) diff --git a/library/cpp/actors/testlib/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/testlib/ut/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..f41e1a3763 --- /dev/null +++ b/library/cpp/actors/testlib/ut/CMakeLists.linux-aarch64.txt @@ -0,0 +1,69 @@ + +# 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-testlib-ut) +target_include_directories(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib +) +target_link_libraries(library-cpp-actors-testlib-ut PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-malloc-jemalloc + cpp-testing-unittest_main + cpp-actors-testlib + cpp-actors-core +) +target_link_options(library-cpp-actors-testlib-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib/decorator_ut.cpp +) +set_property( + TARGET + library-cpp-actors-testlib-ut + PROPERTY + SPLIT_FACTOR + 10 +) +add_yunittest( + NAME + library-cpp-actors-testlib-ut + TEST_TARGET + library-cpp-actors-testlib-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-testlib-ut) diff --git a/library/cpp/actors/testlib/ut/CMakeLists.linux-x86_64.txt b/library/cpp/actors/testlib/ut/CMakeLists.linux-x86_64.txt new file mode 100644 index 0000000000..83a9b7371f --- /dev/null +++ b/library/cpp/actors/testlib/ut/CMakeLists.linux-x86_64.txt @@ -0,0 +1,71 @@ + +# 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-testlib-ut) +target_include_directories(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib +) +target_link_libraries(library-cpp-actors-testlib-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-testlib + cpp-actors-core +) +target_link_options(library-cpp-actors-testlib-ut PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib/decorator_ut.cpp +) +set_property( + TARGET + library-cpp-actors-testlib-ut + PROPERTY + SPLIT_FACTOR + 10 +) +add_yunittest( + NAME + library-cpp-actors-testlib-ut + TEST_TARGET + library-cpp-actors-testlib-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-testlib-ut) diff --git a/library/cpp/actors/testlib/ut/CMakeLists.txt b/library/cpp/actors/testlib/ut/CMakeLists.txt new file mode 100644 index 0000000000..d90657116d --- /dev/null +++ b/library/cpp/actors/testlib/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/testlib/ut/CMakeLists.windows-x86_64.txt b/library/cpp/actors/testlib/ut/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..c04f088b8a --- /dev/null +++ b/library/cpp/actors/testlib/ut/CMakeLists.windows-x86_64.txt @@ -0,0 +1,59 @@ + +# 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-testlib-ut) +target_include_directories(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib +) +target_link_libraries(library-cpp-actors-testlib-ut PUBLIC + contrib-libs-cxxsupp + yutil + cpp-malloc-system + library-cpp-cpuid_check + cpp-testing-unittest_main + cpp-actors-testlib + cpp-actors-core +) +target_sources(library-cpp-actors-testlib-ut PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/actors/testlib/decorator_ut.cpp +) +set_property( + TARGET + library-cpp-actors-testlib-ut + PROPERTY + SPLIT_FACTOR + 10 +) +add_yunittest( + NAME + library-cpp-actors-testlib-ut + TEST_TARGET + library-cpp-actors-testlib-ut + TEST_ARG + --print-before-suite + --print-before-test + --fork-tests + --print-times + --show-fails +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + LABELS + SMALL +) +set_yunittest_property( + TEST + library-cpp-actors-testlib-ut + PROPERTY + PROCESSORS + 1 +) +vcs_info(library-cpp-actors-testlib-ut) diff --git a/library/cpp/actors/testlib/ut/ya.make b/library/cpp/actors/testlib/ut/ya.make new file mode 100644 index 0000000000..ea6aef37a6 --- /dev/null +++ b/library/cpp/actors/testlib/ut/ya.make @@ -0,0 +1,15 @@ +UNITTEST_FOR(library/cpp/actors/testlib) + +FORK_SUBTESTS() +SIZE(SMALL) + + +PEERDIR( + library/cpp/actors/core +) + +SRCS( + decorator_ut.cpp +) + +END() diff --git a/library/cpp/actors/testlib/ya.make b/library/cpp/actors/testlib/ya.make new file mode 100644 index 0000000000..0bd44ddd57 --- /dev/null +++ b/library/cpp/actors/testlib/ya.make @@ -0,0 +1,23 @@ +LIBRARY() + +SRCS( + test_runtime.cpp +) + +PEERDIR( + library/cpp/actors/core + library/cpp/actors/interconnect/mock + library/cpp/actors/protos + library/cpp/random_provider + library/cpp/time_provider +) + +IF (GCC) + CFLAGS(-fno-devirtualize-speculatively) +ENDIF() + +END() + +RECURSE_FOR_TESTS( + ut +) |