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
2 changes: 1 addition & 1 deletion Kconfig.utestcases
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ if RT_USING_UTESTCASES
rsource "components/utilities/utest/utest/Kconfig"
rsource "src/utest/Kconfig"
rsource "examples/utest/testcases/cpp11/Kconfig"
rsource "examples/utest/testcases/drivers/ipc/Kconfig"
rsource "examples/utest/testcases/posix/Kconfig"
rsource "examples/utest/testcases/mm/Kconfig"
rsource "examples/utest/testcases/tmpfs/Kconfig"
Expand All @@ -19,6 +18,7 @@ rsource "src/klibc/utest/Kconfig"

rsource "components/drivers/core/utest/Kconfig"
rsource "components/drivers/audio/utest/Kconfig"
rsource "components/drivers/ipc/utest/Kconfig"
rsource "components/drivers/serial/utest/Kconfig"
rsource "components/drivers/smp_call/utest/Kconfig"
rsource "components/dfs/utest/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions components/drivers/ipc/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ else:

group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE_IPC'], CPPPATH = CPPPATH, LOCAL_CPPDEFINES=['__RT_IPC_SOURCE__'])

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')
12 changes: 12 additions & 0 deletions components/drivers/ipc/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
menu "IPC Unit Testcases"
depends on RT_USING_DEVICE_IPC

config RT_UTEST_COMPLETION
bool "rt_completion testcase"
default n

config RT_UTEST_WORKQUEUE
bool "rt_workqueue testcase"
default n

endmenu
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ cwd = GetCurrentDir()
src = []
CPPPATH = [cwd]

if GetDepend(['UTEST_COMPLETION_TC']):
if GetDepend(['RT_UTEST_COMPLETION']):
src += ['completion_tc.c', 'completion_timeout_tc.c']

if GetDepend(['UTEST_WORKQUEUE_TC']):
if GetDepend(['RT_UTEST_WORKQUEUE']):
src += ['workqueue_tc.c']

group = DefineGroup('utestcases', src, depend = ['RT_USING_UTESTCASES'], CPPPATH = CPPPATH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ static rt_err_t utest_tc_cleanup(void)
return RT_EOK;
}

UTEST_TC_EXPORT(testcase, "testcases.drivers.ipc.rt_completion.basic",
UTEST_TC_EXPORT(testcase, "components.drivers.ipc.rt_completion_basic",
utest_tc_init, utest_tc_cleanup, 10);
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ static rt_err_t utest_tc_cleanup(void)
return RT_EOK;
}

UTEST_TC_EXPORT(testcase, "testcases.drivers.ipc.rt_completion.timeout",
UTEST_TC_EXPORT(testcase, "components.drivers.ipc.rt_completion_timeout",
utest_tc_init, utest_tc_cleanup, 1000);
15 changes: 0 additions & 15 deletions examples/utest/testcases/drivers/SConscript

This file was deleted.

11 changes: 0 additions & 11 deletions examples/utest/testcases/drivers/ipc/Kconfig

This file was deleted.