mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
utest: move cpp from examples to components/libc/cplusplus
Also update the case names to compatible with naming rules. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
@@ -9,7 +9,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/mm/Kconfig"
|
||||
rsource "examples/utest/testcases/tmpfs/Kconfig"
|
||||
|
||||
@@ -22,6 +21,7 @@ rsource "components/drivers/serial/utest/Kconfig"
|
||||
rsource "components/drivers/smp_call/utest/Kconfig"
|
||||
rsource "components/dfs/utest/Kconfig"
|
||||
rsource "components/net/utest/Kconfig"
|
||||
rsource "components/libc/cplusplus/utest/Kconfig"
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -268,4 +268,4 @@ static void testcase(void)
|
||||
/* Test compare_exchange_weak operation */
|
||||
UTEST_UNIT_RUN(test_compare_exchange_weak);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.atomic_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.atomic_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
@@ -61,4 +61,4 @@ static void testcase(void)
|
||||
/* Test range-based for loop */
|
||||
UTEST_UNIT_RUN(test_range_for);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.auto_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.auto_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
@@ -55,4 +55,4 @@ static void testcase(void)
|
||||
/* Test lambda with capture */
|
||||
UTEST_UNIT_RUN(test_lambda_capture);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.lambda_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.lambda_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
@@ -117,4 +117,4 @@ static void testcase(void)
|
||||
/* Test locking multiple mutexes with std::lock */
|
||||
UTEST_UNIT_RUN(test_lock_multiple);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.mutex_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.mutex_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
@@ -52,4 +52,4 @@ static void testcase(void)
|
||||
/* Test shared_ptr basic operations */
|
||||
UTEST_UNIT_RUN(test_shared_ptr);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.smartptr_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.smartptr_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
@@ -56,4 +56,4 @@ static void testcase(void)
|
||||
{
|
||||
UTEST_UNIT_RUN(test_thread);
|
||||
}
|
||||
UTEST_TC_EXPORT(testcase, "testcases.cpp11.thread_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
UTEST_TC_EXPORT(testcase, "components.libc.cpp.thread_tc", utest_tc_init, utest_tc_cleanup, 10);
|
||||
Reference in New Issue
Block a user