From a732379d62d9033cdbce37362c32314c5c0c3c75 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 14 Nov 2024 07:12:51 -0500 Subject: [PATCH] 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 --- tests/subsys/display/cfb/basic/testcase.yaml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/subsys/display/cfb/basic/testcase.yaml b/tests/subsys/display/cfb/basic/testcase.yaml index 21cf13c5493..6d4b2e1f3b6 100644 --- a/tests/subsys/display/cfb/basic/testcase.yaml +++ b/tests/subsys/display/cfb/basic/testcase.yaml @@ -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