diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/actors/interconnect | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/actors/interconnect')
-rw-r--r-- | library/cpp/actors/interconnect/mock/ya.make | 14 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ut/lib/ya.make | 10 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ut/protos/ya.make | 9 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ut/ya.make | 32 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ut_fat/ya.make | 21 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ut_huge_cluster/ya.make | 34 | ||||
-rw-r--r-- | library/cpp/actors/interconnect/ya.make | 96 |
7 files changed, 216 insertions, 0 deletions
diff --git a/library/cpp/actors/interconnect/mock/ya.make b/library/cpp/actors/interconnect/mock/ya.make new file mode 100644 index 0000000000..d097e3f094 --- /dev/null +++ b/library/cpp/actors/interconnect/mock/ya.make @@ -0,0 +1,14 @@ +LIBRARY() + +SRCS( + ic_mock.cpp + ic_mock.h +) + +SUPPRESSIONS(tsan.supp) + +PEERDIR( + library/cpp/actors/interconnect +) + +END() diff --git a/library/cpp/actors/interconnect/ut/lib/ya.make b/library/cpp/actors/interconnect/ut/lib/ya.make new file mode 100644 index 0000000000..615c6a0e54 --- /dev/null +++ b/library/cpp/actors/interconnect/ut/lib/ya.make @@ -0,0 +1,10 @@ +LIBRARY() + +SRCS( + node.h + test_events.h + test_actors.h + ic_test_cluster.h +) + +END() diff --git a/library/cpp/actors/interconnect/ut/protos/ya.make b/library/cpp/actors/interconnect/ut/protos/ya.make new file mode 100644 index 0000000000..a7ffcd6bd0 --- /dev/null +++ b/library/cpp/actors/interconnect/ut/protos/ya.make @@ -0,0 +1,9 @@ +PROTO_LIBRARY() + +SRCS( + interconnect_test.proto +) + +EXCLUDE_TAGS(GO_PROTO) + +END() diff --git a/library/cpp/actors/interconnect/ut/ya.make b/library/cpp/actors/interconnect/ut/ya.make new file mode 100644 index 0000000000..d524fc69f0 --- /dev/null +++ b/library/cpp/actors/interconnect/ut/ya.make @@ -0,0 +1,32 @@ +UNITTEST() + +IF (SANITIZER_TYPE == "thread") + TIMEOUT(1200) + SIZE(LARGE) + TAG(ya:fat) +ELSE() + TIMEOUT(600) + SIZE(MEDIUM) +ENDIF() + +SRCS( + channel_scheduler_ut.cpp + event_holder_pool_ut.cpp + interconnect_ut.cpp + large.cpp + outgoing_stream_ut.cpp + poller_actor_ut.cpp + dynamic_proxy_ut.cpp +) + +PEERDIR( + library/cpp/actors/core + library/cpp/actors/interconnect + library/cpp/actors/interconnect/ut/lib + library/cpp/actors/interconnect/ut/protos + library/cpp/actors/testlib + library/cpp/digest/md5 + library/cpp/testing/unittest +) + +END() diff --git a/library/cpp/actors/interconnect/ut_fat/ya.make b/library/cpp/actors/interconnect/ut_fat/ya.make new file mode 100644 index 0000000000..8361c5d9f7 --- /dev/null +++ b/library/cpp/actors/interconnect/ut_fat/ya.make @@ -0,0 +1,21 @@ +UNITTEST() + +SIZE(LARGE) + +TAG(ya:fat) + +SRCS( + main.cpp +) + +PEERDIR( + library/cpp/actors/core + library/cpp/actors/interconnect + library/cpp/actors/interconnect/mock + library/cpp/actors/interconnect/ut/lib + library/cpp/actors/interconnect/ut/protos + library/cpp/testing/unittest + library/cpp/deprecated/atomic +) + +END() diff --git a/library/cpp/actors/interconnect/ut_huge_cluster/ya.make b/library/cpp/actors/interconnect/ut_huge_cluster/ya.make new file mode 100644 index 0000000000..828783323d --- /dev/null +++ b/library/cpp/actors/interconnect/ut_huge_cluster/ya.make @@ -0,0 +1,34 @@ +UNITTEST() + +IF (SANITIZER_TYPE OR WITH_VALGRIND) + TIMEOUT(3600) + SIZE(LARGE) + TAG(ya:fat) +ELSE() + TIMEOUT(600) + SIZE(MEDIUM) +ENDIF() + +IF (BUILD_TYPE == "RELEASE" OR BUILD_TYPE == "RELWITHDEBINFO") + SRCS( + huge_cluster.cpp + ) +ELSE () + MESSAGE(WARNING "It takes too much time to run test in DEBUG mode, some tests are skipped") +ENDIF () + +PEERDIR( + library/cpp/actors/core + library/cpp/actors/interconnect + library/cpp/actors/interconnect/ut/lib + library/cpp/actors/interconnect/ut/protos + library/cpp/testing/unittest + library/cpp/actors/testlib +) + +REQUIREMENTS( + cpu:4 + ram:32 +) + +END() diff --git a/library/cpp/actors/interconnect/ya.make b/library/cpp/actors/interconnect/ya.make new file mode 100644 index 0000000000..11355c710c --- /dev/null +++ b/library/cpp/actors/interconnect/ya.make @@ -0,0 +1,96 @@ +LIBRARY() + +NO_WSHADOW() + +IF (PROFILE_MEMORY_ALLOCATIONS) + CFLAGS(-DPROFILE_MEMORY_ALLOCATIONS) +ENDIF() + +SRCS( + channel_scheduler.h + event_filter.h + event_holder_pool.h + events_local.h + interconnect_address.cpp + interconnect_address.h + interconnect_channel.cpp + interconnect_channel.h + interconnect_common.h + interconnect_counters.cpp + interconnect.h + interconnect_handshake.cpp + interconnect_handshake.h + interconnect_impl.h + interconnect_mon.cpp + interconnect_mon.h + interconnect_nameserver_dynamic.cpp + interconnect_nameserver_table.cpp + interconnect_proxy_wrapper.cpp + interconnect_proxy_wrapper.h + interconnect_resolve.cpp + interconnect_stream.cpp + interconnect_stream.h + interconnect_tcp_input_session.cpp + interconnect_tcp_proxy.cpp + interconnect_tcp_proxy.h + interconnect_tcp_server.cpp + interconnect_tcp_server.h + interconnect_tcp_session.cpp + interconnect_tcp_session.h + load.cpp + load.h + logging.h + packet.cpp + packet.h + poller_actor.cpp + poller_actor.h + poller.h + poller_tcp.cpp + poller_tcp.h + poller_tcp_unit.cpp + poller_tcp_unit.h + poller_tcp_unit_select.cpp + poller_tcp_unit_select.h + profiler.h + slowpoke_actor.h + types.cpp + types.h + watchdog_timer.h +) + +IF (OS_LINUX) + SRCS( + poller_tcp_unit_epoll.cpp + poller_tcp_unit_epoll.h + ) +ENDIF() + +PEERDIR( + contrib/libs/libc_compat + contrib/libs/openssl + contrib/libs/xxhash + library/cpp/actors/core + library/cpp/actors/dnscachelib + library/cpp/actors/dnsresolver + library/cpp/actors/helpers + library/cpp/actors/prof + library/cpp/actors/protos + library/cpp/actors/util + library/cpp/actors/wilson + library/cpp/digest/crc32c + library/cpp/json + library/cpp/lwtrace + library/cpp/monlib/dynamic_counters + library/cpp/monlib/metrics + library/cpp/monlib/service/pages/tablesorter + library/cpp/openssl/init + library/cpp/packedtypes +) + +END() + +RECURSE_FOR_TESTS( + ut + ut_fat + ut_huge_cluster +) |