Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
b84f3cc9
Commit
b84f3cc9
authored
7 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
tests: adapt tests/lwip for od changes
parent
d1c75b41
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/lwip/tests/01-run.py
+6
-6
6 additions, 6 deletions
tests/lwip/tests/01-run.py
with
6 additions
and
6 deletions
tests/lwip/tests/01-run.py
+
6
−
6
View file @
b84f3cc9
...
@@ -197,7 +197,7 @@ def test_ipv6_send(board_group, application, env=None):
...
@@ -197,7 +197,7 @@ def test_ipv6_send(board_group, application, env=None):
sender
.
sendline
(
u
"
ip send %s %d 01:23:45:67:89:ab:cd:ef
"
%
(
receiver_ip
,
ipprot
))
sender
.
sendline
(
u
"
ip send %s %d 01:23:45:67:89:ab:cd:ef
"
%
(
receiver_ip
,
ipprot
))
sender
.
expect_exact
(
u
"
Success: send 8 byte over IPv6 to %s (next header: %d)
"
%
sender
.
expect_exact
(
u
"
Success: send 8 byte over IPv6 to %s (next header: %d)
"
%
(
receiver_ip
,
ipprot
))
(
receiver_ip
,
ipprot
))
receiver
.
expect
(
u
"
000000 01 23 45 67 89
ab cd ef
"
)
receiver
.
expect
(
u
"
000000
00
01
23
45
67
89
AB CD EF
"
)
def
test_udpv6_send
(
board_group
,
application
,
env
=
None
):
def
test_udpv6_send
(
board_group
,
application
,
env
=
None
):
env_sender
=
os
.
environ
.
copy
()
env_sender
=
os
.
environ
.
copy
()
...
@@ -221,7 +221,7 @@ def test_udpv6_send(board_group, application, env=None):
...
@@ -221,7 +221,7 @@ def test_udpv6_send(board_group, application, env=None):
sender
.
sendline
(
u
"
udp send %s %d ab:cd:ef
"
%
(
receiver_ip
,
port
))
sender
.
sendline
(
u
"
udp send %s %d ab:cd:ef
"
%
(
receiver_ip
,
port
))
sender
.
expect_exact
(
u
"
Success: send 3 byte over UDP to [%s]:%d
"
%
sender
.
expect_exact
(
u
"
Success: send 3 byte over UDP to [%s]:%d
"
%
(
receiver_ip
,
port
))
(
receiver_ip
,
port
))
receiver
.
expect
(
u
"
000000
ab cd ef
"
)
receiver
.
expect
(
u
"
000000
00 AB CD EF
"
)
def
test_tcpv6_send
(
board_group
,
application
,
env
=
None
):
def
test_tcpv6_send
(
board_group
,
application
,
env
=
None
):
env_client
=
os
.
environ
.
copy
()
env_client
=
os
.
environ
.
copy
()
...
@@ -247,7 +247,7 @@ def test_tcpv6_send(board_group, application, env=None):
...
@@ -247,7 +247,7 @@ def test_tcpv6_send(board_group, application, env=None):
server
.
expect
(
u
"
TCP client
\\
[%s
\\
]:[0-9]+ connected
"
%
client_ip
)
server
.
expect
(
u
"
TCP client
\\
[%s
\\
]:[0-9]+ connected
"
%
client_ip
)
client
.
sendline
(
u
"
tcp send affe:abe
"
)
client
.
sendline
(
u
"
tcp send affe:abe
"
)
client
.
expect_exact
(
u
"
Success: send 4 byte over TCP to server
"
)
client
.
expect_exact
(
u
"
Success: send 4 byte over TCP to server
"
)
server
.
expect
(
u
"
000000
af fe ab e
0
"
)
server
.
expect
(
u
"
000000
00 AF FE AB E
0
"
)
client
.
sendline
(
u
"
tcp disconnect
"
)
client
.
sendline
(
u
"
tcp disconnect
"
)
client
.
sendline
(
u
"
tcp send affe:abe
"
)
client
.
sendline
(
u
"
tcp send affe:abe
"
)
client
.
expect_exact
(
u
"
could not send
"
)
client
.
expect_exact
(
u
"
could not send
"
)
...
@@ -279,17 +279,17 @@ def test_triple_send(board_group, application, env=None):
...
@@ -279,17 +279,17 @@ def test_triple_send(board_group, application, env=None):
sender
.
sendline
(
u
"
udp send %s %d 01:23
"
%
(
receiver_ip
,
udp_port
))
sender
.
sendline
(
u
"
udp send %s %d 01:23
"
%
(
receiver_ip
,
udp_port
))
sender
.
expect_exact
(
u
"
Success: send 2 byte over UDP to [%s]:%d
"
%
sender
.
expect_exact
(
u
"
Success: send 2 byte over UDP to [%s]:%d
"
%
(
receiver_ip
,
udp_port
))
(
receiver_ip
,
udp_port
))
receiver
.
expect
(
u
"
000000 01 23
"
)
receiver
.
expect
(
u
"
000000
00
01
23
"
)
sender
.
sendline
(
u
"
ip send %s %d 01:02:03:04
"
%
(
receiver_ip
,
ipprot
))
sender
.
sendline
(
u
"
ip send %s %d 01:02:03:04
"
%
(
receiver_ip
,
ipprot
))
sender
.
expect_exact
(
u
"
Success: send 4 byte over IPv6 to %s (next header: %d)
"
%
sender
.
expect_exact
(
u
"
Success: send 4 byte over IPv6 to %s (next header: %d)
"
%
(
receiver_ip
,
ipprot
))
(
receiver_ip
,
ipprot
))
receiver
.
expect
(
u
"
000000 01 02 03 04
"
)
receiver
.
expect
(
u
"
000000
00
01
02
03
04
"
)
sender
.
sendline
(
u
"
tcp connect %s %d
"
%
(
receiver_ip
,
tcp_port
))
sender
.
sendline
(
u
"
tcp connect %s %d
"
%
(
receiver_ip
,
tcp_port
))
receiver
.
expect
(
u
"
TCP client
\\
[%s
\\
]:[0-9]+ connected
"
%
sender_ip
)
receiver
.
expect
(
u
"
TCP client
\\
[%s
\\
]:[0-9]+ connected
"
%
sender_ip
)
sender
.
sendline
(
u
"
tcp send dead:beef
"
)
sender
.
sendline
(
u
"
tcp send dead:beef
"
)
sender
.
expect_exact
(
u
"
Success: send 4 byte over TCP to server
"
)
sender
.
expect_exact
(
u
"
Success: send 4 byte over TCP to server
"
)
receiver
.
expect
(
u
"
000000
de ad be ef
"
)
receiver
.
expect
(
u
"
000000
00 DE AD BE EF
"
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
del
os
.
environ
[
'
TERMFLAGS
'
]
del
os
.
environ
[
'
TERMFLAGS
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment