Run STREAM relay scenarios as an independent integration target

This commit is contained in:
evgeny committed 2026-11-04 01:15:57 +01:00
1 parent 96410eb606
commit c24412276f
2 files changed
+9 -1

No files matched your search

+7
View File
@@ -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)
+2 -1
View File
@@ -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-пути, а не только записи профиля в общей БД. */