diff options
| author | Meco Man <[email protected]> | 2025-01-08 20:12:55 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2025-01-09 17:45:15 -0500 |
| commit | bdd9447d709213b5076a152fbfa484fbb0f7ee19 (patch) | |
| tree | 5318dd2d9bef455658293866300b6c5266f28061 /components | |
| parent | 53bd56ccf9cb77dd1cec3c3c9e1fde24b0a95267 (diff) | |
[utest] make RT_USING_CI_ACTION to be clear
RT_USING_CI_ACTION will select RT_UTEST_USING_AUTO_RUN and RT_UTEST_USING_ALL_CASES
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/Kconfig | 13 | ||||
| -rw-r--r-- | components/utilities/utest/utest.c | 8 |
2 files changed, 17 insertions, 4 deletions
diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig index cade1ba06c..74e16cc7e4 100644 --- a/components/utilities/Kconfig +++ b/components/utilities/Kconfig @@ -210,6 +210,19 @@ config RT_USING_UTEST config UTEST_THR_PRIORITY int "The utest thread priority" default 20 + + config RT_UTEST_USING_AUTO_RUN + bool "Enable auto run test cases" + 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.c b/components/utilities/utest/utest.c index 8d9ad7eef3..f5baa71e20 100644 --- a/components/utilities/utest/utest.c +++ b/components/utilities/utest/utest.c @@ -316,15 +316,15 @@ static void utest_thread_create(const char *utest_name) } } -#ifdef RT_USING_CI_ACTION -static int utest_ci_action(void) +#ifdef RT_UTEST_USING_AUTO_RUN +static int utest_auto_run(void) { tc_loop = 1; utest_thread_create(RT_NULL); return RT_EOK; } -INIT_APP_EXPORT(utest_ci_action); -#endif /* RT_USING_CI_ACTION */ +INIT_APP_EXPORT(utest_auto_run); +#endif /* RT_UTEST_USING_AUTO_RUN */ int utest_testcase_run(int argc, char** argv) { |
