utest: move utestcases Kconfig to utest component

Signed-off-by: CYFS <2805686936@qq.com>
This commit is contained in:
CYFS
2026-06-12 14:22:53 +08:00
committed by Rbb666
parent 103d4c1d92
commit bb4aace00f
7 changed files with 55 additions and 50 deletions
+2 -2
View File
@@ -308,7 +308,7 @@ The utest_run tool now supports dynamic auto-completion for test case names. Aft
# How-to add utest cases into RT-Thread for your module
The source code of utest cases is recommended to be placed in each module for maintenance, but the entry of Kconfig should all be placed(rsourced) in `Kconfig.utestcases` for unified maintenance. In this way, when executing menuconfig, people can enter and configure from one place, avoiding searching for utest configuration switches scattering in the menuconfig interface.
The source code of utest cases is recommended to be placed in each module for maintenance, but the entry of Kconfig should all be placed(rsourced) in `components/utilities/utest/Kconfig` for unified maintenance. In this way, when executing menuconfig, people can enter and configure from one place, avoiding searching for utest configuration switches scattering in the menuconfig interface.
For each module, you can maintain unit testcases in a unified manner in the following way:
@@ -322,7 +322,7 @@ For each module, you can maintain unit testcases in a unified manner in the foll
- `SConscript` file, when adding src files, you need to rely on `RT_UTEST_XXXX`.
After completing the above steps, rsource the path of the Kconfig file of utest of this module to the file `Kconfig.utestcases`.
After completing the above steps, rsource the path of the Kconfig file of utest of this module to the file `components/utilities/utest/Kconfig`.
You can find a good example in <a href="https://github.com/RT-Thread/rt-thread/blob/master/src/klibc/utest/">"klibc"</a>.