Commit 82b61406 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Benjamin Cabé
Browse files

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: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 7290dd2a
Loading
Loading
Loading
Loading
+10 −0
Changes for samples/net/sockets/echo_server/sample.yaml: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -137,11 +137,21 @@ tests:
    integration_platforms:
      - qemu_x86
  sample.net.sockets.echo_server.nsos:
    harness: console
    platform_allow:
      - native_sim
      - native_sim/native/64
    extra_args:
      - EXTRA_CONF_FILE="overlay-nsos.conf"
    harness_config:
      type: multi_line
      ordered: false
      regex:
        - "Network connected"
        - "Waiting for TCP.*IPv4"
        - "Waiting for TCP.*IPv6"
        - "Waiting for UDP.*IPv4"
        - "Waiting for UDP.*IPv6"
  sample.net.sockets.echo_server.802154.subg:
    extra_args: EXTRA_CONF_FILE="overlay-802154-subg.conf"
    platform_allow: beagleconnect_freedom