Skip to content

tests/netstack: host gates for the #38 multicast fan-out, both topologies - #69

Merged
tinic merged 1 commit into
mainfrom
test/mcast-share-host-gates
Sep 26, 2026
Merged

tinic merged 1 commit into
mainfrom
test/mcast-share-host-gates

Conversation

@tinic

@tinic tinic commented Sep 26, 2026

Copy link
Copy Markdown
Owner

What

Two host tests pin the NetX Duo shared-socket multicast fan-out at the netxduo layer, in both topologies:

  • test_mcast_share_loopback — responder-primary (3 sockets): the multicast clone reaches the co-bound sibling.
  • test_mcast_share_2sock — sender-is-primary (2 sockets): the shape t_test_udp_reuseport actually drives on the guest.

Why

The guest's sender-is-primary fan-out had no host coverage; the missing-a1 test-helper clobber (fixed in #68) hid that gap and made the fan-out look broken when it was not. These lock the real send/loopback/fan-out path, both topologies, so a future regression there fails on the host.

Changes

  • tests/netstack/host/test_mcast_share_2sock_host.c (new)
  • tests/netstack/host/test_mcast_share_loopback_host.c (new)
  • tests/netstack/CMakeLists.txt — shared netxduo source list, both executables + ctest entries
  • tools/ci.sh — HOST_TESTS_EXPECTED 462 → 464 (no non-x86 change; netstack host tests build on all arches like test_bcast_loopback)

Verification

Focused host run on landed main (33abf15f): ctest -N = 464 (expected 464), mcast_share_loopback + mcast_share_2sock both pass, host stage green (100% tests passed, 0 tests failed out of 464).

🤖 Generated with Claude Code

…gies

The guest t_test_udp_reuseport drives a sender-is-primary fan-out that no
host test covered; the missing-a1 test-helper clobber hid that gap.  Add
test_mcast_share_2sock (the sender is the port-list primary, the guest's
shape) next to test_mcast_share_loopback (responder primary), both against
the real netxduo fan-out, and raise HOST_TESTS_EXPECTED to 464.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@tinic
tinic merged commit 7108650 into main Sep 26, 2026
41 of 42 checks passed
@tinic
tinic deleted the test/mcast-share-host-gates branch September 26, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant