mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
utest: remove RT_UTEST_USING_ALL_CASES
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 <unicorn_wang@outlook.com>
This commit is contained in:
@@ -216,13 +216,6 @@ config RT_USING_UTEST
|
||||
default n
|
||||
help
|
||||
If enable this option, the test cases will be run automatically when board boot up.
|
||||
|
||||
config RT_UTEST_USING_ALL_CASES
|
||||
bool "Enable all selected modules' test cases"
|
||||
default n
|
||||
help
|
||||
If enable this option, all selected modules' test cases will be run.
|
||||
Otherwise, only the test cases that are explicitly enabled will be run.
|
||||
endif
|
||||
|
||||
config RT_USING_VAR_EXPORT
|
||||
|
||||
@@ -2,7 +2,7 @@ from building import *
|
||||
|
||||
src = []
|
||||
|
||||
if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('UTEST_SELF_PASS_TC'):
|
||||
if GetDepend('UTEST_SELF_PASS_TC'):
|
||||
src += Glob('TC_*.c')
|
||||
|
||||
group = DefineGroup('utc_UTest', src, depend = [''])
|
||||
|
||||
Reference in New Issue
Block a user