samples: display: specific fixture name
add display type for fixtures to avoid conflcts in NXP platform 1. add required regex for console harness. 2. add message after processing, ensure the flow is OK 3. reduce the test time in TEST mode Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
parent
b16b161d1f
commit
de104f2cc6
3 changed files with 26 additions and 4 deletions
|
@ -17,6 +17,12 @@ tests:
|
|||
- CONFIG_SDL_DISPLAY=n
|
||||
- CONFIG_TEST=y
|
||||
tags: display
|
||||
harness: console
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
type: one_line
|
||||
regex:
|
||||
- "Display sample for (.*)"
|
||||
sample.display.g1120b0mipi:
|
||||
platform_allow: mimxrt595_evk/mimxrt595s/cm33
|
||||
tags: display
|
||||
|
@ -26,8 +32,14 @@ tests:
|
|||
- CONFIG_PM=y
|
||||
- CONFIG_PM_DEVICE=y
|
||||
- CONFIG_IDLE_STACK_SIZE=400
|
||||
- CONFIG_TEST=y
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
fixture: fixture_display_g1120b0mipi
|
||||
type: multi_line
|
||||
regex:
|
||||
- "sample: Display sample for (.*)"
|
||||
- "Display starts"
|
||||
- "Display sample test mode done (.*)"
|
||||
sample.display.builtin:
|
||||
# This test case is intended to insure that this sample builds & runs
|
||||
# correctly for all boards that have a supported built-in display.
|
||||
|
@ -59,6 +71,9 @@ tests:
|
|||
extra_args: SHIELD=rk043fn02h_ct
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
type: one_line
|
||||
regex:
|
||||
- "Display sample for (.*)"
|
||||
sample.display.shield:
|
||||
# This test case is intended to verify support for shields on boards
|
||||
# known to support them. It is not intended to cover all combinations
|
||||
|
@ -68,6 +83,9 @@ tests:
|
|||
harness: console
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
type: one_line
|
||||
regex:
|
||||
- "Display sample for (.*)"
|
||||
extra_args:
|
||||
- platform:lpcxpresso55s69/lpc55s69/cpu0:SHIELD=adafruit_2_8_tft_touch_v2
|
||||
- platform:nrf52840dk/nrf52840:SHIELD=ssd1306_128x32
|
||||
|
|
|
@ -349,13 +349,15 @@ int main(void)
|
|||
x = 0;
|
||||
y = capabilities.y_resolution - rect_h;
|
||||
|
||||
LOG_INF("Display starts");
|
||||
while (1) {
|
||||
fill_buffer_fnc(BOTTOM_LEFT, grey_count, buf, buf_size);
|
||||
display_write(display_dev, x, y, &buf_desc, buf);
|
||||
++grey_count;
|
||||
k_msleep(grey_scale_sleep);
|
||||
#if CONFIG_TEST
|
||||
if (grey_count >= 1024) {
|
||||
if (grey_count >= 30) {
|
||||
LOG_INF("Display sample test mode done %s", display_dev->name);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -40,6 +40,8 @@ tests:
|
|||
- mimxrt595_evk/mimxrt595s/cm33
|
||||
integration_platforms:
|
||||
- mimxrt1170_evk/mimxrt1176/cm7
|
||||
harness_config:
|
||||
fixture: fixture_display_rk055hdmipi4m
|
||||
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166:
|
||||
filter: dt_compat_enabled("orisetech,otm8009a")
|
||||
platform_allow: stm32h747i_disco/stm32h747xx/m7
|
||||
|
@ -82,7 +84,7 @@ tests:
|
|||
harness: console
|
||||
extra_args: SHIELD=rk043fn66hs_ctg
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
fixture: fixture_display_rk043fn66hs_ctg
|
||||
samples.subsys.display.lvgl.rk043fn02h_ct:
|
||||
platform_allow:
|
||||
- mimxrt1064_evk
|
||||
|
@ -95,4 +97,4 @@ tests:
|
|||
harness: console
|
||||
extra_args: SHIELD=rk043fn02h_ct
|
||||
harness_config:
|
||||
fixture: fixture_display
|
||||
fixture: fixture_display_rk043fn02h_ct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue