Skip to content

Commit e8d3d0f

Browse files
unicornxRbb666
authored andcommitted
utest: move cpp from examples to components/libc/cplusplus
Also update the case names to compatible with naming rules. Signed-off-by: Chen Wang <[email protected]>
1 parent bc2fca5 commit e8d3d0f

File tree

9 files changed

+7
-7
lines changed

9 files changed

+7
-7
lines changed

Kconfig.utestcases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if RT_USING_UTESTCASES
99

1010
rsource "components/utilities/utest/utest/Kconfig"
1111
rsource "src/utest/Kconfig"
12-
rsource "examples/utest/testcases/cpp11/Kconfig"
1312
rsource "examples/utest/testcases/mm/Kconfig"
1413
rsource "examples/utest/testcases/tmpfs/Kconfig"
1514

@@ -22,6 +21,7 @@ rsource "components/drivers/serial/utest/Kconfig"
2221
rsource "components/drivers/smp_call/utest/Kconfig"
2322
rsource "components/dfs/utest/Kconfig"
2423
rsource "components/net/utest/Kconfig"
24+
rsource "components/libc/cplusplus/utest/Kconfig"
2525

2626
endif
2727

File renamed without changes.

examples/utest/testcases/cpp11/tc_atomic.cpp renamed to components/libc/cplusplus/utest/tc_atomic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,4 @@ static void testcase(void)
268268
/* Test compare_exchange_weak operation */
269269
UTEST_UNIT_RUN(test_compare_exchange_weak);
270270
}
271-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.atomic_tc", utest_tc_init, utest_tc_cleanup, 10);
271+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.atomic_tc", utest_tc_init, utest_tc_cleanup, 10);

examples/utest/testcases/cpp11/tc_auto.cpp renamed to components/libc/cplusplus/utest/tc_auto.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ static void testcase(void)
6161
/* Test range-based for loop */
6262
UTEST_UNIT_RUN(test_range_for);
6363
}
64-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.auto_tc", utest_tc_init, utest_tc_cleanup, 10);
64+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.auto_tc", utest_tc_init, utest_tc_cleanup, 10);

examples/utest/testcases/cpp11/tc_lambda.cpp renamed to components/libc/cplusplus/utest/tc_lambda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ static void testcase(void)
5555
/* Test lambda with capture */
5656
UTEST_UNIT_RUN(test_lambda_capture);
5757
}
58-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.lambda_tc", utest_tc_init, utest_tc_cleanup, 10);
58+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.lambda_tc", utest_tc_init, utest_tc_cleanup, 10);

examples/utest/testcases/cpp11/tc_mutex.cpp renamed to components/libc/cplusplus/utest/tc_mutex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ static void testcase(void)
117117
/* Test locking multiple mutexes with std::lock */
118118
UTEST_UNIT_RUN(test_lock_multiple);
119119
}
120-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.mutex_tc", utest_tc_init, utest_tc_cleanup, 10);
120+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.mutex_tc", utest_tc_init, utest_tc_cleanup, 10);

examples/utest/testcases/cpp11/tc_smartptr.cpp renamed to components/libc/cplusplus/utest/tc_smartptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ static void testcase(void)
5252
/* Test shared_ptr basic operations */
5353
UTEST_UNIT_RUN(test_shared_ptr);
5454
}
55-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.smartptr_tc", utest_tc_init, utest_tc_cleanup, 10);
55+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.smartptr_tc", utest_tc_init, utest_tc_cleanup, 10);

examples/utest/testcases/cpp11/tc_thread.cpp renamed to components/libc/cplusplus/utest/tc_thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ static void testcase(void)
5656
{
5757
UTEST_UNIT_RUN(test_thread);
5858
}
59-
UTEST_TC_EXPORT(testcase, "testcases.cpp11.thread_tc", utest_tc_init, utest_tc_cleanup, 10);
59+
UTEST_TC_EXPORT(testcase, "components.libc.cpp.thread_tc", utest_tc_init, utest_tc_cleanup, 10);

0 commit comments

Comments
 (0)