mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
1b78d18c13
This commit adds the Nexus test case 1_3_DPR_TC_1 which verifies Discovery Proxy functionality on a Border Router, as per the Thread 1.3 test specification. The implementation includes: - tests/nexus/test_1_3_DPR_TC_1.cpp: Implements the test sequence. It sets up a topology with a Border Router (BR_1), a Thread End Device (ED_1), and an infrastructure node (Eth_1). It simulates Eth_1 advertising services via mDNS and ED_1 querying for those services through the BR's Discovery Proxy. - tests/nexus/verify_1_3_DPR_TC_1.py: Performs automated packet verification. It ensures the BR correctly adds SRP Server info to Network Data, Eth_1 advertises services, and ED_1 receives a valid DNS response from the BR containing the discovered infrastructure services. - tests/nexus/openthread-core-nexus-config.h: Enables the OPENTHREAD_CONFIG_DNSSD_DISCOVERY_PROXY_ENABLE configuration to support Discovery Proxy testing in the Nexus environment. - 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 from the infrastructure link to Thread devices.