samples display: Switch from native_posix to native_sim

In the docs replace the references to native_posix with native_sim
Enable native_sim in the tests, and replace native_posix as integration
platform.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-11-10 11:34:44 +01:00 committed by Carles Cufí
parent 2777461858
commit bf02cbc51f
4 changed files with 14 additions and 10 deletions

View File

@ -30,12 +30,12 @@ Below is an example on how to build for a :ref:`nrf52840dk_nrf52840` board with
:shield: adafruit_2_8_tft_touch_v2
:compact:
For testing purpose without the need of any hardware, the :ref:`native_posix`
For testing purpose without the need of any hardware, the :ref:`native_sim <native_sim>`
board is also supported and can be built as follows;
.. zephyr-app-commands::
:zephyr-app: samples/drivers/display
:board: native_posix
:board: native_sim
:goals: build
:compact:

View File

@ -103,10 +103,14 @@ tests:
fixture: fixture_display
sample.display.sdl:
build_only: true
platform_allow: native_posix_64
platform_allow:
- native_posix_64
- native_sim_64
tags: display
sample.display.dummy:
platform_allow: native_posix
platform_allow:
- native_posix
- native_sim
extra_args: DTC_OVERLAY_FILE="dummy_dc.overlay"
extra_configs:
- CONFIG_DUMMY_DISPLAY=y

View File

@ -27,9 +27,9 @@ or a board with an integrated display:
- :ref:`esp_wrover_kit`
or a simulated display environment in a native Posix application:
or a simulated display environment in a :ref:`native_sim <native_sim>` application:
- :ref:`native_posix`
- :ref:`native_sim`
- `SDL2`_
or
@ -53,15 +53,15 @@ Example building for :ref:`nrf52840dk_nrf52840`:
:shield: adafruit_2_8_tft_touch_v2
:goals: build flash
Example building for :ref:`native_posix`:
Example building for :ref:`native_sim <native_sim>`:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/display/lvgl
:board: native_posix
:board: native_sim
:goals: build run
Alternatively, if building from a 64-bit host machine, the previous target
board argument may also be replaced by ``native_posix_64``.
board argument may also be replaced by ``native_sim_64``.
References
**********

View File

@ -19,7 +19,7 @@ tests:
modules:
- lvgl
integration_platforms:
- native_posix_64
- native_sim_64
sample.display.lvgl.rk055hdmipi4m:
# This sample is intended to test the RT1170 and RT595, which require
# a display shield to work with LVGL