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
3 changes: 1 addition & 2 deletions Kconfig.utestcases
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ 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"
rsource "examples/utest/testcases/smp_call/Kconfig"
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/drivers/serial/utest/Kconfig"

rsource "components/drivers/smp_call/utest/Kconfig"
rsource "components/dfs/utest/Kconfig"
rsource "components/net/utest/Kconfig"

Expand Down
5 changes: 5 additions & 0 deletions components/drivers/smp_call/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ if GetDepend("RT_USING_SMP"):
CPPPATH = [cwd]
group = DefineGroup('DeviceDrivers', src, depend = [''], 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')
8 changes: 8 additions & 0 deletions components/drivers/smp_call/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
menu "SMP-Call Unit Testcases"

config RT_UTEST_SMP_CALL_FUNC
bool "SMP-Call smoke test"
default n
depends on RT_USING_SMP

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

if GetDepend(['RT_USING_SMP', 'UTEST_SMP_CALL_FUNC']):
if GetDepend(['RT_UTEST_SMP_CALL_FUNC']):
src += Glob('smp*.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 @@ -87,4 +87,4 @@ static void _testcase(void)
UTEST_UNIT_RUN(_blocking_call);
}

UTEST_TC_EXPORT(_testcase, "testcase.smp.smoke.001", utest_tc_init, utest_tc_cleanup, 10);
UTEST_TC_EXPORT(_testcase, "components.drivers.smp_call.smoke_001", utest_tc_init, utest_tc_cleanup, 10);
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ static void _testcase(void)
UTEST_UNIT_RUN(_blocking_mtsafe_call);
}

UTEST_TC_EXPORT(_testcase, "testcase.smp.smoke.002", utest_tc_init, utest_tc_cleanup, 10);
UTEST_TC_EXPORT(_testcase, "components.drivers.smp_call.smoke_002", utest_tc_init, utest_tc_cleanup, 10);
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ static void _testcase(void)
UTEST_UNIT_RUN(_async_call);
}

UTEST_TC_EXPORT(_testcase, "testcase.smp.smoke.003", utest_tc_init, utest_tc_cleanup, 10);
UTEST_TC_EXPORT(_testcase, "components.drivers.smp_call.smoke_003", utest_tc_init, utest_tc_cleanup, 10);
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ static void _testcase(void)
UTEST_UNIT_RUN(_test_reentr_isr_main);
}

UTEST_TC_EXPORT(_testcase, "testcase.smp.smoke.004", utest_tc_init, utest_tc_cleanup, 10);
UTEST_TC_EXPORT(_testcase, "components.drivers.smp_call.smoke_004", utest_tc_init, utest_tc_cleanup, 10);
6 changes: 0 additions & 6 deletions examples/utest/testcases/smp_call/Kconfig

This file was deleted.