summaryrefslogtreecommitdiff
path: root/components/utilities
AgeCommit message (Collapse)Author
2025-10-27fix:[ulog][backend]filter不应与ULOG_USING_COLOR及ULOG_USING_SYSLOG配置 ↵wdfk-prog
有关
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-24RT_TIMER_CTRL_SET_TIME only accept rt_tick_t, pass rt_tick_t instead ↵Yonggang Luo
int/rt_int32_t
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-06feat: Initialize local variables to prevent GCC compilation warningswdfk-prog
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-09-01fix: warnings generated by Kconfig.maosql
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-05-16[building] rename the group name: LIBADT to Utilities. (#10267)Bernard Xiong
* [building] rename the group name: LIBADT to Utilities.
2025-03-10feat: ci script associated with auto_utest. (#9933)Yuqiang Wang
* feat: ci script associated with auto_utest.
2025-02-18[ulog]Fix the problem of file_buf being released incorrectlyRbb666
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-12-20kernel: cleanup debug APIsChen Wang
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this API to LOG_x and remove this API. - `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove them directly. Signed-off-by: Chen Wang <[email protected]>
2024-11-26[components][ulog]add some comments to ulog for supplement.ligr
2024-11-24[klibc] add rt_vsnprintf_std.c and rename RT_KLIBC_USING_VSNPRINTF_LONGLONGMeco Man
2024-11-18[utest] format code and remove duplicate header fileMeco Man
2024-10-07[Bug] [ymodem] last frame's data_sz issue, fixed.sulfurandcu
2024-10-03[components][ulog] ULOG_OUTPUT_LEVEL未定义时,level_output_info产生警告wdfk-prog
2024-07-22[BSP/Phytium]适配最新裸机驱动张衍
2024-06-26fix Compilation error in "driver.c", "completion_up.c", "syslog.c" and ↵Rui
"dlmodule.c". (#9093)
2024-06-20除了bsp之外的Kconfig使用rsource替代sourcelatercomer
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]>
2024-04-19解决LOG_RAW异步输出多条文本的时候会被截断,原因是rt_vsn ↵latercomer
printf会在字符串最后添加\0,ulog.c中的do_output()将\0也压入到ulog.async_rb,当LOG_RAW没有及时输出,那么rb中的字符串被\0截断了,导致没法正确输出LOG_RAW信息
2024-04-13[ymodem] fix the cmd "sy" without close fileEric LGF
2024-03-28sync smart & dfs (#8672)Shell
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2024-02-23🎯 Sync smart & scheduler codes (#8537)Shell
Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2024-01-16[kservice] MT-safe output support (kprintf/kputs)Shell
Signed-off-by: Shell <[email protected]>
2023-10-25🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)xqyjlj
Signed-off-by: Shell <[email protected]> Co-authored-by: Shell <[email protected]>
2023-07-31[components][utilities][var_export] update the var export auto init to ↵朱天龙 (Armink)
board_init.
2023-07-09[components] remove zmodem (#7801)Man, Jianting (Meco)
2023-07-06Merge branch 'master' of https://github.com/RT-Thread/rt-threadwusongjie
2023-07-05Drivers: Support Open Firmware API and model of PICwusongjie
We support OFW API to replace fdt old API, and add IRQ, IO, Platform-Bus, CPUs ... OFW node contorl. To support work with Device Tree or ACPI in drivers that use IRQ, we make a programmable interrupt controller driver's model. Signed-off-by: GuEe-GUI <[email protected]>
2023-07-05Utilities/libadt: support adt API for DMwusongjie
Add reference with rt_atomic in resources' put/get management. Add bitmap operator base on rt_ubase_t. Add hashmap for key->data map management. Signed-off-by: GuEe-GUI <[email protected]>
2023-07-05[ulog] support ulog_async_output_enabledguozhanxin
2023-06-29[libc]更新 libc timer id 分配方式 (#7744)zhkag
2023-06-10[simulator] 模拟器可以使用 utest 测试框架 (#7644)zhkag
Co-authored-by: Man, Jianting (Meco) <[email protected]>
2023-04-25[HUST CSE]fix:uninitialized *p (#7364)Bushilei
Signed-off-by: bushilei <[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.
2023-04-08[DFS] prepare for dfs_v2.0 (#7200)Bernard Xiong
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode. * [BSP] fix code analysis warning * [smart] fix the pointer overflow. * code format * [smart] fix the lwp->lwp_obj checking.
2023-04-04[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)Shicheng Chu