Rename the driver from uart_native_posix to uart_native_pty. Including renaming the DTS compatible, and kconfig options, deprecating the old ones. And refactor the driver, generalizing it, so we can have any number of instances. Note that, unfortunately generalizing to N instances cannot be done without a degree of backwards compatibility breakage: This driver was born with all its configuration and selection of the instances based on kconfig. When the driver was made to use DT, it was done in a way that required both DT and kconfig needing to manually coherently enable the 2nd UART. This has now been fixed, which it means only DT is used to decide how many instances are avaliable, and UART_NATIVE_POSIX_PORT_1_ENABLE is just ignored. Including: * Deprecate UART_NATIVE_WAIT_PTS_READY_ENABLE: the options is always on now as it has no practical drawbacks. * Deprecate UART_NATIVE_POSIX_PORT_1_ENABLE: DTS intanciation defines it being available now. * Rename a few functions and in general shorten pseudo-tty/pseudo- terminal to PTY instead of PTTY. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
77 lines
2.1 KiB
YAML
77 lines
2.1 KiB
YAML
sample:
|
|
name: Shell Sample
|
|
common:
|
|
filter: not CONFIG_NATIVE_LIBC and not CONFIG_SOC_SERIES_BSIM_NRFXX
|
|
tests:
|
|
sample.shell.shell_module:
|
|
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
|
|
tags: shell
|
|
harness: shell
|
|
min_ram: 40
|
|
integration_platforms:
|
|
- native_sim
|
|
extra_configs:
|
|
- arch:posix:CONFIG_UART_NATIVE_PTY_0_ON_STDINOUT=y
|
|
sample.shell.shell_module.usb:
|
|
depends_on: usb_device
|
|
tags:
|
|
- shell
|
|
- usb
|
|
harness: keyboard
|
|
min_ram: 40
|
|
extra_args:
|
|
- EXTRA_CONF_FILE="overlay-usb.conf"
|
|
- DTC_OVERLAY_FILE="usb.overlay"
|
|
integration_platforms:
|
|
- native_sim
|
|
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"
|
|
integration_platforms:
|
|
- native_sim
|
|
sample.shell.shell_module.getopt:
|
|
integration_platforms:
|
|
- qemu_x86
|
|
arch_exclude: posix
|
|
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"
|
|
integration_platforms:
|
|
- nrf52833dk/nrf52833
|
|
sample.shell.shell_module.bt:
|
|
platform_allow:
|
|
- nrf52840dk/nrf52840
|
|
integration_platforms:
|
|
- nrf52840dk/nrf52840
|
|
tags:
|
|
- shell
|
|
- bluetooth
|
|
filter: CONFIG_DT_HAS_ZEPHYR_NUS_UART_ENABLED
|
|
harness: bluetooth_nus
|
|
arch_exclude:
|
|
- posix
|
|
extra_args:
|
|
- EXTRA_CONF_FILE="overlay-bt.conf"
|
|
- DTC_OVERLAY_FILE="bt.overlay"
|
|
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"
|
|
integration_platforms:
|
|
- native_sim
|
|
sample.shell.shell_module.robot:
|
|
harness: robot
|
|
harness_config:
|
|
robot_testsuite: shell_module.robot
|