From f532937e921d3a2053bd0be408488d335e63d662 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 18 Mar 2024 14:37:21 +0100 Subject: [PATCH] tests|scripts/net: Change native_posix references to native_sim * As we are replacing native_posix with native_sim, let's refer to native_sim instead of native_posix in the comments of why we have 1 extra interface. * scripts/net/run-sample-tests.sh builds for native_sim now, not native_posix => let's fix it Signed-off-by: Alberto Escolar Piedras --- scripts/net/README.txt | 2 +- tests/net/checksum_offload/src/main.c | 2 +- tests/net/iface/src/main.c | 2 +- tests/net/promiscuous/src/main.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/net/README.txt b/scripts/net/README.txt index 2d184ce1d3..7a4dee569a 100644 --- a/scripts/net/README.txt +++ b/scripts/net/README.txt @@ -46,7 +46,7 @@ User can see what samples are supported like this: $ZEPHYR_BASE/scripts/net/run-sample-tests.sh --scan The Docker container and a corresponding 'net-tools0' Docker network is started -by the script, as well as Zephyr using native_posix board. IP addresses are +by the script, as well as Zephyr using native_sim board. IP addresses are assigned to the Docker network, which is a Linux network bridge interface. The default IP addresses are: diff --git a/tests/net/checksum_offload/src/main.c b/tests/net/checksum_offload/src/main.c index da65d69f4f..978488ad29 100644 --- a/tests/net/checksum_offload/src/main.c +++ b/tests/net/checksum_offload/src/main.c @@ -72,7 +72,7 @@ static struct in_addr in4addr_dst = { { { 192, 0, 2, 2 } } }; static struct in_addr in4addr_my2 = { { { 192, 0, 42, 1 } } }; static struct in_addr in4addr_dst2 = { { { 192, 0, 42, 2 } } }; -/* Keep track of all ethernet interfaces. For native_posix board, we need +/* Keep track of all ethernet interfaces. For native_sim board, we need * to increase the count as it has one extra network interface defined in * eth_native_posix driver. */ diff --git a/tests/net/iface/src/main.c b/tests/net/iface/src/main.c index d5cada6fc4..54125c34ea 100644 --- a/tests/net/iface/src/main.c +++ b/tests/net/iface/src/main.c @@ -297,7 +297,7 @@ static void iface_cb(struct net_if *iface, void *user_data) const struct ethernet_api *api = net_if_get_device(iface)->api; - /* As native_posix board will introduce another ethernet + /* As native_sim board will introduce another ethernet * interface, make sure that we only use our own in this test. */ if (api->get_capabilities == diff --git a/tests/net/promiscuous/src/main.c b/tests/net/promiscuous/src/main.c index 9bedd9773b..364917b7de 100644 --- a/tests/net/promiscuous/src/main.c +++ b/tests/net/promiscuous/src/main.c @@ -178,7 +178,7 @@ static void iface_cb(struct net_if *iface, void *user_data) const struct ethernet_api *api = net_if_get_device(iface)->api; - /* As native_posix board will introduce another ethernet + /* As native_sim board will introduce another ethernet * interface, make sure that we only use our own in this test. */ if (api->get_capabilities ==