tests: display: cfb: 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>
This commit is contained in:
Anas Nashif 2024-11-14 07:12:51 -05:00
commit a732379d62

View file

@ -6,52 +6,45 @@ common:
- display
- drivers
- cfb
filter: dt_chosen_enabled("zephyr,display")
build_only: true # The CI environment has no display device
harness: display
platform_allow:
- native_sim
tests:
display.cfb.basic.mono01:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
display.cfb.basic.mono10:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
display.cfb.basic.mono01.lsbfirst:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
display.cfb.basic.mono10.lsbfirst:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
display.cfb.basic.mono01.msbfirst_font:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_TEST_MSB_FIRST_FONT=y
display.cfb.basic.mono10.msbfirst_font:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_TEST_MSB_FIRST_FONT=y
display.cfb.basic.mono01.lsbfirst.msbfirst_font:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
- CONFIG_TEST_MSB_FIRST_FONT=y
display.cfb.basic.mono10.lsbfirst.msbfirst_font:
filter: dt_compat_enabled("zephyr,sdl-dc")
extra_configs:
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n