xref: /aosp_15_r20/external/openthread/tests/toranj/start.sh (revision cfb92d1480a9e65faed56933e9c12405f45898b4)
1*cfb92d14SAndroid Build Coastguard Worker#!/bin/bash
2*cfb92d14SAndroid Build Coastguard Worker#
3*cfb92d14SAndroid Build Coastguard Worker#  Copyright (c) 2018, The OpenThread Authors.
4*cfb92d14SAndroid Build Coastguard Worker#  All rights reserved.
5*cfb92d14SAndroid Build Coastguard Worker#
6*cfb92d14SAndroid Build Coastguard Worker#  Redistribution and use in source and binary forms, with or without
7*cfb92d14SAndroid Build Coastguard Worker#  modification, are permitted provided that the following conditions are met:
8*cfb92d14SAndroid Build Coastguard Worker#  1. Redistributions of source code must retain the above copyright
9*cfb92d14SAndroid Build Coastguard Worker#     notice, this list of conditions and the following disclaimer.
10*cfb92d14SAndroid Build Coastguard Worker#  2. Redistributions in binary form must reproduce the above copyright
11*cfb92d14SAndroid Build Coastguard Worker#     notice, this list of conditions and the following disclaimer in the
12*cfb92d14SAndroid Build Coastguard Worker#     documentation and/or other materials provided with the distribution.
13*cfb92d14SAndroid Build Coastguard Worker#  3. Neither the name of the copyright holder nor the
14*cfb92d14SAndroid Build Coastguard Worker#     names of its contributors may be used to endorse or promote products
15*cfb92d14SAndroid Build Coastguard Worker#     derived from this software without specific prior written permission.
16*cfb92d14SAndroid Build Coastguard Worker#
17*cfb92d14SAndroid Build Coastguard Worker#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18*cfb92d14SAndroid Build Coastguard Worker#  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19*cfb92d14SAndroid Build Coastguard Worker#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20*cfb92d14SAndroid Build Coastguard Worker#  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21*cfb92d14SAndroid Build Coastguard Worker#  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22*cfb92d14SAndroid Build Coastguard Worker#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*cfb92d14SAndroid Build Coastguard Worker#  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*cfb92d14SAndroid Build Coastguard Worker#  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25*cfb92d14SAndroid Build Coastguard Worker#  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*cfb92d14SAndroid Build Coastguard Worker#  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27*cfb92d14SAndroid Build Coastguard Worker#  POSSIBILITY OF SUCH DAMAGE.
28*cfb92d14SAndroid Build Coastguard Worker#
29*cfb92d14SAndroid Build Coastguard Worker
30*cfb92d14SAndroid Build Coastguard Workerdie()
31*cfb92d14SAndroid Build Coastguard Worker{
32*cfb92d14SAndroid Build Coastguard Worker    echo " *** ERROR: " "$*"
33*cfb92d14SAndroid Build Coastguard Worker    exit 1
34*cfb92d14SAndroid Build Coastguard Worker}
35*cfb92d14SAndroid Build Coastguard Worker
36*cfb92d14SAndroid Build Coastguard Workercleanup()
37*cfb92d14SAndroid Build Coastguard Worker{
38*cfb92d14SAndroid Build Coastguard Worker    # Clear logs and flash files
39*cfb92d14SAndroid Build Coastguard Worker    sudo rm tmp/*.flash tmp/*.data tmp/*.swap >/dev/null 2>&1
40*cfb92d14SAndroid Build Coastguard Worker    sudo rm ./*.log >/dev/null 2>&1
41*cfb92d14SAndroid Build Coastguard Worker
42*cfb92d14SAndroid Build Coastguard Worker    if [ "$TORANJ_CLI" != 1 ]; then
43*cfb92d14SAndroid Build Coastguard Worker        # Clear any wpantund instances
44*cfb92d14SAndroid Build Coastguard Worker        sudo killall wpantund >/dev/null 2>&1
45*cfb92d14SAndroid Build Coastguard Worker
46*cfb92d14SAndroid Build Coastguard Worker        while read -r interface; do
47*cfb92d14SAndroid Build Coastguard Worker            sudo ip link delete "$interface" >/dev/null 2>&1
48*cfb92d14SAndroid Build Coastguard Worker        done < <(ifconfig 2>/dev/null | grep -o "wpan[0-9]*")
49*cfb92d14SAndroid Build Coastguard Worker    fi
50*cfb92d14SAndroid Build Coastguard Worker
51*cfb92d14SAndroid Build Coastguard Worker    sleep 0.3
52*cfb92d14SAndroid Build Coastguard Worker}
53*cfb92d14SAndroid Build Coastguard Worker
54*cfb92d14SAndroid Build Coastguard Workerrun()
55*cfb92d14SAndroid Build Coastguard Worker{
56*cfb92d14SAndroid Build Coastguard Worker    counter=0
57*cfb92d14SAndroid Build Coastguard Worker    while true; do
58*cfb92d14SAndroid Build Coastguard Worker        if sudo -E "${python_app}" "$1"; then
59*cfb92d14SAndroid Build Coastguard Worker            cleanup
60*cfb92d14SAndroid Build Coastguard Worker            return
61*cfb92d14SAndroid Build Coastguard Worker        fi
62*cfb92d14SAndroid Build Coastguard Worker
63*cfb92d14SAndroid Build Coastguard Worker        # We allow a failed test to be retried up to 7 attempts.
64*cfb92d14SAndroid Build Coastguard Worker        if [ "$counter" -lt 7 ]; then
65*cfb92d14SAndroid Build Coastguard Worker            counter=$((counter + 1))
66*cfb92d14SAndroid Build Coastguard Worker            echo Attempt $counter running "$1" failed. Trying again.
67*cfb92d14SAndroid Build Coastguard Worker            cleanup
68*cfb92d14SAndroid Build Coastguard Worker            sleep 10
69*cfb92d14SAndroid Build Coastguard Worker            continue
70*cfb92d14SAndroid Build Coastguard Worker        fi
71*cfb92d14SAndroid Build Coastguard Worker
72*cfb92d14SAndroid Build Coastguard Worker        echo " *** TEST FAILED"
73*cfb92d14SAndroid Build Coastguard Worker        tail -n 40 "${log_file_name}"*.log
74*cfb92d14SAndroid Build Coastguard Worker        exit 1
75*cfb92d14SAndroid Build Coastguard Worker    done
76*cfb92d14SAndroid Build Coastguard Worker}
77*cfb92d14SAndroid Build Coastguard Worker
78*cfb92d14SAndroid Build Coastguard Workerinstall_wpantund()
79*cfb92d14SAndroid Build Coastguard Worker{
80*cfb92d14SAndroid Build Coastguard Worker    echo "Installing wpantund"
81*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y dbus libdbus-1-dev
82*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y autoconf-archive
83*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y libarchive-tools
84*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y libtool
85*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y libglib2.0-dev
86*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y lcov
87*cfb92d14SAndroid Build Coastguard Worker
88*cfb92d14SAndroid Build Coastguard Worker    sudo add-apt-repository universe
89*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get update
90*cfb92d14SAndroid Build Coastguard Worker    sudo apt-get --no-install-recommends install -y libboost-all-dev python2
91*cfb92d14SAndroid Build Coastguard Worker
92*cfb92d14SAndroid Build Coastguard Worker    git clone --depth=1 --branch=master https://github.com/openthread/wpantund.git || die "wpandtund clone"
93*cfb92d14SAndroid Build Coastguard Worker    cd wpantund || die "cd wpantund failed"
94*cfb92d14SAndroid Build Coastguard Worker    ./bootstrap.sh
95*cfb92d14SAndroid Build Coastguard Worker    ./configure
96*cfb92d14SAndroid Build Coastguard Worker    sudo make -j2 || die "wpantund make failed"
97*cfb92d14SAndroid Build Coastguard Worker    sudo make install || die "wpantund make install failed"
98*cfb92d14SAndroid Build Coastguard Worker    cd .. || die "cd .. failed"
99*cfb92d14SAndroid Build Coastguard Worker}
100*cfb92d14SAndroid Build Coastguard Worker
101*cfb92d14SAndroid Build Coastguard Workercd "$(dirname "$0")" || die "cd failed"
102*cfb92d14SAndroid Build Coastguard Worker
103*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_NCP" = 1 ]; then
104*cfb92d14SAndroid Build Coastguard Worker    echo "========================================================================"
105*cfb92d14SAndroid Build Coastguard Worker    echo "Running toranj-ncp triggered by event ${TORANJ_EVENT_NAME}"
106*cfb92d14SAndroid Build Coastguard Worker
107*cfb92d14SAndroid Build Coastguard Worker    if [ "$TORANJ_EVENT_NAME" = "pull_request" ]; then
108*cfb92d14SAndroid Build Coastguard Worker        cd ../..
109*cfb92d14SAndroid Build Coastguard Worker        OT_SHA_OLD="$(git cat-file -p HEAD | grep 'parent ' | head -n1 | cut -d' ' -f2)"
110*cfb92d14SAndroid Build Coastguard Worker        git fetch --depth 1 --no-recurse-submodules origin "${OT_SHA_OLD}"
111*cfb92d14SAndroid Build Coastguard Worker        if git diff --name-only --exit-code "${OT_SHA_OLD}" -- src/ncp; then
112*cfb92d14SAndroid Build Coastguard Worker            echo "No changes to any of src/ncp files - skip running tests."
113*cfb92d14SAndroid Build Coastguard Worker            echo "========================================================================"
114*cfb92d14SAndroid Build Coastguard Worker            exit 0
115*cfb92d14SAndroid Build Coastguard Worker        fi
116*cfb92d14SAndroid Build Coastguard Worker        cd tests/toranj || die "cd tests/toranj failed"
117*cfb92d14SAndroid Build Coastguard Worker        echo "There are change in src/ncp files, running toranj-ncp tests"
118*cfb92d14SAndroid Build Coastguard Worker    fi
119*cfb92d14SAndroid Build Coastguard Worker
120*cfb92d14SAndroid Build Coastguard Worker    echo "========================================================================"
121*cfb92d14SAndroid Build Coastguard Worker    install_wpantund
122*cfb92d14SAndroid Build Coastguard Workerfi
123*cfb92d14SAndroid Build Coastguard Worker
124*cfb92d14SAndroid Build Coastguard Workerif [ -z "${top_builddir}" ]; then
125*cfb92d14SAndroid Build Coastguard Worker    top_builddir=.
126*cfb92d14SAndroid Build Coastguard Workerfi
127*cfb92d14SAndroid Build Coastguard Worker
128*cfb92d14SAndroid Build Coastguard Workerif [ "$COVERAGE" = 1 ]; then
129*cfb92d14SAndroid Build Coastguard Worker    coverage_option="--enable-coverage"
130*cfb92d14SAndroid Build Coastguard Workerelse
131*cfb92d14SAndroid Build Coastguard Worker    coverage_option=""
132*cfb92d14SAndroid Build Coastguard Workerfi
133*cfb92d14SAndroid Build Coastguard Worker
134*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_CLI" = 1 ]; then
135*cfb92d14SAndroid Build Coastguard Worker    app_name="cli"
136*cfb92d14SAndroid Build Coastguard Worker    python_app="python3"
137*cfb92d14SAndroid Build Coastguard Worker    log_file_name="ot-logs"
138*cfb92d14SAndroid Build Coastguard Workerelse
139*cfb92d14SAndroid Build Coastguard Worker    app_name="ncp"
140*cfb92d14SAndroid Build Coastguard Worker    python_app="python2"
141*cfb92d14SAndroid Build Coastguard Worker    log_file_name="wpantund-logs"
142*cfb92d14SAndroid Build Coastguard Workerfi
143*cfb92d14SAndroid Build Coastguard Worker
144*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_RADIO" = "multi" ]; then
145*cfb92d14SAndroid Build Coastguard Worker    # Build all combinations
146*cfb92d14SAndroid Build Coastguard Worker    ./build.sh "${coverage_option}" "${app_name}"-15.4 || die "${app_name}-15.4 build failed"
147*cfb92d14SAndroid Build Coastguard Worker    ./build.sh "${coverage_option}" "${app_name}"-trel || die "${app_name}-trel build failed"
148*cfb92d14SAndroid Build Coastguard Worker    ./build.sh "${coverage_option}" "${app_name}"-15.4+trel || die "${app_name}-15.4+trel build failed"
149*cfb92d14SAndroid Build Coastguard Workerelse
150*cfb92d14SAndroid Build Coastguard Worker    ./build.sh "${coverage_option}" "${app_name}"-"${TORANJ_RADIO}" || die "build failed"
151*cfb92d14SAndroid Build Coastguard Workerfi
152*cfb92d14SAndroid Build Coastguard Worker
153*cfb92d14SAndroid Build Coastguard Workercleanup
154*cfb92d14SAndroid Build Coastguard Worker
155*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_CLI" = 1 ]; then
156*cfb92d14SAndroid Build Coastguard Worker
157*cfb92d14SAndroid Build Coastguard Worker    if [ "$TORANJ_RADIO" = "multi" ]; then
158*cfb92d14SAndroid Build Coastguard Worker        run cli/test-700-multi-radio-join.py
159*cfb92d14SAndroid Build Coastguard Worker        run cli/test-701-multi-radio-probe.py
160*cfb92d14SAndroid Build Coastguard Worker        run cli/test-702-multi-radio-discover-by-rx.py
161*cfb92d14SAndroid Build Coastguard Worker        run cli/test-703-multi-radio-mesh-header-msg.py
162*cfb92d14SAndroid Build Coastguard Worker        run cli/test-704-multi-radio-scan.py
163*cfb92d14SAndroid Build Coastguard Worker        run cli/test-705-multi-radio-discover-scan.py
164*cfb92d14SAndroid Build Coastguard Worker
165*cfb92d14SAndroid Build Coastguard Worker        exit 0
166*cfb92d14SAndroid Build Coastguard Worker    fi
167*cfb92d14SAndroid Build Coastguard Worker
168*cfb92d14SAndroid Build Coastguard Worker    run cli/test-001-get-set.py
169*cfb92d14SAndroid Build Coastguard Worker    run cli/test-002-form.py
170*cfb92d14SAndroid Build Coastguard Worker    run cli/test-003-join.py
171*cfb92d14SAndroid Build Coastguard Worker    run cli/test-004-scan.py
172*cfb92d14SAndroid Build Coastguard Worker    run cli/test-005-traffic-router-to-child.py
173*cfb92d14SAndroid Build Coastguard Worker    run cli/test-006-traffic-multi-hop.py
174*cfb92d14SAndroid Build Coastguard Worker    run cli/test-007-off-mesh-route-traffic.py
175*cfb92d14SAndroid Build Coastguard Worker    run cli/test-008-multicast-traffic.py
176*cfb92d14SAndroid Build Coastguard Worker    run cli/test-009-router-table.py
177*cfb92d14SAndroid Build Coastguard Worker    run cli/test-010-partition-merge.py
178*cfb92d14SAndroid Build Coastguard Worker    run cli/test-011-network-data-timeout.py
179*cfb92d14SAndroid Build Coastguard Worker    run cli/test-012-reset-recovery.py
180*cfb92d14SAndroid Build Coastguard Worker    run cli/test-013-address-cache-parent-switch.py
181*cfb92d14SAndroid Build Coastguard Worker    run cli/test-014-address-resolver.py
182*cfb92d14SAndroid Build Coastguard Worker    run cli/test-015-clear-addresss-cache-for-sed.py
183*cfb92d14SAndroid Build Coastguard Worker    run cli/test-016-child-mode-change.py
184*cfb92d14SAndroid Build Coastguard Worker    run cli/test-017-network-data-versions.py
185*cfb92d14SAndroid Build Coastguard Worker    run cli/test-018-next-hop-and-path-cost.py
186*cfb92d14SAndroid Build Coastguard Worker    run cli/test-019-netdata-context-id.py
187*cfb92d14SAndroid Build Coastguard Worker    run cli/test-020-net-diag-vendor-info.py
188*cfb92d14SAndroid Build Coastguard Worker    run cli/test-021-br-route-prf.py
189*cfb92d14SAndroid Build Coastguard Worker    run cli/test-022-netdata-full.py
190*cfb92d14SAndroid Build Coastguard Worker    run cli/test-023-mesh-diag.py
191*cfb92d14SAndroid Build Coastguard Worker    run cli/test-024-mle-adv-imax-change.py
192*cfb92d14SAndroid Build Coastguard Worker    run cli/test-025-mesh-local-prefix-change.py
193*cfb92d14SAndroid Build Coastguard Worker    run cli/test-026-coaps-conn-limit.py
194*cfb92d14SAndroid Build Coastguard Worker    run cli/test-027-slaac-address.py
195*cfb92d14SAndroid Build Coastguard Worker    run cli/test-028-border-agent-ephemeral-key.py
196*cfb92d14SAndroid Build Coastguard Worker    run cli/test-029-pending-dataset-key-change.py
197*cfb92d14SAndroid Build Coastguard Worker    run cli/test-030-anycast-forwarding.py
198*cfb92d14SAndroid Build Coastguard Worker    run cli/test-031-service-aloc-route-lookup.py
199*cfb92d14SAndroid Build Coastguard Worker    run cli/test-032-leader-take-over.py
200*cfb92d14SAndroid Build Coastguard Worker    run cli/test-400-srp-client-server.py
201*cfb92d14SAndroid Build Coastguard Worker    run cli/test-401-srp-server-address-cache-snoop.py
202*cfb92d14SAndroid Build Coastguard Worker    run cli/test-500-two-brs-two-networks.py
203*cfb92d14SAndroid Build Coastguard Worker    run cli/test-501-multi-br-failure-recovery.py
204*cfb92d14SAndroid Build Coastguard Worker    run cli/test-502-multi-br-leader-failure-recovery.py
205*cfb92d14SAndroid Build Coastguard Worker    run cli/test-503-peer-tbr-discovery.py
206*cfb92d14SAndroid Build Coastguard Worker    run cli/test-504-br-icmp-unreach-err.py
207*cfb92d14SAndroid Build Coastguard Worker    run cli/test-601-channel-manager-channel-change.py
208*cfb92d14SAndroid Build Coastguard Worker    # Skip the "channel-select" test on a TREL only radio link, since it
209*cfb92d14SAndroid Build Coastguard Worker    # requires energy scan which is not supported in this case.
210*cfb92d14SAndroid Build Coastguard Worker    if [ "$TORANJ_RADIO" != "trel" ]; then
211*cfb92d14SAndroid Build Coastguard Worker        run cli/test-602-channel-manager-channel-select.py
212*cfb92d14SAndroid Build Coastguard Worker    fi
213*cfb92d14SAndroid Build Coastguard Worker    run cli/test-603-channel-announce-recovery.py
214*cfb92d14SAndroid Build Coastguard Worker
215*cfb92d14SAndroid Build Coastguard Worker    exit 0
216*cfb92d14SAndroid Build Coastguard Workerfi
217*cfb92d14SAndroid Build Coastguard Worker
218*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_RADIO" = "multi" ]; then
219*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-700-multi-radio-join.py
220*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-701-multi-radio-probe.py
221*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-702-multi-radio-discovery-by-rx.py
222*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-703-multi-radio-mesh-header-msg.py
223*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-704-multi-radio-scan.py
224*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-705-multi-radio-discover-scan.py
225*cfb92d14SAndroid Build Coastguard Worker
226*cfb92d14SAndroid Build Coastguard Worker    exit 0
227*cfb92d14SAndroid Build Coastguard Workerfi
228*cfb92d14SAndroid Build Coastguard Worker
229*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-001-get-set.py
230*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-002-form.py
231*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-003-join.py
232*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-004-scan.py
233*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-005-discover-scan.py
234*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-006-traffic-router-end-device.py
235*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-007-traffic-router-sleepy.py
236*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-009-insecure-traffic-join.py
237*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-010-on-mesh-prefix-config-gateway.py
238*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-011-child-table.py
239*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-012-multi-hop-traffic.py
240*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-013-off-mesh-route-traffic.py
241*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-014-ip6-address-add.py
242*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-015-same-prefix-on-multiple-nodes.py
243*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-016-neighbor-table.py
244*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-017-parent-reset-child-recovery.py
245*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-019-inform-previous-parent.py
246*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-020-router-table.py
247*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-021-address-cache-table.py
248*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-022-multicast-ip6-address.py
249*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-023-multicast-traffic.py
250*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-024-partition-merge.py
251*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-025-network-data-timeout.py
252*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-026-slaac-address-wpantund.py
253*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-027-child-mode-change.py
254*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-028-router-leader-reset-recovery.py
255*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-029-data-poll-interval.py
256*cfb92d14SAndroid Build Coastguard Worker# run ncp/test-030-slaac-address-ncp.py
257*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-031-meshcop-joiner-commissioner.py
258*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-032-child-attach-with-multiple-ip-addresses.py
259*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-033-mesh-local-prefix-change.py
260*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-034-poor-link-parent-child-attach.py
261*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-035-child-timeout-large-data-poll.py
262*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-036-wpantund-host-route-management.py
263*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-037-wpantund-auto-add-route-for-on-mesh-prefix.py
264*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-038-clear-address-cache-for-sed.py
265*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-039-address-cache-table-snoop.py
266*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-040-network-data-stable-full.py
267*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-041-lowpan-fragmentation.py
268*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-042-meshcop-joiner-discerner.py
269*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-043-meshcop-joiner-router.py
270*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-100-mcu-power-state.py
271*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-600-channel-manager-properties.py
272*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-601-channel-manager-channel-change.py
273*cfb92d14SAndroid Build Coastguard Worker
274*cfb92d14SAndroid Build Coastguard Worker# Skip the "channel-select" test on a TREL only radio link, since it
275*cfb92d14SAndroid Build Coastguard Worker# requires energy scan which is not supported in this case.
276*cfb92d14SAndroid Build Coastguard Worker
277*cfb92d14SAndroid Build Coastguard Workerif [ "$TORANJ_RADIO" != "trel" ]; then
278*cfb92d14SAndroid Build Coastguard Worker    run ncp/test-602-channel-manager-channel-select.py
279*cfb92d14SAndroid Build Coastguard Workerfi
280*cfb92d14SAndroid Build Coastguard Worker
281*cfb92d14SAndroid Build Coastguard Workerrun ncp/test-603-channel-manager-announce-recovery.py
282*cfb92d14SAndroid Build Coastguard Worker
283*cfb92d14SAndroid Build Coastguard Workerexit 0
284