summaryrefslogtreecommitdiff
path: root/components/utilities/utest/utest.c
AgeCommit message (Collapse)Author
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-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-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-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-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-01-09[core] 使用rt_memcpy rt_memset代替memcpy memsetMeco Man
2021-12-29[armclang] 使用__clang__代替__CLANG_ARMMeco Man
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
2019-09-14[components/utilities/utest]修正无测试用例时,执行utest_run时跑� ↵liruncong
�问题. utest_init增加__CLANG_ARM编译开关判断
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]>
2019-01-22[components][utest] 将 utest_assert.h 加入 ↵MurphyZhao
utest.h,以后测试用例仅需要包含 utest.h [components][utest] 增加 buf 类型的字节比较 assert 宏 [components][utest] 修复错误日志打印的输出类型为 ERR 级别 Signed-off-by: MurphyZhao <[email protected]>
2018-12-08[components/utilities/utest] 修复 gcc 编译警告MurphyZhao
[components/utilities/utest] 移除组件的版本号 [components/utilities/utest] 优化 basename 函数的处理 Signed-off-by: MurphyZhao <[email protected]>
2018-12-06[components/utilities/utest] 完善代码,增加注释MurphyZhao
Signed-off-by: MurphyZhao <[email protected]>
2018-12-06[components/utilities] [Kconfig] 增加 kconfig RT_USING_UTEST 配置MurphyZhao
[components/utilities] [utest] 增加 testcase 运行超时时间参数 Signed-off-by: MurphyZhao <[email protected]>
2018-12-05【更新】utest gcc 链接符MurphyZhao
Signed-off-by: MurphyZhao <[email protected]>
2018-11-30[components/utilities][add] 增加测试框架 utest 代码MurphyZhao
Signed-off-by: MurphyZhao <[email protected]>