1# OpenThread Border Router Tests 2 3## Run Border Router (BR) tests locally 4 5BR tests run in isolated Docker network and containers, so a new OTBR Docker image needs to be created before running these tests: 6 7```shell 8# Use root privilege when necessary. 9 10# Download OpenThread's branch of wireshark. Run this for the first time. 11./script/test get_thread_wireshark 12 13# Clear current OpenThread directory (remember to add new source files). 14git clean -xfd 15 16# Rebuild the OTBR Docker image if OTBR source code is updated. 17LOCAL_OTBR_DIR=$HOME/ot-br-posix ./script/test build_otbr_docker 18 19# Build simulated OpenThread firmware. 20VIRTUAL_TIME=0 ./script/test build 21 22# Run the BR tests locally. 23TEST_CASE=./tests/scripts/thread-cert/border_router/test_advertising_proxy.py 24VERBOSE=1 PACKET_VERIFICATION=1 VIRTUAL_TIME=0 ./script/test cert_suite ${TEST_CASE} 25``` 26