samples bindesc: Add runtime test and change default to native_sim

* In the docs replace references to native_posix with native_sim
* Switch the default test platform to native_sim from native_posix
* Add a runtime check for this sample

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

View file

@ -27,6 +27,6 @@ To dump all binary descriptors in the image, run:
west bindesc dump build/zephyr/zephyr.bin
(Note: you can also dump the contents of ``zephyr.elf``, if your build system
does not produce a ``*.bin`` file, e.g. compiling for ``native_posix``.)
does not produce a ``*.bin`` file, e.g. compiling for ``native_sim``.)
For more details see :ref:`binary_descriptors` and :ref:`west-bindesc`.

View file

@ -5,4 +5,16 @@ tests:
tags: bindesc
filter: CONFIG_ARCH_SUPPORTS_ROM_START or CONFIG_ARCH_POSIX
integration_platforms:
- native_posix
- native_sim
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Zephyr version: "
- "App version: 1.0.0"
- "Build time: "
- "Compiler: "
- "my_string: Hello world!"
- "my_int: 5"
- "my_bytes: 01 02 03 04"