summaryrefslogtreecommitdiff
path: root/tools/env_utility.py
AgeCommit message (Collapse)Author
2025-08-26utest: move entry from examples to utestChen Wang
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 <[email protected]>
2025-01-11[tools] Add sdk_cfg.json setting for env CC detectionBernard Xiong
2024-08-28[tools] fix the SDK path issue in env script.bernard
2024-08-06[tools] fix the SDK package path issuebernard
2024-07-31[tools/env]统一tools中env相关的接口,优化env部分路径拼接 ↵LaterComer
(#9185) * 统一tools中env相关的接口到env_utility.py文件,并同步调整ci * 移除非本提交的文件 --------- Co-authored-by: Meco Man <[email protected]>