Skip to content

Commit 537361e

Browse files
mniestrojkartben
authored andcommitted
samples: net: echo_server: add runtime test for NSOS net init
Expect that networking is properly setup, by expecting NET_EVENT_L4_CONNECTED event and listening for TCP/UDP incoming traffic on both IPv4 and IPv6. Signed-off-by: Marcin Niestroj <[email protected]> (cherry picked from commit 82b6140)
1 parent f38ff34 commit 537361e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

samples/net/sockets/echo_server/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,21 @@ tests:
139139
integration_platforms:
140140
- qemu_x86
141141
sample.net.sockets.echo_server.nsos:
142+
harness: console
142143
platform_allow:
143144
- native_sim
144145
- native_sim/native/64
145146
extra_args:
146147
- EXTRA_CONF_FILE="overlay-nsos.conf"
148+
harness_config:
149+
type: multi_line
150+
ordered: false
151+
regex:
152+
- "Network connected"
153+
- "Waiting for TCP.*IPv4"
154+
- "Waiting for TCP.*IPv6"
155+
- "Waiting for UDP.*IPv4"
156+
- "Waiting for UDP.*IPv6"
147157
sample.net.sockets.echo_server.802154.subg:
148158
extra_args: EXTRA_CONF_FILE="overlay-802154-subg.conf"
149159
platform_allow: beagleconnect_freedom

0 commit comments

Comments
 (0)