Files
openthread/tests/scripts/thread-cert/border_router
Abtin Keshavarzian f560c35fab [test] relax checks in test_publish_meshcop_service (#11526)
This commit updates `test_publish_meshcop_service` to relax the checks
when verifying mDNS browse response. Specifically, after `br1` is factory
reset, the Border Agent and other functions are not given the chance
to stop properly and remove previously registered mDNS entries. This
can result in stale entries remaining in the mDNS cache, leading to
more service entries appearing in `browse` results. This commit
relaxes the check from `assertEqual` to `assertGreaterEqual`,
allowing the test to pass when additional entries are observed.
2025-05-22 19:17:23 -07:00
..

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}