feat(ci): add build test for VG-Lite simulator (#5278)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2024-01-11 14:32:34 +08:00
committed by GitHub
parent 873549150e
commit a4f0ba5f5d
6 changed files with 31 additions and 4 deletions

View File

@@ -43,6 +43,10 @@ include(CTest)
set(LVGL_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(LVGL_TEST_OPTIONS_VG_LITE
-DLV_TEST_OPTION=6
)
set(LVGL_TEST_OPTIONS_MINIMAL_MONOCHROME
-DLV_TEST_OPTION=1
)
@@ -78,7 +82,9 @@ set(LVGL_TEST_OPTIONS_TEST_DEFHEAP
--coverage
)
if (OPTIONS_NORMAL_8BIT)
if (OPTIONS_VG_LITE)
set (BUILD_OPTIONS ${LVGL_TEST_OPTIONS_VG_LITE})
elseif (OPTIONS_NORMAL_8BIT)
set (BUILD_OPTIONS ${LVGL_TEST_OPTIONS_NORMAL_8BIT})
elseif (OPTIONS_16BIT)
set (BUILD_OPTIONS ${LVGL_TEST_OPTIONS_16BIT})

View File

@@ -16,6 +16,7 @@ build_only_options = {
'OPTIONS_16BIT': 'Minimal config, 16 bit color depth',
'OPTIONS_24BIT': 'Normal config, 24 bit color depth',
'OPTIONS_FULL_32BIT': 'Full config, 32 bit color depth',
'OPTIONS_VG_LITE': 'VG-Lite simulator with full config, 32 bit color depth',
}
test_options = {

View File

@@ -62,11 +62,29 @@ typedef void * lv_user_data_t;
***********************/
#define LV_USE_DEV_VERSION
#if !(defined(LV_TEST_OPTION)) || LV_TEST_OPTION == 5
#define LV_COLOR_DEPTH 32
#define LV_DPI_DEF 160
#include "lv_test_conf_full.h"
#elif LV_TEST_OPTION == 6
#define LV_COLOR_DEPTH 32
#define LV_DPI_DEF 160
#define LV_USE_THORVG_INTERNAL 1
/* Use VG-Lite GPU. */
#define LV_USE_DRAW_VG_LITE 1
/* Enbale VG-Lite custom external 'gpu_init()' function */
#define LV_VG_LITE_USE_GPU_INIT 1
/* Enable VG-Lite assert. */
#define LV_VG_LITE_USE_ASSERT 1
/* Simulate VG-Lite hardware using ThorVG */
#define LV_USE_VG_LITE_THORVG 1
#define LV_VG_LITE_THORVG_TRACE_API 1
#include "lv_test_conf_full.h"
#elif LV_TEST_OPTION == 4
#define LV_COLOR_DEPTH 24
#define LV_DPI_DEF 120