Commit c0ce237d authored by Abderrahmane Jarmouni's avatar Abderrahmane Jarmouni Committed by Carles Cufi
Browse files

tests: lib: gui: lvgl: add stm32 test cases



Add test cases for stm32h747i_disco_stm32h747xx_m7.

Signed-off-by: default avatarAbderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
parent 52f318c8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=2048
CONFIG_MAIN_STACK_SIZE=2048

CONFIG_DUMMY_DISPLAY=n

CONFIG_NOCACHE_MEMORY=y
+46 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 STMicroelectronics
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&sdmmc1 {
        sdmmc {
		compatible = "zephyr,sdmmc-disk";
	};
};

/delete-node/ &storage_partition;

&flash0 {
	partitions {
		partition@ff800 {
			reg = <0x000ff800 DT_SIZE_K(2)>;
		};
	};
};

/ {
	fstab {
		compatible = "zephyr,fstab";
		lfs1: lfs1 {
			compatible = "zephyr,fstab,littlefs";
			read-size = <32>;
			prog-size = <32>;
			cache-size = <256>;
			lookahead-size = <64>;
			block-cycles = <512>;
			partition = <&storage_partition>;
			mount-point = "/lfs1";
		};
	};
};

&mt25ql512ab1 {
	partitions {
		storage_partition: partition@0 {
			reg = <0x0 DT_SIZE_M(64)>;
			label = "storage";
		};
	};
};
+10 −0
Original line number Diff line number Diff line
CONFIG_DISK_DRIVERS=y
CONFIG_DISK_ACCESS=y

CONFIG_FS_LITTLEFS_BLK_DEV=y

CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=2048
CONFIG_MAIN_STACK_SIZE=2048

CONFIG_FLASH=n
CONFIG_FLASH_MAP=n
+0 −6
Original line number Diff line number Diff line
@@ -71,8 +71,6 @@ ZTEST(lvgl_screen, test_add_delete_screen)

	lv_scr_load(new_screen);

	lv_task_handler();

	lv_obj_t *act_screen = lv_scr_act();

	zassert_equal_ptr(act_screen, new_screen, "New screen not active");
@@ -81,8 +79,6 @@ ZTEST(lvgl_screen, test_add_delete_screen)

	lv_obj_del(new_screen);

	lv_task_handler();

	act_screen = lv_scr_act();
	zassert_equal_ptr(act_screen, default_screen,
			"Default screen not active");
@@ -96,8 +92,6 @@ ZTEST_USER(lvgl_fs, test_add_img)

	lv_img_set_src(img, IMG_FILE_PATH);
	lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);

	lv_task_handler();
}


+60 −7
Original line number Diff line number Diff line
@@ -2,35 +2,88 @@ common:
  tags:
    - display
    - gui
tests:
  libraries.gui.lvgl:
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
tests:
  libraries.gui.lvgl: {}
  libraries.gui.lvgl.dynamic.heap.libc:
    filter: CONFIG_FULL_LIBC_SUPPORTED
    extra_configs:
      - CONFIG_REQUIRES_FULL_LIBC=y
      - CONFIG_LV_Z_BUFFER_ALLOC_DYNAMIC=y
      - CONFIG_LV_Z_MEM_POOL_HEAP_LIB_C=y
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.dynamic.pool.sys_heap:
    extra_configs:
      - CONFIG_LV_Z_BUFFER_ALLOC_DYNAMIC=y
      - CONFIG_LV_Z_MEM_POOL_SYS_HEAP=y
      - CONFIG_LV_Z_MEM_POOL_SIZE=98304
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.16bit:
    extra_configs:
      - CONFIG_LV_COLOR_DEPTH_16=y
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.8bit:
    extra_configs:
      - CONFIG_LV_COLOR_DEPTH_8=y
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.mono:
    extra_configs:
      - CONFIG_LV_COLOR_DEPTH_1=y
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.16bit.swap:
    extra_configs:
      - CONFIG_LV_COLOR_DEPTH_16=y
      - CONFIG_LV_COLOR_16_SWAP=y
    platform_allow:
      - native_posix/native/64
      - native_sim/native/64
      - native_sim
    integration_platforms:
      - native_sim
  libraries.gui.lvgl.stm32h747i_disco_m7:
    platform_allow: stm32h747i_disco/stm32h747xx/m7
    extra_args:
      - SHIELD=st_b_lcd40_dsi1_mb1166
    tags:
      - shield
  libraries.gui.lvgl.stm32h747i_disco_m7_blk:
    platform_allow: stm32h747i_disco/stm32h747xx/m7
    extra_configs:
      - CONFIG_SDMMC_STM32_HWFC=y
      - CONFIG_NOCACHE_MEMORY=y
      - CONFIG_DUMMY_DISPLAY=n
    extra_args:
      - SHIELD=st_b_lcd40_dsi1_mb1166
      - OVERLAY_CONFIG=prj_blk.conf
    tags:
      - shield