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/core | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/actors/core')
-rw-r--r-- | library/cpp/actors/core/ut/ya.make | 43 | ||||
-rw-r--r-- | library/cpp/actors/core/ya.make | 131 |
2 files changed, 174 insertions, 0 deletions
diff --git a/library/cpp/actors/core/ut/ya.make b/library/cpp/actors/core/ut/ya.make new file mode 100644 index 0000000000..44803e7619 --- /dev/null +++ b/library/cpp/actors/core/ut/ya.make @@ -0,0 +1,43 @@ +UNITTEST_FOR(library/cpp/actors/core) + +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 +) + +SRCS( + actor_coroutine_ut.cpp + benchmark_ut.cpp + actor_ut.cpp + actorsystem_ut.cpp + performance_ut.cpp + ask_ut.cpp + balancer_ut.cpp + event_pb_payload_ut.cpp + event_pb_ut.cpp + executor_pool_basic_ut.cpp + executor_pool_united_ut.cpp + log_ut.cpp + mon_ut.cpp + scheduler_actor_ut.cpp +) + +END() diff --git a/library/cpp/actors/core/ya.make b/library/cpp/actors/core/ya.make new file mode 100644 index 0000000000..d5a67c03a5 --- /dev/null +++ b/library/cpp/actors/core/ya.make @@ -0,0 +1,131 @@ +LIBRARY() + +NO_WSHADOW() + +IF (PROFILE_MEMORY_ALLOCATIONS) + CFLAGS(-DPROFILE_MEMORY_ALLOCATIONS) +ENDIF() + +IF (ALLOCATOR == "B" OR ALLOCATOR == "BS" OR ALLOCATOR == "C") + CXXFLAGS(-DBALLOC) + PEERDIR( + library/cpp/balloc/optional + ) +ENDIF() + +SRCS( + actor_bootstrapped.cpp + actor_coroutine.cpp + actor_coroutine.h + actor.cpp + actor.h + actor_virtual.cpp + actorid.cpp + actorid.h + actorsystem.cpp + actorsystem.h + ask.cpp + ask.h + av_bootstrapped.cpp + balancer.h + balancer.cpp + buffer.cpp + buffer.h + callstack.cpp + callstack.h + config.h + cpu_manager.cpp + cpu_manager.h + cpu_state.h + defs.h + event.cpp + event.h + event_load.h + event_local.h + event_pb.cpp + event_pb.h + events.h + events_undelivered.cpp + executelater.h + executor_pool_base.cpp + executor_pool_base.h + executor_pool_basic.cpp + executor_pool_basic.h + executor_pool_io.cpp + executor_pool_io.h + executor_pool_united.cpp + executor_pool_united.h + executor_thread.cpp + executor_thread.h + harmonizer.cpp + harmonizer.h + hfunc.h + interconnect.cpp + interconnect.h + invoke.h + io_dispatcher.cpp + io_dispatcher.h + lease.h + log.cpp + log.h + log_settings.cpp + log_settings.h + log_buffer.cpp + log_buffer.h + log_metrics.h + mailbox.cpp + mailbox.h + mailbox_queue_revolving.h + mailbox_queue_simple.h + mon.h + mon_stats.h + monotonic.cpp + monotonic.h + monotonic_provider.cpp + monotonic_provider.h + worker_context.cpp + worker_context.h + probes.cpp + probes.h + process_stats.cpp + process_stats.h + scheduler_actor.cpp + scheduler_actor.h + scheduler_basic.cpp + scheduler_basic.h + scheduler_cookie.cpp + scheduler_cookie.h + scheduler_queue.h + servicemap.h +) + +GENERATE_ENUM_SERIALIZATION(defs.h) +GENERATE_ENUM_SERIALIZATION(actor.h) +GENERATE_ENUM_SERIALIZATION(log_iface.h) + +PEERDIR( + library/cpp/actors/memory_log + library/cpp/actors/prof + library/cpp/actors/protos + library/cpp/actors/util + library/cpp/execprofile + library/cpp/json/writer + library/cpp/logger + library/cpp/lwtrace + library/cpp/monlib/dynamic_counters + library/cpp/svnversion + library/cpp/time_provider + library/cpp/threading/future +) + +IF (SANITIZER_TYPE == "thread") + SUPPRESSIONS( + tsan.supp + ) +ENDIF() + +END() + +RECURSE_FOR_TESTS( + ut +) |