test(vector): add demo vector graphic test (#9130)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEX
2025-10-28 02:49:35 +08:00
committed by GitHub
parent 2a667fde70
commit b48b6217af
9 changed files with 35 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

@@ -0,0 +1,35 @@
#if LV_BUILD_TEST
#include "../lvgl.h"
#include "unity/unity.h"
#include "../demos/lv_demos.h"
#ifndef NON_AMD64_BUILD
#define EXT_NAME ".lp64.png"
#else
#define EXT_NAME ".lp32.png"
#endif
void setUp(void)
{
/* Function run before every test */
}
void tearDown(void)
{
/* Function run after every test */
lv_obj_clean(lv_screen_active());
}
void test_demo_vector_graphic(void)
{
lv_demo_vector_graphic_buffered();
TEST_ASSERT_EQUAL_SCREENSHOT("demo_vector_graphic_buffered" EXT_NAME);
lv_obj_clean(lv_screen_active());
lv_demo_vector_graphic_not_buffered();
TEST_ASSERT_EQUAL_SCREENSHOT("demo_vector_graphic_not_buffered" EXT_NAME);
}
#endif