From c24412276f1d8d6e85966c8a3d43c417a4e0b128 Mon Sep 17 00:00:00 2001 From: evgeny Date: Wed, 4 Nov 2026 01:15:57 +0100 Subject: [PATCH] Run STREAM relay scenarios as an independent integration target --- tests/Makefile.am | 7 +++++++ tests/test_stream_service.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 66b059821..3a05cea95 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -147,6 +147,7 @@ check_PROGRAMS += \ test_android_stream \ test_stream_service \ test_stream_member \ + test_stream_relay \ test_stream_publisher \ test_call_admission \ test_u_async_comprehensive \ @@ -786,6 +787,12 @@ test_stream_member_CFLAGS = $(AM_CFLAGS) -DSTREAM_MEMBER_TEST_ONLY test_stream_member_LDADD = $(test_stream_service_LDADD) test_stream_member_LDFLAGS = $(test_stream_service_LDFLAGS) +# Длинная гонка ретрансляторов изолирована от остальных сценариев и укладывается в общий timeout. +test_stream_relay_SOURCES = $(test_stream_service_SOURCES) +test_stream_relay_CFLAGS = $(AM_CFLAGS) -DSTREAM_RELAY_TEST_ONLY +test_stream_relay_LDADD = $(test_stream_service_LDADD) +test_stream_relay_LDFLAGS = $(test_stream_service_LDFLAGS) + test_stream_publisher_SOURCES = test_stream_publisher.c $(test_clock_sources) test_stream_publisher_LDADD = $(LIBUTUN) $(COMMON_LIBS) test_stream_publisher_LDFLAGS = $(test_clock_ldflags) diff --git a/tests/test_stream_service.c b/tests/test_stream_service.c index 6d9314c4a..5550b2633 100644 --- a/tests/test_stream_service.c +++ b/tests/test_stream_service.c @@ -2577,6 +2577,8 @@ int main(int argc, char **argv) { const char *mode = argc == 2 ? argv[1] : NULL; #ifdef STREAM_MEMBER_TEST_ONLY mode = "--member-only"; +#elif defined(STREAM_RELAY_TEST_ONLY) + mode = "--relay-only"; #endif if (mode && (!strcmp(mode, "--relay-only") || !strcmp(mode, "--lifecycle-only") || !strcmp(mode, "--wake-only") || !strcmp(mode, "--bootstrap-only") || !strcmp(mode, "--recovery-only") || !strcmp(mode, "--member-only") @@ -2645,7 +2647,6 @@ int main(int argc, char **argv) { test_pressure(); test_global_pressure(); test_automatic(); - test_supernode_relay(); test_pending_down(); /* Независимая GROUP2-подписка требует собственного BGP-пути, а не только записи профиля в общей БД. */