Skip to content

Commit e662fa5

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 9d522b3 commit e662fa5

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 %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

testsuites.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Webserver_Download
2727
CurlSSLGood
2828
CurlSSLBad
2929
LanDevPingRouter
30+
BoardPing6ClickerDev
3031

3132
[ci40_failed_in_test_suite]
3233
Set_IPv6_Addresses

0 commit comments

Comments
 (0)