mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
utest: update naems using new rule
The names of the utest cases defined in their respective modules have been updated. Some utest case names are not yet in their respective modules because their paths need to be finalized before their unique names can be determined. Currently, these names do not appear to conflict with the unified names. These include: - utest cases still in examples - bsp/qemu-virt64-riscv/applications/test/test_vector/test_vector.c. The entire test case should probably be placed in libcpu/risc-v rather than bsp. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This commit is contained in:
@@ -115,4 +115,4 @@ static void testcase(void)
|
|||||||
{
|
{
|
||||||
UTEST_UNIT_RUN(test_read);
|
UTEST_UNIT_RUN(test_read);
|
||||||
}
|
}
|
||||||
UTEST_TC_EXPORT(testcase, "adc", utest_tc_init, utest_tc_cleanup, 100);
|
UTEST_TC_EXPORT(testcase, "bsp.k230.drivers.adc", utest_tc_init, utest_tc_cleanup, 100);
|
||||||
@@ -102,4 +102,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(testcase, "gpio", utest_tc_init, utest_tc_cleanup, 100);
|
UTEST_TC_EXPORT(testcase, "bsp.k230.drivers.gpio", utest_tc_init, utest_tc_cleanup, 100);
|
||||||
@@ -130,4 +130,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(testcase, "gpio_irq", utest_tc_init, utest_tc_cleanup, 100);
|
UTEST_TC_EXPORT(testcase, "bsp.k230.drivers.gpio_irq", utest_tc_init, utest_tc_cleanup, 100);
|
||||||
@@ -296,4 +296,4 @@ void test_pdma()
|
|||||||
UTEST_UNIT_RUN(test_pdma_rx);
|
UTEST_UNIT_RUN(test_pdma_rx);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(test_pdma, "pdma", utest_tc_init, utest_tc_cleanup, 10);
|
UTEST_TC_EXPORT(test_pdma, "bsp.k230.drivers.pdma", utest_tc_init, utest_tc_cleanup, 10);
|
||||||
|
|||||||
@@ -117,4 +117,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(pwm_testcase, "pwm", utest_tc_init, utest_tc_cleanup, 10);
|
UTEST_TC_EXPORT(pwm_testcase, "bsp.k230.drivers.pwm", utest_tc_init, utest_tc_cleanup, 10);
|
||||||
@@ -150,4 +150,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(hw_timer_testcase, "timer", utest_tc_init, utest_tc_cleanup, 10);
|
UTEST_TC_EXPORT(hw_timer_testcase, "bsp.k230.drivers.timer", utest_tc_init, utest_tc_cleanup, 10);
|
||||||
@@ -130,4 +130,4 @@ static void testcase(void)
|
|||||||
UTEST_UNIT_RUN(test_ts_read);
|
UTEST_UNIT_RUN(test_ts_read);
|
||||||
UTEST_UNIT_RUN(test_ts_control);
|
UTEST_UNIT_RUN(test_ts_control);
|
||||||
}
|
}
|
||||||
UTEST_TC_EXPORT(testcase, "ts", utest_tc_init, utest_tc_cleanup, 100);
|
UTEST_TC_EXPORT(testcase, "bsp.k230.drivers.ts", utest_tc_init, utest_tc_cleanup, 100);
|
||||||
@@ -162,4 +162,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(uart_testcase, "uart", utest_tc_init, utest_tc_cleanup, 10);
|
UTEST_TC_EXPORT(uart_testcase, "bsp.k230.drivers.uart", utest_tc_init, utest_tc_cleanup, 10);
|
||||||
@@ -143,4 +143,4 @@ static rt_err_t utest_init(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(test_wdt, "wdt", utest_init, NULL, 10);
|
UTEST_TC_EXPORT(test_wdt, "bsp.k230.drivers.wdt", utest_init, NULL, 10);
|
||||||
@@ -306,4 +306,4 @@ static rt_err_t utest_tc_cleanup(void)
|
|||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(testcase, "audio.tc_audio_main", utest_tc_init, utest_tc_cleanup, 10);
|
UTEST_TC_EXPORT(testcase, "components.drivers.audio.tc_audio_main", utest_tc_init, utest_tc_cleanup, 10);
|
||||||
@@ -86,4 +86,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_uassert_in_range);
|
UTEST_UNIT_RUN(TC_uassert_in_range);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "utest", RT_NULL, RT_NULL, 10);
|
UTEST_TC_EXPORT(utest_do_tc, "components.utilities.utest.uassert", RT_NULL, RT_NULL, 10);
|
||||||
|
|||||||
@@ -158,4 +158,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_rt_memcmp_large_array);
|
UTEST_UNIT_RUN(TC_rt_memcmp_large_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_memcmp", RT_NULL, RT_NULL, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_memcmp", RT_NULL, RT_NULL, 1000);
|
||||||
|
|||||||
@@ -105,4 +105,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_rt_memcpy_align);
|
UTEST_UNIT_RUN(TC_rt_memcpy_align);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_memcpy", utest_tc_init, utest_tc_cleanup, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_memcpy", utest_tc_init, utest_tc_cleanup, 1000);
|
||||||
|
|||||||
@@ -105,4 +105,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_rt_memmove_empty_string);
|
UTEST_UNIT_RUN(TC_rt_memmove_empty_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_memmove", RT_NULL, RT_NULL, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_memmove", RT_NULL, RT_NULL, 1000);
|
||||||
|
|||||||
@@ -99,4 +99,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_rt_memcpy_input);
|
UTEST_UNIT_RUN(TC_rt_memcpy_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_memset", utest_tc_init, utest_tc_cleanup, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_memset", utest_tc_init, utest_tc_cleanup, 1000);
|
||||||
|
|||||||
@@ -1062,4 +1062,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(SPRINTF_TEST_CASE_NAME(misc));
|
UTEST_UNIT_RUN(SPRINTF_TEST_CASE_NAME(misc));
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_sprintf", RT_NULL, RT_NULL, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_sprintf", RT_NULL, RT_NULL, 1000);
|
||||||
|
|||||||
@@ -247,4 +247,4 @@ static void utest_do_tc(void)
|
|||||||
UTEST_UNIT_RUN(TC_rt_sscanf_issue_9853);
|
UTEST_UNIT_RUN(TC_rt_sscanf_issue_9853);
|
||||||
}
|
}
|
||||||
|
|
||||||
UTEST_TC_EXPORT(utest_do_tc, "klibc.rt_sscanf", RT_NULL, RT_NULL, 1000);
|
UTEST_TC_EXPORT(utest_do_tc, "core.klibc.rt_sscanf", RT_NULL, RT_NULL, 1000);
|
||||||
|
|||||||
Reference in New Issue
Block a user