Browse Source

tests: run short checks before slow and load scenarios

master
evgeny 6 days ago
parent
commit
3eee716b50
  1. 2
      check.bat
  2. 306
      tests/Makefile.am

2
check.bat

@ -16,7 +16,7 @@ set "TOTAL=0"
if not exist "%LOGS_DIR%" mkdir "%LOGS_DIR%" if not exist "%LOGS_DIR%" mkdir "%LOGS_DIR%"
:: List of all test executables :: List of all test executables
set "TEST_LIST=test_etcp_crypto test_crypto test_etcp_two_instances test_etcp_simple_traffic test_etcp_minimal test_etcp_100_packets test_pkt_normalizer_etcp test_pkt_normalizer_standalone test_etcp_api test_ll_queue test_ecc_encrypt test_intensive_memory_pool test_memory_pool_and_config test_packet_dump test_u_async_comprehensive test_u_async_performance test_debug_categories test_config_debug test_route_lib test_bgp_route_exchange bench_timeout_heap bench_uasync_timeouts" set "TEST_LIST=bench_timeout_heap bench_uasync_timeouts test_etcp_minimal test_u_async_performance test_packet_dump test_config_debug test_debug_categories test_memory_pool_and_config test_etcp_crypto test_route_lib test_crypto test_ecc_encrypt test_ll_queue test_intensive_memory_pool test_pkt_normalizer_standalone test_etcp_two_instances test_u_async_comprehensive test_etcp_simple_traffic test_pkt_normalizer_etcp test_etcp_100_packets test_etcp_api test_bgp_route_exchange"
echo Running tests... echo Running tests...
echo. echo.

306
tests/Makefile.am

@ -2,149 +2,182 @@
EXTRA_DIST = fixtures/reality_openssl_hello.hex data/silero_speech.pcm data/silero_speech.txt EXTRA_DIST = fixtures/reality_openssl_hello.hex data/silero_speech.pcm data/silero_speech.txt
# All available tests (check_PROGRAMS runs via automake check-TESTS) # Порядок по замерам Linux: быстрые проверки раньше длительных; состав зависит от прежних configure-условий.
# Быстрые проверки (до 100мс).
check_PROGRAMS = \ check_PROGRAMS = \
test_ll_queue \ test_memory_pool_and_config \
test_serialize \ test_serialize \
test_stream_cipher \ bench_uasync_timeouts \
test_stream_sign \ test_etcp_minimal \
test_etcp_transport \ test_sock_match \
test_transport \ test_u_async_performance \
test_stcp \ bench_timeout_heap \
test_packet_dump \ test_config_debug \
test_debug_categories \ test_debug_categories \
test_config_debug \ test_etcp_bbr \
test_memory_pool_and_config \ test_packet_dump \
test_etcp_api \ test_radio_vad \
test_etcp_crypto \ test_media_delivery_sql \
test_pkt_normalizer_standalone \ test_etcp_crypto \
test_route_lib \ test_http_proxy \
test_radix \ test_route_lib \
test_route6_lib \ test_reality_hello \
test_etcp_router_unit \ test_stream_cipher \
test_etcp_router_faults \ test_reality_record \
test_etcp_lifecycle \ test_stream_sign \
test_etcp_session \ test_reality_config \
test_topo_recovery \ test_dm \
test_etcp_minimal \ test_nat_engine \
test_ipv6_sockets \ test_opus_codec \
test_u_async_timeouts \ test_member_files \
test_u_async_comprehensive \ test_attachment \
test_etcp_two_instances \ test_media_index \
test_etcp_simple_traffic \ test_etcp_lifecycle \
test_etcp_100_packets \ test_reality_bgp \
test_etcp_reconnect \ test_tcp_proxy_client \
test_etcp_seq_collision \ test_proxy_packets \
test_pkt_normalizer_etcp \ test_media_delivery_download \
test_lwip_tcp \ test_transport \
test_u_async_performance \ test_etcp_router_unit \
test_etcp_router \ test_group_ownership \
test_etcp_router_tcp \ test_merkle_protocol \
test_etcp_router_reconnect \ test_ncd_config \
test_etcp_bbr \ test_node_snapshot \
test_etcp_ping \ test_route6_lib \
test_stcp_ping \ test_etcp_transport \
test_route_ping \ test_stcp_ping \
test_nat_detection \ test_intensive_memory_pool \
test_nat_engine \ test_ll_queue \
test_nat_transport \ test_invite_group_create \
test_nat_stress \ test_nat_transport \
test_tcp_proxy_server \ test_conn_mgr_already_connected \
test_udp_proxy \ test_udp_proxy \
test_icmp_proxy \ test_icmp_proxy \
test_proxy_packets \ test_chat_poll \
test_proxy_regressions \ test_pkt_normalizer_standalone \
test_http_proxy \ test_services \
test_tcp_proxy_client \ test_etcp_ping \
test_socks_http_proxy \ test_etcp_router_faults \
test_socks_client \ test_etcp_seq_collision \
test_bgp_route_exchange \ test_conn_mgr \
test_bgp_triangle \ test_ntp \
test_bgp_paths \ test_route_ping \
test_broadcast \ test_tcp_proxy_server \
test_conn_mgr \ test_db_sync_schema \
test_conn_mgr_phases \ test_member_adapter \
test_conn_mgr_handles \ test_chat_feedback \
test_conn_mgr_already_connected \ test_uasync_socket_race \
test_sock_match \ test_etcp_two_instances \
test_invite_group_create \ test_reality_tls \
test_etcp_connect \ test_radix \
test_node_conn_direct \ test_daemon_worker \
test_group_ownership \ test_attachment_send \
test_services \ test_conn_mgr_handles \
test_member_files \ test_tcp_io_flush
test_member_files_network \
test_group_avatar \ if OS_LINUX
test_daemon_worker \ check_PROGRAMS += \
test_group_exchange \ test_reality_fallback \
test_group_recovery \ test_etcp_padding \
test_group_connect \ test_ll_queue_regressions
test_node_snapshot \ endif
test_ncd_config \
test_db_sync \ # Короткие интеграционные проверки (до 1с).
test_db_sync_schema \ check_PROGRAMS += \
test_merkle_sync \ test_u_async_comprehensive \
test_merkle_protocol \ test_nat_detection \
test_chat_feedback \ test_audio_compressor \
test_member_adapter \ test_etcp_simple_traffic \
test_chat_sync_stress \ test_pkt_normalizer_etcp \
test_chat_join \ test_broadcast \
test_chat_join_e2e \ test_stcp_traffic \
test_dm_e2e \ test_etcp_100_packets \
test_dm_invite \ test_topo_recovery \
test_dm_media \ test_group_exchange \
test_dm_worker \ test_etcp_router_reconnect \
test_attachment \ test_ipv6_sockets \
test_attachment_send \ test_radio_headless \
test_call \ test_radio_mesh \
test_call_headless \ test_nat_stress \
test_radio \ test_stcp \
test_radio_headless \ test_call_headless \
test_radio_mesh \ test_media_delivery_full \
test_stcp_traffic \ test_media_download_timeout \
test_bbr_integration \ test_etcp_api \
test_audio_compressor \ test_tcp_io \
test_radio_vad \ test_lwip_tcp \
test_intensive_memory_pool \ test_speex_aec \
test_tcp_io \ test_db_sync \
test_uasync_socket_race \ test_media_delivery_integration \
test_ntp \ test_bgp_paths \
test_async_dns \ test_dm_invite \
test_opus_codec \ test_etcp_link_stress \
test_media_async \ test_etcp_router_tcp \
test_media_index \ test_etcp_connect \
test_media_delivery_sql \ test_call \
test_media_delivery_download \ test_etcp_router \
test_media_download_timeout \ test_dm_worker \
test_media_delivery_integration \ test_chat_join \
test_media_delivery_full \ test_bgp_route_exchange \
test_media_delivery_chat \ test_chat_sync_stress \
test_etcp_link_stress \ test_node_conn_direct
test_reality_tls \
test_reality_record \
test_reality_hello \
test_reality_bgp \
test_reality_config \
test_dm \
bench_timeout_heap \
bench_uasync_timeouts
# Linux-only: test_auto_socket_dynamic требует root + dummy-интерфейсы + iproute2/netlink.
if OS_LINUX if OS_LINUX
check_PROGRAMS += test_auto_socket_dynamic test_standby test_standby_transport test_group_connect_standby test_android_udp_log test_pool_corruption_log check_PROGRAMS += \
check_PROGRAMS += test_reality_fallback test_stcp_reality_rotation test_uasync_regressions test_ll_queue_regressions test_etcp_padding test_uasync_regressions \
check_PROGRAMS += test_android_replies test_stcp_reality_rotation \
check_PROGRAMS += test_uasync_load test_android_udp_log \
test_pool_corruption_log \
test_android_replies
endif endif
# Silero VAD: только при включённом ONNX Runtime (--with-silero-vad) # Проверки до 3с.
check_PROGRAMS += \
test_socks_client \
test_u_async_timeouts \
test_async_dns \
test_chat_poll_network \
test_group_avatar \
test_dm_e2e \
test_media_async \
test_bgp_triangle \
test_group_recovery \
test_etcp_session \
test_chat_join_e2e \
test_media_delivery_chat \
test_member_files_network \
test_group_connect \
test_etcp_reconnect \
test_conn_mgr_phases \
test_socks_http_proxy
if OS_LINUX
check_PROGRAMS += \
test_standby_transport \
test_group_connect_standby
endif
# Длительные проверки и нагрузка.
check_PROGRAMS += \
test_proxy_regressions \
test_radio \
test_bbr_integration \
test_dm_media \
test_merkle_sync
if OS_LINUX
check_PROGRAMS += \
test_standby \
test_uasync_load \
test_auto_socket_dynamic
endif
# ONNX Runtime: без измерений относим дополнительный VAD-тест к длительным.
if HAVE_SILERO_VAD if HAVE_SILERO_VAD
check_PROGRAMS += test_silero_vad check_PROGRAMS += test_silero_vad
endif endif
# AEC (SpeexDSP): всегда (без внешних зависимостей)
check_PROGRAMS += test_speex_aec
# Долгие тесты: запускаются только вручную # Долгие тесты: запускаются только вручную
noinst_PROGRAMS = noinst_PROGRAMS =
EXTRA_PROGRAMS = test_merkle_sync_stress EXTRA_PROGRAMS = test_merkle_sync_stress
@ -812,16 +845,13 @@ test_proxy_regressions_LDFLAGS = -Wl,--wrap=etcp_route_send -Wl,--wrap=uasync_se
test_http_proxy_SOURCES = test_http_proxy.c ../src/proxy/http_proxy.c test_http_proxy_SOURCES = test_http_proxy.c ../src/proxy/http_proxy.c
test_http_proxy_LDADD = $(COMMON_LIBS) test_http_proxy_LDADD = $(COMMON_LIBS)
check_PROGRAMS += test_tcp_io_flush
test_tcp_io_flush_SOURCES = test_tcp_io_flush.c test_tcp_io_flush_SOURCES = test_tcp_io_flush.c
test_tcp_io_flush_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS) test_tcp_io_flush_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS)
check_PROGRAMS += test_chat_poll
test_chat_poll_SOURCES = test_chat_poll.c test_chat_poll_SOURCES = test_chat_poll.c
test_chat_poll_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/chat -I$(top_srcdir)/lib test_chat_poll_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/chat -I$(top_srcdir)/lib
test_chat_poll_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS) test_chat_poll_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS)
check_PROGRAMS += test_chat_poll_network
test_chat_poll_network_SOURCES = test_chat_poll_network.c test_chat_poll_network_SOURCES = test_chat_poll_network.c
test_chat_poll_network_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/chat -I$(top_srcdir)/lib test_chat_poll_network_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/chat -I$(top_srcdir)/lib
test_chat_poll_network_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS) test_chat_poll_network_LDADD = $(LIBUTUN) $(CRYPTO_LIBS) $(COMMON_LIBS)

Loading…
Cancel
Save