diff options
| author | Chen Wang <[email protected]> | 2025-09-25 14:01:47 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-09-26 09:57:54 +0800 |
| commit | 495c8cfc25e0d03eb6ba9914df17487f839c557d (patch) | |
| tree | a95ac01cf14e5d0d90f2666e8fb5e2d1f6adcee5 /components | |
| parent | 320aa25ad4cc5f16f0a6c016a7eb776b74cc68da (diff) | |
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 <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/audio/utest/SConscript | 2 | ||||
| -rw-r--r-- | components/net/utest/SConscript | 2 | ||||
| -rw-r--r-- | components/utilities/Kconfig | 7 | ||||
| -rw-r--r-- | components/utilities/utest/utest/SConscript | 2 |
4 files changed, 3 insertions, 10 deletions
diff --git a/components/drivers/audio/utest/SConscript b/components/drivers/audio/utest/SConscript index 4a535be5c3..f8b5639bb6 100644 --- a/components/drivers/audio/utest/SConscript +++ b/components/drivers/audio/utest/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = [] CPPPATH = [cwd] -if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('RT_UTEST_USING_AUDIO_DRIVER'): +if GetDepend('RT_UTEST_USING_AUDIO_DRIVER'): src += Glob('tc_*.c') group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES', 'RT_USING_AUDIO'], CPPPATH = CPPPATH) diff --git a/components/net/utest/SConscript b/components/net/utest/SConscript index 010ccb4e5f..4c9190fa40 100644 --- a/components/net/utest/SConscript +++ b/components/net/utest/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = [] CPPPATH = [cwd] -if GetDepend('RT_UTEST_USING_ALL_CASES') or GetDepend('RT_UTEST_TC_USING_LWIP') or GetDepend('RT_UTEST_TC_USING_NETDEV'): +if GetDepend('RT_UTEST_TC_USING_LWIP') or GetDepend('RT_UTEST_TC_USING_NETDEV'): if GetDepend('RT_UTEST_TC_USING_LWIP'): # Add lwIP test source if enabled diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig index b5eff9bee4..8601eb1e51 100644 --- a/components/utilities/Kconfig +++ b/components/utilities/Kconfig @@ -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 diff --git a/components/utilities/utest/utest/SConscript b/components/utilities/utest/utest/SConscript index 6437618551..ec1e214de6 100644 --- a/components/utilities/utest/utest/SConscript +++ b/components/utilities/utest/utest/SConscript @@ -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 = ['']) |
