zephyr/samples/subsys/shell/shell_module/sample.yaml
Jakub Rzeszutko d4559f53fa lib: getopt: rework and extend getopt library
Getopt has been rework in this way that calling it does not require
extra state parameter and its execution is thread safe.
Global parameters describing the state of the getopt function have been
made available to ensure full API compatibility in using this library.
However, referencing these global variables directly is not thread
safe. In order to get the state of the getopt function for the thread
that is currently using it, call: getopt_state_get();

Extended the library with getopt_long and getopt_long_only functions.

Moved getopt libary from utils to posix.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
2022-01-06 21:26:59 +01:00

44 lines
1.3 KiB
YAML

sample:
name: Shell Sample
common:
integration_platforms:
- native_posix
tests:
sample.shell.shell_module:
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
tags: shell
harness: keyboard
min_ram: 40
sample.shell.shell_module.usb:
depends_on: usb_device
tags: shell usb
harness: keyboard
min_ram: 40
extra_args: OVERLAY_CONFIG="overlay-usb.conf"
DTC_OVERLAY_FILE="usb.overlay"
sample.shell.shell_module.minimal:
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
tags: shell
harness: keyboard
extra_args: CONF_FILE="prj_minimal.conf"
sample.shell.shell_module.getopt:
integration_platforms:
- qemu_x86
platform_exclude: native_posix native_posix_64
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") and not CONFIG_NEWLIB_LIBC
tags: shell
harness: keyboard
min_ram: 40
extra_args: CONF_FILE="prj_getopt.conf"
sample.shell.shell_module.minimal_rtt:
filter: CONFIG_HAS_SEGGER_RTT
tags: shell
harness: keyboard
extra_args: CONF_FILE="prj_minimal_rtt.conf"
sample.shell.shell_module.login:
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
tags: shell
harness: keyboard
min_ram: 40
extra_args: CONF_FILE="prj_login.conf"