Skip to content

Commit e651014

Browse files
committed
Boardfarm ping6 test from ci40 to a clicker
This test will ping6 20 packets from the ci40 board to a clicker using 6lowpan wireless interface Signed-off-by: Tushar Jobanputra <[email protected]>
1 parent cf54ab9 commit e651014

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/ping6_clicker.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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('\nping6 -I lowpan0 -c 20 -s 80 {}\n'.format(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

testsuites.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ LanDevPingRouter
3232
OpkgUpdate
3333
OpkgInstall
3434
OpkgRemove
35+
BoardPing6ClickerDev
3536

3637
[ci40_failed_in_test_suite]
3738
Set_IPv6_Addresses

0 commit comments

Comments
 (0)