Lines Matching +full:otbr +full:- +full:agent

29 # Test build and run otbr dbus server
32 set -euxo pipefail
34 OTBR_DBUS_SERVER_CONF=otbr-test-agent.conf
41 sudo systemctl stop test-otbr-agent || true
42 if [[ -v LEADER_PID ]]; then
45 if [[ -v CHILD_PID ]]; then
48 sudo killall dbus-monitor || true
49 sudo rm "/etc/dbus-1/system.d/${OTBR_DBUS_SERVER_CONF}" || true
51 sed -n "/$TEST_HELLO/,\$p" /var/log/syslog | grep 'ot-cli\|otbr'
58 sudo "${CMAKE_BINARY_DIR}"/third_party/openthread/repo/src/posix/ot-ctl "$@"
64 timeout 2 bash -c "while ! ot_ctl state; do sleep 1; done"
69 if command -v dns-sd; then
70 timeout 5 dns-sd -Z _meshcop._udp local. || true
72 avahi-browse -aprt || true
78 …do gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRouter…
81 grep --binary-files=text "nn=OpenThread" <<<"${service}"
83 …do gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRouter…
86 grep --binary-files=text "vn=vendor" <<<"${service}"
88 …do gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRouter…
91 grep --binary-files=text "vn=OpenThread" <<<"${service}"
93 …do gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRouter…
96 grep --binary-files=text "A=abc" <<<"${service}"
97 grep --binary-files=text "B=12" <<<"${service}"
99 …sudo gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRout…
102 grep --binary-files=text "A=abc" <<<"${service}"
103 grep --binary-files=text "B=12" <<<"${service}"
105 …do gdbus call --system --dest io.openthread.BorderRouter.wpan0 --method=io.openthread.BorderRouter…
108 grep --binary-files=text "A=ac" <<<"${service}"
109 grep --binary-files=text "B=12" <<<"${service}"
118 ot_version=$(ot_ctl version | grep -oE '^OPENTHREAD.*$' | tr -d '\r\n')
119 rcp_version=$(ot_ctl rcp version | grep -oE '^OPENTHREAD.*$' | tr -d '\r\n')
120 thread_version=$(ot_ctl thread version | grep -oE '^[0-9]+' | tr -d '\r\n')
137 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --print-reply \
141 | grep -oPz "${result_pattern}"
146 local -r EXIT_CODE_SHOULD_RESTART=7
148-run --collect --no-ask-password -u test-otbr-agent -p "RestartForceExitStatus=$EXIT_CODE_SHOULD_R…
149 timeout 2 bash -c "while ! ot_ctl state; do sleep 1; done"
156 [[ -f /etc/dbus-1/system.d/"${OTBR_DBUS_SERVER_CONF}" ]] || {
158 …mkdir -p "${PWD}/${CONFIG_FILE_PATH}" && cp "${PROJECT_SOURCE_DIR}/${CONFIG_FILE_PATH}/openthread.…
160 sudo rm -rf tmp
161 …sudo install -m 644 "${CMAKE_BINARY_DIR}"/src/agent/otbr-agent.conf /etc/dbus-1/system.d/"${OTBR_D…
166 sudo systemctl start avahi-daemon
168 export -f ot_ctl
176 spawn dbus-monitor --system path=/io/openthread/BorderRouter/wpan0,member=Ready
178 spawn ${CMAKE_BINARY_DIR}/src/agent/otbr-agent -d7 -I wpan0 -B lo spinel+hdlc+forkpty://$(command -
185 timeout 2 bash -c "while pidof ot-rcp; do logger -t otbr-test-dbus-client; sleep 1; done"
192 … "${CMAKE_BINARY_DIR}"/src/agent/otbr-agent -d7 -I wpan0 --radio-version "spinel+hdlc+forkpty://$(…
209 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
210 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
212 (sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
213 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
219 …sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --print-reply /io/openthread/Borde…
222 # The ot-cli-ftd node is used to test Thread attach.
224 spawn ot-cli-ftd 3
249 set timeout -1
254 # The ot-cli-mtd node is used to test the child and neighbor table.
256 spawn ot-cli-mtd 2
273 set timeout -1
280 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
281 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
305 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 --print-reply \
309 | grep -oPz "${result_pattern}"
311 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
312 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
318 sudo "${CMAKE_BINARY_DIR}"/tests/dbus/otbr-test-dbus-client
322 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
323 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
340 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
341 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
355 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
356 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
365 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
366 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
380 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
381 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \
397 sudo dbus-send --system --dest=io.openthread.BorderRouter.wpan0 \
398 --type=method_call --print-reply /io/openthread/BorderRouter/wpan0 \