Skip to content

Commit a732379

Browse files
committed
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 <[email protected]>
1 parent f537cf3 commit a732379

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/subsys/display/cfb/basic/testcase.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,45 @@ common:
66
- display
77
- drivers
88
- cfb
9-
filter: dt_chosen_enabled("zephyr,display")
10-
build_only: true # The CI environment has no display device
9+
harness: display
10+
platform_allow:
11+
- native_sim
1112
tests:
1213
display.cfb.basic.mono01:
13-
filter: dt_compat_enabled("zephyr,sdl-dc")
1414
extra_configs:
1515
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
1616
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
1717
display.cfb.basic.mono10:
18-
filter: dt_compat_enabled("zephyr,sdl-dc")
1918
extra_configs:
2019
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
2120
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
2221
display.cfb.basic.mono01.lsbfirst:
23-
filter: dt_compat_enabled("zephyr,sdl-dc")
2422
extra_configs:
2523
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
2624
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
2725
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
2826
display.cfb.basic.mono10.lsbfirst:
29-
filter: dt_compat_enabled("zephyr,sdl-dc")
3027
extra_configs:
3128
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
3229
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
3330
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
3431
display.cfb.basic.mono01.msbfirst_font:
35-
filter: dt_compat_enabled("zephyr,sdl-dc")
3632
extra_configs:
3733
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
3834
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
3935
- CONFIG_TEST_MSB_FIRST_FONT=y
4036
display.cfb.basic.mono10.msbfirst_font:
41-
filter: dt_compat_enabled("zephyr,sdl-dc")
4237
extra_configs:
4338
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
4439
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
4540
- CONFIG_TEST_MSB_FIRST_FONT=y
4641
display.cfb.basic.mono01.lsbfirst.msbfirst_font:
47-
filter: dt_compat_enabled("zephyr,sdl-dc")
4842
extra_configs:
4943
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO01=y
5044
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
5145
- CONFIG_SDL_DISPLAY_MONO_MSB_FIRST=n
5246
- CONFIG_TEST_MSB_FIRST_FONT=y
5347
display.cfb.basic.mono10.lsbfirst.msbfirst_font:
54-
filter: dt_compat_enabled("zephyr,sdl-dc")
5548
extra_configs:
5649
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_MONO10=y
5750
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n

0 commit comments

Comments
 (0)