diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/.config b/bsp/nuvoton/numaker-hmi-ma35d1/.config index 402b74a29d..cb67a20a0c 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/.config +++ b/bsp/nuvoton/numaker-hmi-ma35d1/.config @@ -611,7 +611,7 @@ CONFIG_RT_UTEST_SELF_PASS=y # # Kernel Testcase # -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y CONFIG_UTEST_SMALL_MEM_TC=y # CONFIG_UTEST_IRQ_TC is not set # CONFIG_UTEST_SEMAPHORE_TC is not set diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/rtconfig.h b/bsp/nuvoton/numaker-hmi-ma35d1/rtconfig.h index a9bc4c8fd7..ea87d89117 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/rtconfig.h +++ b/bsp/nuvoton/numaker-hmi-ma35d1/rtconfig.h @@ -383,7 +383,7 @@ /* Kernel Testcase */ -#define UTEST_MEMHEAP_TC +#define RT_UTEST_MEMHEAP #define UTEST_SMALL_MEM_TC /* end of Kernel Testcase */ diff --git a/bsp/nuvoton/numaker-iot-ma35d1/.config b/bsp/nuvoton/numaker-iot-ma35d1/.config index 1ab46269ab..4e9f0c501c 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/.config +++ b/bsp/nuvoton/numaker-iot-ma35d1/.config @@ -612,7 +612,7 @@ CONFIG_RT_UTEST_SELF_PASS=y # # Kernel Testcase # -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y CONFIG_UTEST_SMALL_MEM_TC=y # CONFIG_UTEST_IRQ_TC is not set # CONFIG_UTEST_SEMAPHORE_TC is not set diff --git a/bsp/nuvoton/numaker-iot-ma35d1/rtconfig.h b/bsp/nuvoton/numaker-iot-ma35d1/rtconfig.h index 6a602ab0f8..6c2685ec2c 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/rtconfig.h +++ b/bsp/nuvoton/numaker-iot-ma35d1/rtconfig.h @@ -384,7 +384,7 @@ /* Kernel Testcase */ -#define UTEST_MEMHEAP_TC +#define RT_UTEST_MEMHEAP #define UTEST_SMALL_MEM_TC /* end of Kernel Testcase */ diff --git a/examples/utest/README.md b/examples/utest/README.md index 6e24632b7c..04c3f910f1 100644 --- a/examples/utest/README.md +++ b/examples/utest/README.md @@ -57,7 +57,7 @@ msh />utest_run 1. 如果是对已有测试集合的完善,需要把添加的测试用例的配置项,以及对应的依赖项添加到对应测试集合的配置文件里,如:[examples\utest\configs\kernel\mem.conf](./configs/kernel/mem.conf)。 ``` -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y # dependencies CONFIG_RT_USING_MEMHEAP=y diff --git a/examples/utest/configs/default.cfg b/examples/utest/configs/default.cfg index 34a8ee6cfe..0b618debb8 100644 --- a/examples/utest/configs/default.cfg +++ b/examples/utest/configs/default.cfg @@ -3,5 +3,5 @@ CONFIG_RT_CONSOLEBUF_SIZE=1024 CONFIG_RT_USING_CI_ACTION=y CONFIG_RT_UTEST_SELF_PASS=y -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y CONFIG_UTEST_SMALL_MEM_TC=y \ No newline at end of file diff --git a/examples/utest/configs/kernel/mem.cfg b/examples/utest/configs/kernel/mem.cfg index d05f9d272a..ddf800a604 100644 --- a/examples/utest/configs/kernel/mem.cfg +++ b/examples/utest/configs/kernel/mem.cfg @@ -2,7 +2,7 @@ CONFIG_RT_CONSOLEBUF_SIZE=1024 CONFIG_RT_USING_CI_ACTION=y -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y CONFIG_UTEST_SMALL_MEM_TC=y CONFIG_UTEST_MEMPOOL_TC=y diff --git a/examples/utest/configs/rtsmart/rtsmart.cfg b/examples/utest/configs/rtsmart/rtsmart.cfg index 94830baaee..efc6064079 100644 --- a/examples/utest/configs/rtsmart/rtsmart.cfg +++ b/examples/utest/configs/rtsmart/rtsmart.cfg @@ -1,4 +1,4 @@ -CONFIG_UTEST_MEMHEAP_TC=y +CONFIG_RT_UTEST_MEMHEAP=y # dependencies CONFIG_RT_USING_SMART=y diff --git a/src/utest/Kconfig b/src/utest/Kconfig index c9580f099f..4b0baf2bb0 100644 --- a/src/utest/Kconfig +++ b/src/utest/Kconfig @@ -1,6 +1,6 @@ menu "Kernel Testcase" -config UTEST_MEMHEAP_TC +config RT_UTEST_MEMHEAP bool "memheap stability test" default n depends on RT_USING_MEMHEAP diff --git a/src/utest/SConscript b/src/utest/SConscript index fae3eb8a6e..b2e4bcaf07 100644 --- a/src/utest/SConscript +++ b/src/utest/SConscript @@ -8,7 +8,7 @@ CPPPATH = [cwd] if GetDepend(['UTEST_OBJECT_TC']): src += ['object_tc.c'] -if GetDepend(['UTEST_MEMHEAP_TC']): +if GetDepend(['RT_UTEST_MEMHEAP']): src += ['memheap_tc.c'] if GetDepend(['UTEST_SMALL_MEM_TC']):