mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
59411c85f6
This commit adds the Nexus test case 1_3_DPR_TC_2 which verifies Service discovery of services on Thread and Infrastructure with multiple Border Routers and multiple Thread networks, as per the Thread 1.3 test specification. The implementation includes: - tests/nexus/test_1_3_DPR_TC_2.cpp: Implements the test sequence. It sets up two isolated Thread networks, each with its own Border Router (BR_1/DUT and BR_2) and End Device (ED_1 and ED_2), attached via a shared infrastructure link. It simulates SRP registration on both networks and verifies that services can be discovered across networks using the Discovery Proxy function. - tests/nexus/verify_1_3_DPR_TC_2.py: Performs automated packet verification. It ensures both BRs correctly add SRP Server info to their respective Network Data, SRP updates are successful, and DNS queries (PTR and SRV) from one network successfully discover services in the other network through the Discovery Proxy and mDNS on the infrastructure link. - Integrated the new test into tests/nexus/CMakeLists.txt and tests/nexus/run_nexus_tests.sh. The test validates that the Border Router's Discovery Proxy can successfully discover and report services advertised by another Border Router's Advertising Proxy function across an adjacent infrastructure link.