Add the nrf52_bsim to the platform_allow list for tests which had such a filter. Note that for this test to pass, you need to connect the uart in loopback, passing the command line option `-uart0_loopback` to zephyr.exe Note this tests do not run right now by default in CI as the fixture is preventing it. They can be run with: twister -T tests/drivers/uart/ -v -p nrf52_bsim \ --fixture gpio_loopback -- -uart0_loopback Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
common:
|
|
tags:
|
|
- drivers
|
|
- uart
|
|
harness: ztest
|
|
platform_allow:
|
|
- nrf52840dk_nrf52840
|
|
- nrf52_bsim
|
|
harness_config:
|
|
fixture: gpio_loopback
|
|
depends_on: gpio
|
|
tests:
|
|
drivers.uart.pm:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
- CONFIG_UART_ASYNC_API=n
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
|
|
|
|
drivers.uart.pm.no_rxpin:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
- CONFIG_UART_ASYNC_API=n
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
|
|
extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;nrf_rx_disable.overlay"
|
|
|
|
drivers.uart.pm.enhanced_poll:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
- CONFIG_UART_ASYNC_API=n
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
|
|
|
|
drivers.uart.pm.int_driven:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=y
|
|
- CONFIG_UART_0_INTERRUPT_DRIVEN=y
|
|
- CONFIG_UART_ASYNC_API=n
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
|
|
|
|
drivers.uart.pm.int_driven.enhanced_poll:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=y
|
|
- CONFIG_UART_0_INTERRUPT_DRIVEN=y
|
|
- CONFIG_UART_ASYNC_API=n
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
|
|
|
|
drivers.uart.pm.async:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
- CONFIG_UART_ASYNC_API=y
|
|
- CONFIG_UART_0_ASYNC=y
|
|
- CONFIG_UART_0_NRF_HW_ASYNC=y
|
|
- CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
|
|
- CONFIG_NRFX_TIMER2=y
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
|
|
|
|
drivers.uart.pm.async.enhanced_poll:
|
|
extra_configs:
|
|
- CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
- CONFIG_UART_ASYNC_API=y
|
|
- CONFIG_UART_0_ASYNC=y
|
|
- CONFIG_UART_0_NRF_HW_ASYNC=y
|
|
- CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
|
|
- CONFIG_NRFX_TIMER2=y
|
|
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
|