mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 17:12:01 +08:00
[add] add semaphore testcase src code and Kconfig
This commit is contained in:
@@ -5,4 +5,9 @@ config UTEST_MEMHEAP_TC
|
||||
default y
|
||||
depends on RT_USING_MEMHEAP
|
||||
|
||||
config UTEST_SEMAPHORE_TC
|
||||
bool "semaphore test"
|
||||
default n
|
||||
depends on RT_USING_SEMAPHORE
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -8,6 +8,9 @@ src = Split('''
|
||||
if GetDepend(['UTEST_MEMHEAP_TC']):
|
||||
src += ['memheap_tc.c']
|
||||
|
||||
if GetDepend(['UTEST_SEMAPHORE_TC']):
|
||||
src += ['semaphore_tc.c']
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('utestcases', src, depend = [], CPPPATH = CPPPATH)
|
||||
|
||||
559
examples/utest/testcases/kernel/semaphore_tc.c
Normal file
559
examples/utest/testcases/kernel/semaphore_tc.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user