Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Kconfig.utestcases
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rsource "examples/utest/testcases/perf/Kconfig"

rsource "src/klibc/utest/Kconfig"

rsource "components/drivers/core/utest/Kconfig"
rsource "components/drivers/audio/utest/Kconfig"
rsource "components/dfs/utest/Kconfig"
rsource "components/net/utest/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions components/drivers/core/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ if GetDepend(['RT_USING_OFW']):

group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)

list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))

Return('group')
3 changes: 3 additions & 0 deletions components/drivers/core/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config RT_UTEST_DRIVERS_CORE
bool "Enable testcase for drivers core"
default n
13 changes: 13 additions & 0 deletions components/drivers/core/utest/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Import('rtconfig')
from building import *

cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]

if GetDepend('RT_UTEST_DRIVERS_CORE'):
src += Glob('*.c')

group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)

Return('group')
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ static void testcase(void)
{
UTEST_UNIT_RUN(test_rt_device_find);
}
UTEST_TC_EXPORT(testcase, "core.device_find", utest_tc_init, utest_tc_cleanup, 5);
UTEST_TC_EXPORT(testcase, "components.drivers.core.device_find", utest_tc_init, utest_tc_cleanup, 5);
4 changes: 0 additions & 4 deletions src/utest/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ config UTEST_THREAD_TC
select RT_USING_TIMER_SOFT
select RT_USING_THREAD

config UTEST_DEVICE_TC
bool "device test"
default n

config UTEST_ATOMIC_TC
bool "atomic test"
default n
Expand Down
3 changes: 0 additions & 3 deletions src/utest/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ if GetDepend(['UTEST_THREAD_TC']):
src += ['thread_overflow_tc.c']
src += ['thread_suspend_tc.c']

if GetDepend(['UTEST_DEVICE_TC']):
src += ['device_tc.c']

if GetDepend(['UTEST_ATOMIC_TC']):
src += ['atomic_tc.c']

Expand Down