Browse Source

samples sntp_client: Move from native_posix to native_sim

* In the sample doc, replace native_posix references with native_sim
* Enable native_sim in the sample yaml

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
pull/60365/head
Alberto Escolar Piedras 2 years ago committed by Carles Cufí
parent
commit
eae281bb33
  1. 2
      samples/net/sockets/sntp_client/README.rst
  2. 12
      samples/net/sockets/sntp_client/sample.yaml

2
samples/net/sockets/sntp_client/README.rst

@ -24,7 +24,7 @@ printed. @@ -24,7 +24,7 @@ printed.
See the `net-tools`_ project for more details.
This sample can be built and executed on QEMU or native_posix board as
This sample can be built and executed on QEMU or native_sim board as
described in :ref:`networking_with_qemu`.
.. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools

12
samples/net/sockets/sntp_client/sample.yaml

@ -6,13 +6,19 @@ common: @@ -6,13 +6,19 @@ common:
tags: net
tests:
sample.net.sockets.sntp_client:
platform_allow: qemu_x86
platform_allow:
- qemu_x86
- native_sim
sample.net.sockets.sntp_client.posix_names:
platform_allow: qemu_x86
platform_allow:
- qemu_x86
- native_sim
extra_configs:
- CONFIG_NET_SOCKETS_POSIX_NAMES=y
sample.net.sockets.sntp_client.posix:
platform_allow: qemu_x86
platform_allow:
- qemu_x86
- native_sim
extra_configs:
- CONFIG_NET_SOCKETS_POSIX_NAMES=n
- CONFIG_POSIX_API=y

Loading…
Cancel
Save