Skip to content

Commit 04439c2

Browse files
unicornxRbb666
authored andcommitted
utest: reorg menu items
The original project display was completely flat, now it is organized into a tree-like hierarchical structure based on the layout of the code. mm & tmpfs test are still keep as pervious bcos we have not move the source for these two components. Signed-off-by: Chen Wang <[email protected]>
1 parent f05b854 commit 04439c2

File tree

2 files changed

+118
-111
lines changed

2 files changed

+118
-111
lines changed

Kconfig.utestcases

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
menu "RT-Thread Utestcases"
22

3-
config RT_USING_UTESTCASES
4-
bool "RT-Thread Utestcases"
5-
default n
6-
select RT_USING_UTEST
7-
8-
if RT_USING_UTESTCASES
9-
10-
rsource "components/utilities/utest/utest/Kconfig"
11-
rsource "src/utest/Kconfig"
12-
rsource "examples/utest/testcases/mm/Kconfig"
13-
rsource "examples/utest/testcases/tmpfs/Kconfig"
14-
15-
rsource "src/klibc/utest/Kconfig"
16-
17-
rsource "components/drivers/core/utest/Kconfig"
18-
rsource "components/drivers/audio/utest/Kconfig"
19-
rsource "components/drivers/ipc/utest/Kconfig"
20-
rsource "components/drivers/serial/utest/Kconfig"
21-
rsource "components/drivers/smp_call/utest/Kconfig"
22-
rsource "components/dfs/utest/Kconfig"
23-
rsource "components/net/utest/Kconfig"
24-
rsource "components/libc/cplusplus/utest/Kconfig"
3+
config RT_USING_UTESTCASES
4+
bool "RT-Thread Utestcases"
5+
default n
6+
select RT_USING_UTEST
7+
8+
if RT_USING_UTESTCASES
9+
10+
rsource "src/utest/Kconfig"
11+
12+
menu "Components"
13+
14+
menu "Drivers"
15+
rsource "components/drivers/core/utest/Kconfig"
16+
rsource "components/drivers/audio/utest/Kconfig"
17+
rsource "components/drivers/ipc/utest/Kconfig"
18+
rsource "components/drivers/serial/utest/Kconfig"
19+
rsource "components/drivers/smp_call/utest/Kconfig"
20+
endmenu
21+
22+
rsource "components/dfs/utest/Kconfig"
23+
rsource "components/libc/cplusplus/utest/Kconfig"
24+
rsource "components/net/utest/Kconfig"
25+
rsource "components/utilities/utest/utest/Kconfig"
26+
27+
endmenu
28+
29+
rsource "examples/utest/testcases/mm/Kconfig"
30+
rsource "examples/utest/testcases/tmpfs/Kconfig"
2531

2632
endif
2733

src/utest/Kconfig

Lines changed: 90 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,94 @@
11
menu "Kernel Testcase"
22

3-
config RT_UTEST_MEMHEAP
4-
bool "memheap stability test"
5-
default n
6-
depends on RT_USING_MEMHEAP
7-
8-
config RT_UTEST_SMALL_MEM
9-
bool "mem test"
10-
default n
11-
depends on RT_USING_SMALL_MEM
12-
13-
config RT_UTEST_OBJECT
14-
select RT_USING_DEVICE
15-
select RT_USING_SEMAPHORE
16-
bool "object test"
17-
default n
18-
19-
config RT_UTEST_SLAB
20-
bool "slab test"
21-
default n
22-
depends on RT_USING_SLAB
23-
24-
config RT_UTEST_IRQ
25-
bool "IRQ test"
26-
default n
27-
28-
config RT_UTEST_SEMAPHORE
29-
bool "semaphore test"
30-
default n
31-
depends on RT_USING_SEMAPHORE
32-
33-
config RT_UTEST_EVENT
34-
bool "event test"
35-
default n
36-
depends on RT_USING_EVENT
37-
38-
config RT_UTEST_TIMER
39-
bool "timer test"
40-
default n
41-
42-
config RT_UTEST_MESSAGEQUEUE
43-
bool "message queue test"
44-
default n
45-
46-
config RT_UTEST_SIGNAL
47-
bool "signal test"
48-
select RT_USING_SIGNALS
49-
default n
50-
51-
config RT_UTEST_MUTEX
52-
bool "mutex test"
53-
default n
54-
55-
config RT_UTEST_MAILBOX
56-
bool "mailbox test"
57-
default n
58-
59-
config RT_UTEST_THREAD
60-
bool "thread test"
61-
default n
62-
select RT_USING_TIMER_SOFT
63-
select RT_USING_THREAD
64-
65-
config RT_UTEST_ATOMIC
66-
bool "atomic test"
67-
default n
68-
69-
config RT_UTEST_HOOKLIST
70-
bool "hook list test"
71-
select RT_USING_HOOKLIST
72-
default n
73-
74-
config RT_UTEST_MTSAFE_KPRINT
75-
bool "mtsafe kprint test"
76-
default n
77-
78-
config RT_UTEST_SCHEDULER
79-
bool "scheduler test"
80-
default n
81-
82-
config UTEST_MEMPOOL_TC
83-
bool "mempool test"
84-
default n
85-
depends on RT_USING_MEMPOOL
86-
87-
rsource "perf/Kconfig"
88-
89-
if RT_USING_SMP
90-
rsource "smp/Kconfig"
91-
endif
3+
config RT_UTEST_MEMHEAP
4+
bool "memheap stability test"
5+
default n
6+
depends on RT_USING_MEMHEAP
7+
8+
config RT_UTEST_SMALL_MEM
9+
bool "mem test"
10+
default n
11+
depends on RT_USING_SMALL_MEM
12+
13+
config RT_UTEST_OBJECT
14+
select RT_USING_DEVICE
15+
select RT_USING_SEMAPHORE
16+
bool "object test"
17+
default n
18+
19+
config RT_UTEST_SLAB
20+
bool "slab test"
21+
default n
22+
depends on RT_USING_SLAB
23+
24+
config RT_UTEST_IRQ
25+
bool "IRQ test"
26+
default n
27+
28+
config RT_UTEST_SEMAPHORE
29+
bool "semaphore test"
30+
default n
31+
depends on RT_USING_SEMAPHORE
32+
33+
config RT_UTEST_EVENT
34+
bool "event test"
35+
default n
36+
depends on RT_USING_EVENT
37+
38+
config RT_UTEST_TIMER
39+
bool "timer test"
40+
default n
41+
42+
config RT_UTEST_MESSAGEQUEUE
43+
bool "message queue test"
44+
default n
45+
46+
config RT_UTEST_SIGNAL
47+
bool "signal test"
48+
select RT_USING_SIGNALS
49+
default n
50+
51+
config RT_UTEST_MUTEX
52+
bool "mutex test"
53+
default n
54+
55+
config RT_UTEST_MAILBOX
56+
bool "mailbox test"
57+
default n
58+
59+
config RT_UTEST_THREAD
60+
bool "thread test"
61+
default n
62+
select RT_USING_TIMER_SOFT
63+
select RT_USING_THREAD
64+
65+
config RT_UTEST_ATOMIC
66+
bool "atomic test"
67+
default n
68+
69+
config RT_UTEST_HOOKLIST
70+
bool "hook list test"
71+
select RT_USING_HOOKLIST
72+
default n
73+
74+
config RT_UTEST_MTSAFE_KPRINT
75+
bool "mtsafe kprint test"
76+
default n
77+
78+
config RT_UTEST_SCHEDULER
79+
bool "scheduler test"
80+
default n
81+
82+
config UTEST_MEMPOOL_TC
83+
bool "mempool test"
84+
default n
85+
depends on RT_USING_MEMPOOL
86+
87+
rsource "perf/Kconfig"
88+
rsource "../klibc/utest/Kconfig"
89+
90+
if RT_USING_SMP
91+
rsource "smp/Kconfig"
92+
endif
9293

9394
endmenu

0 commit comments

Comments
 (0)