summaryrefslogtreecommitdiff
path: root/components/drivers/serial
diff options
context:
space:
mode:
authorChen Wang <[email protected]>2025-10-13 16:25:56 +0800
committerR b b666 <[email protected]>2025-10-15 09:43:16 +0800
commit2881803decac4b6ca04ca4794bd20720e7690a21 (patch)
tree0aad7e2ceb8b70d15e2fb1114b695abf4ebe7ea5 /components/drivers/serial
parent066689bd2f32de6e78d6e6da7854856d4e767f29 (diff)
utest: UTEST_SERIAL_TC -> RT_UTEST_SERIAL_V2
Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'components/drivers/serial')
-rw-r--r--components/drivers/serial/utest/Kconfig4
-rw-r--r--components/drivers/serial/utest/v2/SConscript2
-rw-r--r--components/drivers/serial/utest/v2/posix/uart_posix_echo_block.c2
-rw-r--r--components/drivers/serial/utest/v2/posix/uart_posix_nonblock.c2
-rw-r--r--components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_blocking_rx.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_blocking_tx.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_flush_rx.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_flush_txb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_flush_txnb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_get_unread_bytes_count.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_nonblocking_rx.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_nonblocking_tx.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_rxb_txb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_rxb_txnb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_rxnb_txb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_rxnb_txnb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_timeout_rxb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c2
-rw-r--r--components/drivers/serial/utest/v2/uart_timeout_txb.c2
21 files changed, 22 insertions, 22 deletions
diff --git a/components/drivers/serial/utest/Kconfig b/components/drivers/serial/utest/Kconfig
index 8c563b0c46..aa0e935cd2 100644
--- a/components/drivers/serial/utest/Kconfig
+++ b/components/drivers/serial/utest/Kconfig
@@ -5,12 +5,12 @@ menu "Serial Unit Testcases"
default n
depends on RT_USING_SERIAL_BYPASS
- config UTEST_SERIAL_TC
+ config RT_UTEST_SERIAL_V2
bool "Serial V2 testcases"
default n
depends on RT_USING_SERIAL_V2
- if UTEST_SERIAL_TC
+ if RT_UTEST_SERIAL_V2
config RT_SERIAL_TC_DEVICE_NAME
string "the device name for serial test"
diff --git a/components/drivers/serial/utest/v2/SConscript b/components/drivers/serial/utest/v2/SConscript
index 7ef99d20b7..ad185d7f82 100644
--- a/components/drivers/serial/utest/v2/SConscript
+++ b/components/drivers/serial/utest/v2/SConscript
@@ -12,7 +12,7 @@ if GetDepend(['UTEST_SERIAL_POSIX_TC']):
if GetDepend(['UTEST_SERIAL_QEMU_TC']):
src += Glob('qemu/*.c')
-group = DefineGroup('utestcases', src, depend = ['UTEST_SERIAL_TC'], CPPPATH = path)
+group = DefineGroup('utestcases', src, depend = ['RT_UTEST_SERIAL_V2'], CPPPATH = path)
Return('group')
diff --git a/components/drivers/serial/utest/v2/posix/uart_posix_echo_block.c b/components/drivers/serial/utest/v2/posix/uart_posix_echo_block.c
index 20eb076a88..b0c1045cb7 100644
--- a/components/drivers/serial/utest/v2/posix/uart_posix_echo_block.c
+++ b/components/drivers/serial/utest/v2/posix/uart_posix_echo_block.c
@@ -19,7 +19,7 @@
#include <unistd.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static int32_t serial_fd;
static rt_uint8_t uart_over_flag;
diff --git a/components/drivers/serial/utest/v2/posix/uart_posix_nonblock.c b/components/drivers/serial/utest/v2/posix/uart_posix_nonblock.c
index c7556c5151..9fdc9ad493 100644
--- a/components/drivers/serial/utest/v2/posix/uart_posix_nonblock.c
+++ b/components/drivers/serial/utest/v2/posix/uart_posix_nonblock.c
@@ -19,7 +19,7 @@
#include <unistd.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static int32_t serial_fd;
diff --git a/components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c b/components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c
index 70ec0f83ff..7200a69ecd 100644
--- a/components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c
+++ b/components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c
@@ -6,7 +6,7 @@
#define UART_TEST_NUMBER 6
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
#define echo_test_buffer_size (1024)
static rt_device_t u1serial;
diff --git a/components/drivers/serial/utest/v2/uart_blocking_rx.c b/components/drivers/serial/utest/v2/uart_blocking_rx.c
index fc7899fb30..ad14c970dc 100644
--- a/components/drivers/serial/utest/v2/uart_blocking_rx.c
+++ b/components/drivers/serial/utest/v2/uart_blocking_rx.c
@@ -2,7 +2,7 @@
#include <rtdevice.h>
#include "utest.h"
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static rt_bool_t block_read(rt_device_t uart_dev)
{
diff --git a/components/drivers/serial/utest/v2/uart_blocking_tx.c b/components/drivers/serial/utest/v2/uart_blocking_tx.c
index b4d0dc404e..ec0c79c352 100644
--- a/components/drivers/serial/utest/v2/uart_blocking_tx.c
+++ b/components/drivers/serial/utest/v2/uart_blocking_tx.c
@@ -6,7 +6,7 @@
#define UART_TEST_NUMBER 6
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static rt_bool_t block_write(rt_device_t uart_dev)
{
diff --git a/components/drivers/serial/utest/v2/uart_flush_rx.c b/components/drivers/serial/utest/v2/uart_flush_rx.c
index 9902a305a9..24af68353c 100644
--- a/components/drivers/serial/utest/v2/uart_flush_rx.c
+++ b/components/drivers/serial/utest/v2/uart_flush_rx.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
diff --git a/components/drivers/serial/utest/v2/uart_flush_txb.c b/components/drivers/serial/utest/v2/uart_flush_txb.c
index 9d105eadb0..3e99e77eca 100644
--- a/components/drivers/serial/utest/v2/uart_flush_txb.c
+++ b/components/drivers/serial/utest/v2/uart_flush_txb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
diff --git a/components/drivers/serial/utest/v2/uart_flush_txnb.c b/components/drivers/serial/utest/v2/uart_flush_txnb.c
index 1c97054754..e300df286c 100644
--- a/components/drivers/serial/utest/v2/uart_flush_txnb.c
+++ b/components/drivers/serial/utest/v2/uart_flush_txnb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
diff --git a/components/drivers/serial/utest/v2/uart_get_unread_bytes_count.c b/components/drivers/serial/utest/v2/uart_get_unread_bytes_count.c
index 86f04f7571..40e2bfc918 100644
--- a/components/drivers/serial/utest/v2/uart_get_unread_bytes_count.c
+++ b/components/drivers/serial/utest/v2/uart_get_unread_bytes_count.c
@@ -15,7 +15,7 @@
/* */
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_uint8_t uart_over_flag = RT_FALSE;
diff --git a/components/drivers/serial/utest/v2/uart_nonblocking_rx.c b/components/drivers/serial/utest/v2/uart_nonblocking_rx.c
index 493863b0aa..558b9493d2 100644
--- a/components/drivers/serial/utest/v2/uart_nonblocking_rx.c
+++ b/components/drivers/serial/utest/v2/uart_nonblocking_rx.c
@@ -2,7 +2,7 @@
#include <rtdevice.h>
#include "utest.h"
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static rt_bool_t nonblock_read(rt_device_t uart_dev)
{
diff --git a/components/drivers/serial/utest/v2/uart_nonblocking_tx.c b/components/drivers/serial/utest/v2/uart_nonblocking_tx.c
index 0f5a293fcc..3fe0fffd1b 100644
--- a/components/drivers/serial/utest/v2/uart_nonblocking_tx.c
+++ b/components/drivers/serial/utest/v2/uart_nonblocking_tx.c
@@ -6,7 +6,7 @@
#define UART_TEST_NUMBER 6
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static rt_bool_t nonblock_write(rt_device_t uart_dev)
{
diff --git a/components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c b/components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c
index 229d03e7de..6eb1ee27e9 100644
--- a/components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c
+++ b/components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_uint8_t uart_over_flag = RT_FALSE;
diff --git a/components/drivers/serial/utest/v2/uart_rxb_txb.c b/components/drivers/serial/utest/v2/uart_rxb_txb.c
index 59879abab8..98b23228d9 100644
--- a/components/drivers/serial/utest/v2/uart_rxb_txb.c
+++ b/components/drivers/serial/utest/v2/uart_rxb_txb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_uint8_t uart_over_flag;
diff --git a/components/drivers/serial/utest/v2/uart_rxb_txnb.c b/components/drivers/serial/utest/v2/uart_rxb_txnb.c
index ff10be2f9d..d5c723a1a2 100644
--- a/components/drivers/serial/utest/v2/uart_rxb_txnb.c
+++ b/components/drivers/serial/utest/v2/uart_rxb_txnb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_sem_t tx_sem;
diff --git a/components/drivers/serial/utest/v2/uart_rxnb_txb.c b/components/drivers/serial/utest/v2/uart_rxnb_txb.c
index 4e4e3f3dc4..5095273c7a 100644
--- a/components/drivers/serial/utest/v2/uart_rxnb_txb.c
+++ b/components/drivers/serial/utest/v2/uart_rxnb_txb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_sem_t rx_sem;
diff --git a/components/drivers/serial/utest/v2/uart_rxnb_txnb.c b/components/drivers/serial/utest/v2/uart_rxnb_txnb.c
index 0a08be3b0e..39168b3352 100644
--- a/components/drivers/serial/utest/v2/uart_rxnb_txnb.c
+++ b/components/drivers/serial/utest/v2/uart_rxnb_txnb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_sem_t tx_sem;
diff --git a/components/drivers/serial/utest/v2/uart_timeout_rxb.c b/components/drivers/serial/utest/v2/uart_timeout_rxb.c
index c1dfceacd9..18ece9107f 100644
--- a/components/drivers/serial/utest/v2/uart_timeout_rxb.c
+++ b/components/drivers/serial/utest/v2/uart_timeout_rxb.c
@@ -14,7 +14,7 @@
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
diff --git a/components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c b/components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c
index 0f01abe968..24a9f2f0c6 100644
--- a/components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c
+++ b/components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c
@@ -15,7 +15,7 @@
/* */
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
static struct rt_serial_device *serial;
static rt_bool_t uart_result = RT_TRUE;
diff --git a/components/drivers/serial/utest/v2/uart_timeout_txb.c b/components/drivers/serial/utest/v2/uart_timeout_txb.c
index c805f3f027..d60e9bd02c 100644
--- a/components/drivers/serial/utest/v2/uart_timeout_txb.c
+++ b/components/drivers/serial/utest/v2/uart_timeout_txb.c
@@ -13,7 +13,7 @@
#include <rtdevice.h>
#include <stdlib.h>
-#ifdef UTEST_SERIAL_TC
+#ifdef RT_UTEST_SERIAL_V2
#ifndef BSP_UART2_TX_USING_DMA
static struct rt_serial_device *serial;