File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2017
2+ #
3+ # All rights reserved.
4+ #
5+ # This file is distributed under the Clear BSD license.
6+ # The full text can be found in LICENSE in the root directory.
7+ import os
8+ import rootfs_boot
9+ from devices import board
10+
11+ class BoardPing6ClickerDev (rootfs_boot .RootFSBootTest ):
12+ '''Board lowpan interface can ping6 the clicker.'''
13+ def runTest (self ):
14+ CLICKER_IP = os .getenv ('CLICKER1_IP' )
15+ board .sendline ('\n ping6 -I lowpan0 -c 20 -s 80 %s' % CLICKER_IP )
16+ board .expect ('PING ' )
17+ board .expect (' ([0-9]+) packets received' )
18+ board .expect (' ([0-1]+)% packet loss' )
19+ n = int (board .match .group (1 ))
20+ board .expect (prompt )
21+ assert n > 0
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ LanDevPingRouter
3232OpkgUpdate
3333OpkgInstall
3434OpkgRemove
35+ BoardPing6ClickerDev
3536
3637[ci40_failed_in_test_suite]
3738Set_IPv6_Addresses
You can’t perform that action at this time.
0 commit comments