Skip to content

Commit 3bc6d7c

Browse files
committed
[utestcase] 完善测试用例集合的 README
1 parent a28fd88 commit 3bc6d7c

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

examples/utest/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,20 @@ msh />utest_run
5454

5555
### 3. 提交
5656

57-
1. 如果是对已有测试集合的完善,需要把添加的测试用例的配置项添加到对应测试集合的配置文件里,如:[examples\utest\configs\utest_self\config.h](./configs/utest_self/config.h)
57+
1. 如果是对已有测试集合的完善,需要把添加的测试用例的配置项,以及对应的依赖项添加到对应测试集合的配置文件里,如:[examples\utest\configs\kernel\mem.conf](./configs/kernel/mem.conf)
5858

5959
```
60-
/* RT-Thread Utestcases */
60+
CONFIG_UTEST_MEMHEAP_TC=y
6161
62-
#define RT_USING_UTESTCASES
63-
64-
/* Utest Self Testcase */
65-
66-
#define UTEST_SELF_PASS_TC
67-
68-
/* xxx Testcase */
69-
#define UTEST_XXX_TC
62+
# dependencies
63+
CONFIG_RT_USING_MEMHEAP=y
7064
```
7165

7266
2. 如果要添加新的测试集合,需要参考已有的测试集合,在 [examples\utest\configs](./configs) 目录下添加新的测试集合配置项。并更新 [.github\workflows\action_utest.yml](../../.github/workflows/action_utest.yml) 内的测试集合。
7367

7468
```
75-
- {UTEST: "kernel/ipc", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "vexpress-a9", CONFIG_FILE: "examples/utest/configs/utest_self/config.h"}
76-
- {UTEST: "components/utest", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "vexpress-a9", CONFIG_FILE: "examples/utest/configs/utest_self/config.h"}
69+
- {UTEST: "kernel/mem", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "kernel/mem.conf", SD_FILE: "sd.bin"}
70+
- {UTEST: "components/utest", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", CONFIG_FILE: "utest_self/self.conf", SD_FILE: "sd.bin"}
7771
```
7872

7973
3. 向 RT-Thread 主仓库提交合并请求。
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
CONFIG_RT_USING_MEMHEAP=y
21
CONFIG_UTEST_MEMHEAP_TC=y
2+
3+
# dependencies
4+
CONFIG_RT_USING_MEMHEAP=y

0 commit comments

Comments
 (0)