rt-thread/tools
Chen Wang 06c5cc0846 utest: move entry from examples to utest
Change the entry of utest's Kconfig from
'examples/utest/testcases/Kconfig' to
'Kconfig.utestcases'.

Modified the build scripts where the path name
is "examples/utest/testcases/Kconfig" and changed
it to 'Kconfig.utestcases', otherwise build
operations such 'scons --dist' may fail.

In the future, the testcase source code of
utest will be placed in each module for
maintenance, but the entry of Kconfig will all
be placed 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
here and there in the menuconfig interface.

For each module, you can maintain unit-test
in a unified manner in the following way:
- Create a subdirectory named 'utest' in the
  directory where your module is located.
- Store the following files in the utest subdirectory:
  - Unit test case program source code files for this
    module.
  - Kconfig file, add configuration options for the
    unit test files of this module, the recommended
    option is named RT_UTEST_TC_USING_XXXX, XXXX is the
    global unique module name of this module.
  - SConscript file, note that when adding src files,
    in addition to relying on RT_UTEST_TC_USING_XXXX,
    you must also rely on RT_UTEST_USING_ALL_CASES, the
    two dependencies are in an "or" relationship. The
    role of RT_UTEST_USING_ALL_CASES is that once this
    option is turned on, all unit tests will be enabled
    to avoid selecting one by one.

After completing the above steps, add the path of the
Kconfig file of utest of this module to the
Kconfig.utestcases file.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-08-26 10:26:47 +08:00
..
ci Fix Darwin detection and URL 2025-08-10 11:33:33 +08:00
docs [Feature][Tools] Add support for package.json, refactor BuildPackage function to handle new format. 2025-08-07 09:32:45 +08:00
hello [Feature][Tools] Add support for package.json, refactor BuildPackage function to handle new format. 2025-08-07 09:32:45 +08:00
ng [Feature][Tools] Add support for package.json, refactor BuildPackage function to handle new format. 2025-08-07 09:32:45 +08:00
release [scons] code cleanup for scons script. (#10429) 2025-06-25 15:06:45 +08:00
targets [xuantie/bsp] 修正生成玄铁CDK工程脚本并适配E906 BSP #10616 2025-08-19 09:41:30 +08:00
testcases [scons] code cleanup for scons script. (#10429) 2025-06-25 15:06:45 +08:00
WCS.py [scons] code cleanup for scons script. (#10429) 2025-06-25 15:06:45 +08:00
as.sh update 2021-03-05 09:01:14 +08:00
attachconfig.py [scons] ci.attachconfig.yml is used in combination with scons 2025-01-22 18:21:17 -05:00
building.py [tools]:修复iar添加宏不完全 (#10507) 2025-07-15 13:33:40 +08:00
clang-analyze.py [tools] Python 3 compatibility support 2021-04-05 12:11:14 +08:00
compile_commands.py [fix][feature]Default to the previous fully packaged logic, add a 'dist-strip' option for simplified packaging. 2025-03-10 13:47:25 +08:00
cscope.py [Tools] Add copyright information for scons script files 2015-01-23 14:34:09 +08:00
dtc.py [TOOLS] Add DTC (Devicetree Compiler) tools 2025-06-30 09:42:39 +08:00
env_utility.py utest: move entry from examples to utest 2025-08-26 10:26:47 +08:00
gcc.py fix DeprecationWarning: invalid escape sequence. 2024-06-10 14:26:44 +08:00
llvm_arm.py [tools] support LLVMEmbeddedToolchainForArm-17.0.1 2023-10-19 12:14:01 -04:00
mkdist.py utest: move entry from examples to utest 2025-08-26 10:26:47 +08:00
mkromfs.py [tools] format python code 2022-08-02 23:15:14 -04:00
options.py [tools] add vsc_workspace target in scons. 2025-07-08 09:29:13 +08:00
package.py [Feature][Tools] Add support for package.json, refactor BuildPackage function to handle new format. 2025-08-07 09:32:45 +08:00
preprocessor.py [scons] code cleanup for scons script. (#10429) 2025-06-25 15:06:45 +08:00
requirements.txt ci: fix dep miss (#9965) 2025-02-03 16:42:49 +08:00
rtthread.mk [tools] Optimization the EXTERN_LIB variable use 2021-06-04 23:53:29 +08:00
sconsui.py [HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528) 2023-05-18 10:42:44 -04:00
utils.py [tools] add more c++ src file type 2024-12-11 22:27:05 -05:00
vscpyocd.py [tools] 增加vscode pyocd下载命令 scons --target=vsc --pack=xxx 2023-10-22 10:58:16 -04:00
win32spawn.py [scons] code cleanup for scons script. (#10429) 2025-06-25 15:06:45 +08:00
wizard.py [tools] add more c++ src file type 2024-12-11 22:27:05 -05:00