diff --git a/samples/drivers/display/sample.yaml b/samples/drivers/display/sample.yaml index d242243257c..066138eb165 100644 --- a/samples/drivers/display/sample.yaml +++ b/samples/drivers/display/sample.yaml @@ -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 diff --git a/samples/drivers/display/src/main.c b/samples/drivers/display/src/main.c index 09c8f86acd4..cdb4c2b4c8d 100644 --- a/samples/drivers/display/src/main.c +++ b/samples/drivers/display/src/main.c @@ -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 diff --git a/samples/subsys/display/lvgl/sample.yaml b/samples/subsys/display/lvgl/sample.yaml index 2b862b06ebd..ebb8b04270e 100644 --- a/samples/subsys/display/lvgl/sample.yaml +++ b/samples/subsys/display/lvgl/sample.yaml @@ -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