Commit Graph

208 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
077cd2e15d ci: use headers for text config instead of CMake 2022-11-25 11:32:14 +01:00
Pablo J. Rogina
d17450a55f
ci(animimg): add unit tests (#3723) 2022-11-08 12:36:36 +01:00
some00
ab2446c247
fix(test cmake): capitalize Ruby_EXECUTABLE variable (#3751) 2022-10-20 12:20:03 +02:00
Johannes Marbach
ffd3b4cdbd
fix(btnmatrix): add lv_obj_get_style_space_...() and use them to consider border width in btnmatrix (#3725) 2022-10-11 21:14:14 +02:00
some00
c3a49327ba
test add valgrind support and address technical debt (#3731)
Test runners are now properly generated by CMake only when needed
2022-10-09 17:06:56 -04:00
Pablo J. Rogina
53465aec94
ci(colorwheel): add unit test (#3719) 2022-10-07 19:05:11 +02:00
Gabor Kiss-Vamosi
affa938ef3 ci(arc, line): add basic render test 2022-10-05 22:05:49 +02:00
Gabor Kiss-Vamosi
243c825b78 ci(report): add only lv_*.c files from the src folder to coverage report 2022-10-05 22:05:24 +02:00
minyiky
d80e86711d
ci(win): add unit test (#3717) 2022-10-03 09:53:59 +02:00
Pablo J. Rogina
059952607a
ci(tabview): add unit test (#3713) 2022-10-03 08:12:05 +02:00
Pablo J. Rogina
613777f623 ci(msgbox): add unit test (#3715) 2022-10-02 23:26:12 +02:00
Carlos Diaz
b14a70705e
ci(roller): add unit tests and cleanup (#3660)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-10-02 23:24:12 +02:00
honey the codewitch
ccb66ca701
feat(tiny_ttf): add glyph caching (#3703)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-10-02 17:48:34 +02:00
Pablo J. Rogina
2888b450f2
ci(calendar): add unit tests (#3704) 2022-09-28 22:24:38 +02:00
honey the codewitch
57e0943b10
feat(tiny_ttf): ttf support (#3680)
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-09-26 17:30:07 +02:00
Gabor Kiss-Vamosi
41c5870e12 ci(test): automatically create missing reference images for TEST_ASSERT_EQUAL_SCREENSHOT 2022-09-21 22:10:20 +02:00
Gabor Kiss-Vamosi
d78e927252 ci: enable discarded-qualifiers warning
related to #3686
2022-09-19 14:26:29 +02:00
Gabor Kiss-Vamosi
d3d11361d9 test: fix warning in test_screenshot_error.h 2022-09-19 11:19:10 +02:00
Mahesh Murty
d89e732634
test(led): add unit tests (#3681) 2022-09-15 22:10:12 +02:00
Mahesh Murty
513d631445
test(btn, btnmatrix): add unit tests (#3642) 2022-09-09 11:31:15 +02:00
Yobe Zhou
f09c04b935
feat(file_explorer): add API to use file explorer (#3601)
Co-authored-by: 100ask <team100ask@outlook.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-09-04 16:57:15 +02:00
Carlos Diaz
46f7384320
test(spinbox) add unit tests (#3575) 2022-08-31 12:09:05 -04:00
Gabor Kiss-Vamosi
327dbb6031 feat(msg): allow using variable address as msg_id 2022-08-25 14:20:43 +02:00
Gabor Kiss-Vamosi
50be1859de fix(ime_pinyin): fix warnings and add it to build tests 2022-08-23 13:11:12 +02:00
Carlos Diaz
430574ed5f
chore(label) make selection interface naming consistent (#3595) 2022-08-18 18:44:18 -04:00
Carlos Diaz
b878a1aed9
ci(test): unit tests for label widget (#3529)
* test(label) Add initial test for constructor

* test(label) Add tests for recolor

* cleanup(label): lv_label_event

* test(label) set text tests

* test(label) Add tests for lv_label_get_letter_pos

* chore(label) Const where possible in lv_label_get_letter_pos

* test(label) Add tests for lv_label_is_char_under_pos

* chore(label) Add const when possible to lv_label_is_char_under_pos

* test(label) Add simple test for lv_label_cut_text

* chore(label) Cleanup lv_label_revert_dots a bit

* test(label) Make tests pass on Build OPTIONS_MINIMAL_MONOCHROME

* test(label) Initial tests for lv_label_get_letter_on

* chore(label) Introduce calculate_x_coordinate helper

* chore(label) Use calculate_x_coordinate in lv_label_get_letter_on

* chore(label) Reduce varible scope in lv_label_get_letter_on

* chore(label) Use calculate_x_coordinate in lv_label_get_letter_pos

This also reduces complexity of lv_label_get_letter_pos from 21 to 19 (measured using python package 'ravioli')

* chore(label) Remove extra lv_anim_set_exec_cb on lv_label_refr_text

* chore(label) Minor edits on docs

* test(label): Remove unfinished tests

* test(label): Add tests for text selection

* Update lv_label.c

Fix formatting
2022-08-17 13:22:29 +02:00
Gabor Kiss-Vamosi
8699c7dcdc ci: protect test.c with #if LV_BUILD_TEST 2022-07-25 21:22:56 +02:00
Gabor Kiss-Vamosi
efa34d00d7 ci(mem): make sys/def heap tests work correctly with the new lv_conf.h settings 2022-07-25 14:37:41 +02:00
Gabor Kiss-Vamosi
efe47b17e4 minor fixes 2022-07-21 23:09:54 +02:00
Gabor Kiss-Vamosi
e42f01a38a fix(make): update lvgl.mk and remove unnecessary mk files 2022-07-20 12:10:00 +02:00
embeddedt
d6e5200013
refactor(style): store constant property IDs with a pointer instead of directly (#3506) 2022-07-20 11:32:40 +02:00
Xiang Xiao
9ed5b3fe06
Sync up Kconfig with lv_config_template.h (#3508)
* fix(config): remove LV_COLOR_16_SWAP related stuff

follow commit 5369d7d473

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(config): remove LV_COLOR_SCREEN_TRANSP related stuff

follow commit 5369d7d473

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-20 11:29:34 +02:00
Gabor Kiss-Vamosi
965552e446 fix: make C tests work again 2022-07-19 17:37:36 +02:00
Gabor Kiss-Vamosi
6104855491 fix(conf): fix a lot of new config realted issues 2022-07-19 17:21:19 +02:00
Gabor Kiss-Vamosi
5369d7d473
arch(conf, api) refactor lv_conf and some API (#3501)
Kconfig and MicroPython config is not updated yet.


* start to refactor lv_conf.h

* further mem refactoring

* create lv_mem_builtin.c/h

* update lv_conf_internal.h

* add lv_strlen and lv_strncpy

* rename LV_DRAW_COMPLEX to LV_USE_DRAW_MASK

* update lv_conf_template

* minor fix
2022-07-19 13:31:42 +02:00
Xiang Xiao
dc1e4c87b0
fix(format): check more source code (#3493)
and sync .pre-commit-config.yaml with scripts/code-format.py

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 15:28:16 +02:00
jadonmmiller
a06e11478e
fix(arc): fix bug with LV_ARC_MODE_REVERSE (#3417) (#3418) 2022-07-04 13:06:26 +02:00
embeddedt
9a48de0f8b
feat(style) add 'inherit' and 'initial' CSS properties (#3390)
Fixes #3086
2022-06-09 20:20:34 -04:00
embeddedt
2148ed99b0
fix(mem): fix TLSF returning the wrong pointer when the requested size is too large (#3325)
* test(mem) add test for #3324

* fix(tlsf) don't return the same pointer if the requested size is too large
2022-05-14 22:04:13 +02:00
embeddedt
85e3e23878
ci bump test timeout to 30 seconds [skip ci]
The ARM runners are a lot slower.
2022-05-09 13:40:48 -04:00
embeddedt
bae6bc08e0
Revert "test(mem) add test for #3324"
This reverts commit 97006647d8.
2022-05-09 13:27:05 -04:00
embeddedt
97006647d8
test(mem) add test for #3324 2022-05-04 09:19:00 -04:00
embeddedt
b83c5aa9bc
ci make sure LVGL assertions cause tests to fail 2022-05-04 09:15:30 -04:00
embeddedt
003f18f86c
ci limit tests to 15 seconds 2022-05-04 09:08:04 -04:00
embeddedt
ea79cee01a
ci add Makefile test 2022-04-29 19:38:04 -04:00
Gabor Kiss-Vamosi
8481e3a33b ci(switch): fix mem leak test 2022-04-21 21:18:40 +02:00
Gabor Kiss-Vamosi
98660a861d fix(fs): fix cached read and add unit test for lv_fs
fixes: #3262
2022-04-21 20:45:33 +02:00
Gabor Kiss-Vamosi
1b219654db chore: code formatting and fix warnings 2022-04-06 22:18:30 +02:00
Carlos Diaz
2b6cc3bc9c
ci(slider): add unit test (#3198)
* slider: Refactor LV_SLIDER_KNOB_COORD and draw_knob

The `hor` parameter of this macro was always true, ending up always using the
left side of the ternary operator, with this refactor we eliminate the `hor`
parameter and remove the ternary operator it was used for.

This macro is only used in the `draw_knob` event handler, so it helps with its
initial cleanup.

* test(slider): Test documented default properties

* test(slider): Tests for LV_EVENT_KEY with valid and invalid keys

* feat(slider): Add helper to know if slider is horizontal

* chore(slider): Cleanup LV_EVENT_PRESSING handler

Reduce scope of variables where possible and use LV_CLAMP

* chore(slider): Cleanup draw_knob

* test(slider): Add tests for LV_EVENT_RELEASED

* test(slider): Add note about left_knob_focus

* test(slider): Initial test for hit test

* test(slider): Add tests for different slider modes

* chore(slider): cleanup draw_knob

* chore(slider): Cleanup position_knob

* test(slider): Move group configuration to setUp

* test(slider): Refactor tests with feedback

* add test_ranged_mode_adjust_with_encoder

* code formatting

* tests(slider): Remove direct usages of left_knob_focus

* test(slider): Remove unused variable

* Revert "test(slider): Refactor tests with feedback"

This reverts commit b274f829ec.

* test(slider): Add missing variable

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-03-23 13:05:30 +01:00
Xiang Xiao
4c4f954059
chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:25:51 +01:00