Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions tests/ping6_clicker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2017
#
# All rights reserved.
#
# This file is distributed under the Clear BSD license.
# The full text can be found in LICENSE in the root directory.
import os
import rootfs_boot
from devices import board

class BoardPing6ClickerDev(rootfs_boot.RootFSBootTest):
'''Board lowpan interface can ping6 the clicker.'''
def runTest(self):
CLICKER_IP=os.getenv('CLICKER1_IP')
board.sendline('\nping6 -I lowpan0 -c 20 -s 80 {}\n'.format(CLICKER_IP))
board.expect('PING ')
board.expect(' ([0-9]+) packets received')
board.expect(' ([0-1]+)% packet loss')
n = int(board.match.group(1))
board.expect(prompt)
assert n > 0
1 change: 1 addition & 0 deletions testsuites.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ LanDevPingRouter
OpkgUpdate
OpkgInstall
OpkgRemove
BoardPing6ClickerDev

[ci40_failed_in_test_suite]
Set_IPv6_Addresses
Expand Down