summaryrefslogtreecommitdiff
path: root/components/utilities/utest
AgeCommit message (Collapse)Author
2026-09-01[utest][rtc] Add RTC time and alarm testsCYFS
2026-09-01[utest][pwm] Add configurable PWM matrix testCYFS
2026-08-21[fix][libc] fix timegm month overflow calculationHui Su
The original overflow logic used __spm[tm_mon] as the current month's length when normalizing tm_mday. This produced incorrect dates after crossing month boundaries and left zero or negative days unnormalized. Use the difference between adjacent cumulative day offsets with leap-year handling. Normalize overflow in tm_sec, tm_min, tm_hour, tm_mday, and tm_mon to keep the affected broken-down fields normalized. Add regression tests for month boundaries, leap years, large offsets, zero and negative days, negative time fields, combined overflow, and boundary carry cases. Close #11686 Signed-off-by: Hui Su <[email protected]>
2026-07-04[components][spi] add utest casesCYFS
2026-06-23[utest] fix testcase init failure summaryCYFS
2026-06-22[utest][pin] add pin loopback utest (#11445)CYFS
* [utest][pin] add pin loopback utest * [utest][pin] add BSP CI coverage * [utest][pin] fix BSP CI config * [utest][pin] fix ra8p1 utest link section
2026-06-12utest: move ci configs to github directoryCYFS
Signed-off-by: CYFS <[email protected]>
2026-06-12utest: move utestcases Kconfig to utest componentCYFS
Signed-off-by: CYFS <[email protected]>
2025-10-20utest/msh: supports autocomplete of utest cases for utest_run (#10701)Yuqiang Wang
* utest/msh: supports autocomplete of utest cases for utest_run * docs/utest: explanation of adding the automatic completion function for utest_run * fix[utest]: Improvement of annotation description * remove outdated code
2025-10-16utest: Improve the strings displayed in the menuChen Wang
Use "Test" instead of "Unit Testcases" to make string shorter. Use uppercase to make it look more eye-catching. Signed-off-by: Chen Wang <[email protected]>
2025-10-15utest: UTEST_SELF_PASS_TC -> RT_UTEST_SELF_PASSChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-09-26utest: remove RT_UTEST_USING_ALL_CASESChen Wang
Many modules' utests currently don't support enabling all tests at once. Furthermore, some modules' tests are complex, for example due to their numerous dependencies on other modules. This makes it nearly impossible to enable all tests with a single global switch. Consequently, the previously defined `RT_UTEST_USING_ALL_CASES` has lost its original meaning. We recommend deprecating this configuration switch. If a module needs to enable a group of functional tests through its own configuration, this local enable all switch should be implemented by the module itself, and a global RTT enable switch will no longer be provided. If such a requirement arises in the future, we recommend careful design, especially considering how to ensure that turning on a single switch enables all dependencies for all involved modules for ease of use. Signed-off-by: Chen Wang <[email protected]>
2025-09-15utest: update naems using new ruleChen Wang
The names of the utest cases defined in their respective modules have been updated. Some utest case names are not yet in their respective modules because their paths need to be finalized before their unique names can be determined. Currently, these names do not appear to conflict with the unified names. These include: - utest cases still in examples - bsp/qemu-virt64-riscv/applications/test/test_vector/test_vector.c. The entire test case should probably be placed in libcpu/risc-v rather than bsp. Signed-off-by: Chen Wang <[email protected]>
2025-09-02utest/utest: intergare testcases into utest framework (#10665)Chen Wang
* utest: move testcases of Utest from example to Utest folder Create unit-test-cases for the Utest framework subsystem according to "How to add utest cases into RT-Thread for your module." [1] Link: https://rt-thread.github.io/rt-thread/page_component_utest.html#autotoc_md804 [1] The original `components/utilities/utest` directory already has unit testcases, which are more comprehensive than the testcases in `examples/utest/testcases/utest/`. Therefore, simply deleted the test cases in `examples` and used the existing testcases in the utest framework. Signed-off-by: Chen Wang <[email protected]> * utest/utest: rename name and add license text Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2025-06-10componnets: utest: fix case-name matching problemChen Wang
There is a problem with the matching of case names in the original code. Due to original code use memcmp with len, if the input case name and the existing case name have an inclusion relationship, for example, if the actual case name is "gpip_irq", and run `utest_run gpio` will also match successfully, but it's not expected. Modify the logic of exact matching and use strcmp instead. Keep the original wildcard logic, that is, `utest_run gpio*` can match both "gpio_irq" and "gpio". Signed-off-by: Chen Wang <[email protected]>
2025-03-10feat: ci script associated with auto_utest. (#9933)Yuqiang Wang
* feat: ci script associated with auto_utest.
2025-01-15[utest] fix twice operation of uassertMeco Man
2025-01-09[utest] make RT_USING_CI_ACTION to be clearMeco Man
RT_USING_CI_ACTION will select RT_UTEST_USING_AUTO_RUN and RT_UTEST_USING_ALL_CASES
2025-01-07[utest] 修复UTEST_UNIT_RUN嵌套宏时将宏直接输出的问题Meco Man
2025-01-07[utest] add float operatorsMeco Man
uassert_float_equal and uassert_float_not_equal
2025-01-03[utest] add rt_memset test caseMeco Man
2024-12-24[utest] implement uassert_ptr_equal and uassert_ptr_not_equalMeco Man
2024-12-21[utest] optimize the utest to support new CIMeco Man
2024-12-21[klibc] format codeMeco Man
2024-11-18[utest] format code and remove duplicate header fileMeco Man
2024-06-12[utest] remove delay for on thread testing (#9053)Shell
* [utest] remove delay for on thread testing The delay is introduced from 0dc7b9a5a26030a945723569c64f5be46bd70ae1. Though this is unnecessary for on sync utest. So this is removed by a new entry and delay for asynchronous utest only. Signed-off-by: Shell <[email protected]> * fixup: msh cmd prototype --------- Signed-off-by: Shell <[email protected]>
2023-06-10[simulator] 模拟器可以使用 utest 测试框架 (#7644)zhkag
Co-authored-by: Man, Jianting (Meco) <[email protected]>
2023-04-22Utest win (#7347)朱天龙 (Armink)
* [tools] Add `--add-rtconfig` args for scons when you want to add macro definitions build time. * [utilities][utest] Add VS simulator support.
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-01-09[core] 使用rt_memcpy rt_memset代替memcpy memsetMeco Man
2021-12-29[armclang] 使用__clang__代替__CLANG_ARMMeco Man
2021-09-11[utest] fix libc issueBernardXiong
2021-08-24【utest】fix TC_FAIL_LIST_MARK_FAILED 下标计算错误的问题guozhanxin
2021-08-19[utest] 完善代码,添加对tc_num的判断guozhanxin
2021-08-18[add] utest add fail_list.guozhanxin
2021-03-08[compoenets] auto & manual formattedMeco Man
2021-02-09[components]SECTION=>RT_SECTION(与catch2中SECTION冲突)liruncong
2020-12-19[SConscript]update group nameyangjie
2020-11-20[SConscript]rename group nameyangjie11
2020-08-29utest:fixed compile errmichael
2019-09-14[components/utilities/utest]修正无测试用例时,执行utest_run时跑� ↵liruncong
�问题. utest_init增加__CLANG_ARM编译开关判断
2019-06-24fix cpp thread class errortyustli
2019-04-12Update all of debug log definition to DBG_TAG and DBG_LVL.armink
2019-03-19[components/utilities/utest] 增加测试运行测试打印MurphyZhao
Signed-off-by: MurphyZhao <[email protected]>
2019-03-06Remove the DBG_COLOR and DBG_ENABLE definition.armink
2019-02-15[components][utest] 增加 utest_help,用于输出帮助信息MurphyZhao
[components][utest] 对于不支持的测试用例,增加输出日志 Signed-off-by: MurphyZhao <[email protected]>
2019-02-14[components][utest] utest_run 增加 loop ↵MurphyZhao
功能,方便持续运行单一一个测试用例; [components][utest] utest_run 指定测试用例名字的时候,增加通配符 `*` 的支持,及支持仅指定测试用例名字的前部分字节来运行测试用例。该功能会执行匹配成功的所有测试用例。 Signed-off-by: MurphyZhao <[email protected]>
2019-02-14[components][utest] utest 延时启动MurphyZhao
在使用 utest 的线程模式的时候,utest_run 命令执行完成后,finsh 会输出 `msh >`,干扰了 utest 内部的日志结构,因此默认在 utest 启动前增加延时。 Signed-off-by: MurphyZhao <[email protected]>
2019-02-13[components][utest] 增加 utest 线程模式MurphyZhao
Signed-off-by: MurphyZhao <[email protected]>
2019-01-25[component][utest] 增加 utest 日志输出级别配置,提供 ASSERT 和 ↵MurphyZhao
ALL 两个级别,便于测试用例控制 log 输出 Signed-off-by: MurphyZhao <[email protected]>