aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/helpers
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/actors/helpers
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/actors/helpers')
-rw-r--r--library/cpp/actors/helpers/CMakeLists.darwin-x86_64.txt1
-rw-r--r--library/cpp/actors/helpers/CMakeLists.linux-aarch64.txt1
-rw-r--r--library/cpp/actors/helpers/CMakeLists.linux-x86_64.txt1
-rw-r--r--library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt1
-rw-r--r--library/cpp/actors/helpers/ut/CMakeLists.darwin-x86_64.txt76
-rw-r--r--library/cpp/actors/helpers/ut/CMakeLists.linux-aarch64.txt78
-rw-r--r--library/cpp/actors/helpers/ut/CMakeLists.linux-x86_64.txt80
-rw-r--r--library/cpp/actors/helpers/ut/CMakeLists.txt17
-rw-r--r--library/cpp/actors/helpers/ut/CMakeLists.windows-x86_64.txt68
-rw-r--r--library/cpp/actors/helpers/ut/ya.make31
-rw-r--r--library/cpp/actors/helpers/ya.make23
11 files changed, 377 insertions, 0 deletions
diff --git a/library/cpp/actors/helpers/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/helpers/CMakeLists.darwin-x86_64.txt
index 16ecfc7b98c..7367c0b9252 100644
--- a/library/cpp/actors/helpers/CMakeLists.darwin-x86_64.txt
+++ b/library/cpp/actors/helpers/CMakeLists.darwin-x86_64.txt
@@ -6,6 +6,7 @@
# original buildsystem will not be accepted.
+add_subdirectory(ut)
add_library(cpp-actors-helpers)
target_link_libraries(cpp-actors-helpers PUBLIC
diff --git a/library/cpp/actors/helpers/CMakeLists.linux-aarch64.txt b/library/cpp/actors/helpers/CMakeLists.linux-aarch64.txt
index b00db82fdec..da8ce6e8e60 100644
--- a/library/cpp/actors/helpers/CMakeLists.linux-aarch64.txt
+++ b/library/cpp/actors/helpers/CMakeLists.linux-aarch64.txt
@@ -6,6 +6,7 @@
# original buildsystem will not be accepted.
+add_subdirectory(ut)
add_library(cpp-actors-helpers)
target_link_libraries(cpp-actors-helpers PUBLIC
diff --git a/library/cpp/actors/helpers/CMakeLists.linux-x86_64.txt b/library/cpp/actors/helpers/CMakeLists.linux-x86_64.txt
index b00db82fdec..da8ce6e8e60 100644
--- a/library/cpp/actors/helpers/CMakeLists.linux-x86_64.txt
+++ b/library/cpp/actors/helpers/CMakeLists.linux-x86_64.txt
@@ -6,6 +6,7 @@
# original buildsystem will not be accepted.
+add_subdirectory(ut)
add_library(cpp-actors-helpers)
target_link_libraries(cpp-actors-helpers PUBLIC
diff --git a/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt b/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt
index 16ecfc7b98c..7367c0b9252 100644
--- a/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt
+++ b/library/cpp/actors/helpers/CMakeLists.windows-x86_64.txt
@@ -6,6 +6,7 @@
# original buildsystem will not be accepted.
+add_subdirectory(ut)
add_library(cpp-actors-helpers)
target_link_libraries(cpp-actors-helpers PUBLIC
diff --git a/library/cpp/actors/helpers/ut/CMakeLists.darwin-x86_64.txt b/library/cpp/actors/helpers/ut/CMakeLists.darwin-x86_64.txt
new file mode 100644
index 00000000000..d00adbcb1e2
--- /dev/null
+++ b/library/cpp/actors/helpers/ut/CMakeLists.darwin-x86_64.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-helpers-ut)
+target_include_directories(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers
+)
+target_link_libraries(library-cpp-actors-helpers-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-system
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ cpp-actors-helpers
+ cpp-actors-interconnect
+ cpp-actors-testlib
+ cpp-actors-core
+)
+target_link_options(library-cpp-actors-helpers-ut PRIVATE
+ -Wl,-no_deduplicate
+ -Wl,-sdk_version,10.15
+ -fPIC
+ -fPIC
+ -framework
+ CoreFoundation
+)
+target_sources(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/selfping_actor_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 10
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-helpers-ut
+ TEST_TARGET
+ library-cpp-actors-helpers-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ LABELS
+ MEDIUM
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ TIMEOUT
+ 600
+)
+vcs_info(library-cpp-actors-helpers-ut)
diff --git a/library/cpp/actors/helpers/ut/CMakeLists.linux-aarch64.txt b/library/cpp/actors/helpers/ut/CMakeLists.linux-aarch64.txt
new file mode 100644
index 00000000000..7222f8dc5c9
--- /dev/null
+++ b/library/cpp/actors/helpers/ut/CMakeLists.linux-aarch64.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-helpers-ut)
+target_include_directories(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers
+)
+target_link_libraries(library-cpp-actors-helpers-ut PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-jemalloc
+ cpp-testing-unittest_main
+ cpp-actors-helpers
+ cpp-actors-interconnect
+ cpp-actors-testlib
+ cpp-actors-core
+)
+target_link_options(library-cpp-actors-helpers-ut PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+ -lrt
+ -ldl
+)
+target_sources(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/selfping_actor_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 10
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-helpers-ut
+ TEST_TARGET
+ library-cpp-actors-helpers-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ LABELS
+ MEDIUM
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ TIMEOUT
+ 600
+)
+vcs_info(library-cpp-actors-helpers-ut)
diff --git a/library/cpp/actors/helpers/ut/CMakeLists.linux-x86_64.txt b/library/cpp/actors/helpers/ut/CMakeLists.linux-x86_64.txt
new file mode 100644
index 00000000000..e2894e9b9d1
--- /dev/null
+++ b/library/cpp/actors/helpers/ut/CMakeLists.linux-x86_64.txt
@@ -0,0 +1,80 @@
+
+# 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-helpers-ut)
+target_include_directories(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers
+)
+target_link_libraries(library-cpp-actors-helpers-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-helpers
+ cpp-actors-interconnect
+ cpp-actors-testlib
+ cpp-actors-core
+)
+target_link_options(library-cpp-actors-helpers-ut PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+ -lrt
+ -ldl
+)
+target_sources(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/selfping_actor_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 10
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-helpers-ut
+ TEST_TARGET
+ library-cpp-actors-helpers-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ LABELS
+ MEDIUM
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ TIMEOUT
+ 600
+)
+vcs_info(library-cpp-actors-helpers-ut)
diff --git a/library/cpp/actors/helpers/ut/CMakeLists.txt b/library/cpp/actors/helpers/ut/CMakeLists.txt
new file mode 100644
index 00000000000..d90657116d0
--- /dev/null
+++ b/library/cpp/actors/helpers/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/helpers/ut/CMakeLists.windows-x86_64.txt b/library/cpp/actors/helpers/ut/CMakeLists.windows-x86_64.txt
new file mode 100644
index 00000000000..aa3e413f046
--- /dev/null
+++ b/library/cpp/actors/helpers/ut/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,68 @@
+
+# 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-helpers-ut)
+target_include_directories(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers
+)
+target_link_libraries(library-cpp-actors-helpers-ut PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-malloc-system
+ library-cpp-cpuid_check
+ cpp-testing-unittest_main
+ cpp-actors-helpers
+ cpp-actors-interconnect
+ cpp-actors-testlib
+ cpp-actors-core
+)
+target_sources(library-cpp-actors-helpers-ut PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/actors/helpers/selfping_actor_ut.cpp
+)
+set_property(
+ TARGET
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ SPLIT_FACTOR
+ 10
+)
+add_yunittest(
+ NAME
+ library-cpp-actors-helpers-ut
+ TEST_TARGET
+ library-cpp-actors-helpers-ut
+ TEST_ARG
+ --print-before-suite
+ --print-before-test
+ --fork-tests
+ --print-times
+ --show-fails
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ LABELS
+ MEDIUM
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ PROCESSORS
+ 1
+)
+set_yunittest_property(
+ TEST
+ library-cpp-actors-helpers-ut
+ PROPERTY
+ TIMEOUT
+ 600
+)
+vcs_info(library-cpp-actors-helpers-ut)
diff --git a/library/cpp/actors/helpers/ut/ya.make b/library/cpp/actors/helpers/ut/ya.make
new file mode 100644
index 00000000000..10b298bb729
--- /dev/null
+++ b/library/cpp/actors/helpers/ut/ya.make
@@ -0,0 +1,31 @@
+UNITTEST_FOR(library/cpp/actors/helpers)
+
+FORK_SUBTESTS()
+IF (SANITIZER_TYPE)
+ SIZE(LARGE)
+ TIMEOUT(1200)
+ TAG(ya:fat)
+ SPLIT_FACTOR(20)
+ REQUIREMENTS(
+ ram:32
+ )
+ELSE()
+ SIZE(MEDIUM)
+ TIMEOUT(600)
+ REQUIREMENTS(
+ ram:16
+ )
+ENDIF()
+
+
+PEERDIR(
+ library/cpp/actors/interconnect
+ library/cpp/actors/testlib
+ library/cpp/actors/core
+)
+
+SRCS(
+ selfping_actor_ut.cpp
+)
+
+END()
diff --git a/library/cpp/actors/helpers/ya.make b/library/cpp/actors/helpers/ya.make
new file mode 100644
index 00000000000..94acdca7261
--- /dev/null
+++ b/library/cpp/actors/helpers/ya.make
@@ -0,0 +1,23 @@
+LIBRARY()
+
+SRCS(
+ activeactors.cpp
+ activeactors.h
+ flow_controlled_queue.cpp
+ flow_controlled_queue.h
+ future_callback.h
+ mon_histogram_helper.h
+ selfping_actor.cpp
+)
+
+PEERDIR(
+ library/cpp/actors/core
+ library/cpp/monlib/dynamic_counters
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
+