From 495c8cfc25e0d03eb6ba9914df17487f839c557d Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Thu, 25 Sep 2025 14:01:47 +0800 Subject: 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 --- src/Kconfig | 1 - src/klibc/utest/SConscript | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Kconfig b/src/Kconfig index 0cc80305c2..260bf99ba1 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -242,7 +242,6 @@ config RT_USING_CI_ACTION bool "Enable CI Action build mode" select RT_USING_UTEST select RT_UTEST_USING_AUTO_RUN - select RT_UTEST_USING_ALL_CASES default n help Identify that the environment is CI Action. diff --git a/src/klibc/utest/SConscript b/src/klibc/utest/SConscript index a9acd1b3c6..48a68acc28 100644 --- a/src/klibc/utest/SConscript +++ b/src/klibc/utest/SConscript @@ -2,7 +2,7 @@ from building import * src = [] -if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('RT_UTEST_TC_USING_KLIBC'): +if GetDepend('RT_UTEST_TC_USING_KLIBC'): src += Glob('TC_*.c') group = DefineGroup('utestcases', src, depend = ['']) -- cgit v1.3.1