zephyr/tests/drivers/display/display_read_write/testcase.yaml
Anas Nashif 9cabb89969 tests: drivers: display: fix filtering
Test was marked build only with filters in each scenario looking for
sdl-dc which is only available on native_sim, so cut the chase and use
platform_only to narrow things down to native_sim directly instead of
building the world to get information we already know.

reduces build/run time from 78s to 17s on invocation of twister with
default options, saves a ton more when running twister with --all.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-11-05 10:56:29 -06:00

72 lines
2.3 KiB
YAML

# Copyright 2024 (c) TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0
common:
tags:
- drivers
- display
harness: display
tests:
drivers.display.read_write.sdl.argb8888:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_ARGB_8888=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.sdl.rgb888:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_888=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.sdl.mono01:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.sdl.mono10:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.sdl.mono01.lsbfirst:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
drivers.display.read_write.sdl.mono10.lsbfirst:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
drivers.display.read_write.sdl.rgb565:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_RGB_565=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.sdl.bgr565:
platform_allow:
- native_sim
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
drivers.display.read_write.ili9340:
tags:
- shield
extra_args:
- SHIELD=adafruit_2_8_tft_touch_v2
- EXTRA_DTC_OVERLAY_FILE=adafruit_2_8_tft_touch_rgb565.overlay
extra_configs:
- CONFIG_ILI9XXX_READ=y
# Use platform_allow, because we cannot filter the test based on the
# presence of the arduino_spi DT nodelabel
platform_allow:
- mimxrt685_evk/mimxrt685s/cm33