mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
a51677de94
This commit migrates the test_srp_register_500_services.py test from the thread-cert test suite to the Nexus platform. The new C++ test (tests/nexus/test_srp_scale.cpp) implements the same functionality: it verifies that 25 SRP clients (13 routers and 12 FEDs) can successfully register a total of 500 services (20 services per client) with a single SRP server (the leader). The commit includes: - Removal of the original Python test file. - Addition of the new Nexus C++ test file. - Integration of the new test into CMakeLists.txt and run_nexus_tests.sh.
OpenThread Border Router Tests
Run Border Router (BR) tests locally
BR tests run in isolated Docker network and containers, so a new OTBR Docker image needs to be created before running these tests:
# Use root privilege when necessary.
# Download OpenThread's branch of wireshark. Run this for the first time.
./script/test get_thread_wireshark
# Clear current OpenThread directory (remember to add new source files).
git clean -xfd
# Rebuild the OTBR Docker image if OTBR source code is updated.
LOCAL_OTBR_DIR=$HOME/ot-br-posix ./script/test build_otbr_docker
# Build simulated OpenThread firmware.
VIRTUAL_TIME=0 ./script/test build
# Run the BR tests locally.
TEST_CASE=./tests/scripts/thread-cert/border_router/test_advertising_proxy.py
VERBOSE=1 PACKET_VERIFICATION=1 VIRTUAL_TIME=0 ./script/test cert_suite ${TEST_CASE}