Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2cd8c5b
utest: UTEST_SERIAL_BYPASS -> RT_UTEST_SERIAL_BYPASS
unicornx Oct 13, 2025
b940067
utest: UTEST_SERIAL_TC -> RT_UTEST_SERIAL_V2
unicornx Oct 13, 2025
0d73346
utest: UTEST_SERIAL_QEMU_TC -> RT_UTEST_SERIAL_QEMU
unicornx Oct 13, 2025
9fd1a48
utest: UTEST_SERIAL_POSIX_TC -> RT_UTEST_SERIAL_POSIX
unicornx Oct 13, 2025
0dc3990
utest: UTEST_SELF_PASS_TC -> RT_UTEST_SELF_PASS
unicornx Oct 13, 2025
57c0662
utest: UTEST_CPP11_THREAD_TC -> RT_UTEST_CPP11_THREAD
unicornx Oct 13, 2025
3b70688
utest: UTEST_MM_API_TC -> RT_UTEST_MM_API
unicornx Oct 13, 2025
62aed67
utest: UTEST_MM_LWP_TC -> RT_UTEST_MM_LWP
unicornx Oct 13, 2025
7c6c15d
utest: UTEST_TMPFS_CP -> RT_UTEST_TMPFS_CP
unicornx Oct 13, 2025
7d09bf7
utest: UTEST_MEMHEAP_TC -> RT_UTEST_MEMHEAP
unicornx Oct 13, 2025
2077da6
utest: UTEST_SMALL_MEM_TC -> RT_UTEST_SMALL_MEM
unicornx Oct 13, 2025
fedad06
utest: UTEST_OBJECT_TC -> RT_UTEST_OBJECT
unicornx Oct 13, 2025
a7b22d1
utest: UTEST_SLAB_TC -> RT_UTEST_SLAB
unicornx Oct 13, 2025
4755be5
utest: UTEST_IRQ_TC -> RT_UTEST_IRQ
unicornx Oct 13, 2025
e6d31f2
utest: UTEST_SEMAPHORE_TC -> RT_UTEST_SEMAPHORE
unicornx Oct 13, 2025
fc7310a
utest: UTEST_EVENT_TC -> RT_UTEST_EVENT
unicornx Oct 13, 2025
7fd2a08
utest: UTEST_TIMER_TC -> RT_UTEST_TIMER
unicornx Oct 13, 2025
31ca832
utest: UTEST_MESSAGEQUEUE_TC -> RT_UTEST_MESSAGEQUEUE
unicornx Oct 13, 2025
a53366c
utest: UTEST_SIGNAL_TC -> RT_UTEST_SIGNAL
unicornx Oct 13, 2025
546d5ec
utest: UTEST_MUTEX_TC -> RT_UTEST_MUTEX
unicornx Oct 13, 2025
50bf8b5
utest: UTEST_MAILBOX_TC -> RT_UTEST_MAILBOX
unicornx Oct 13, 2025
6ed7641
utest: UTEST_THREAD_TC -> RT_UTEST_THREAD
unicornx Oct 13, 2025
ea81d1a
utest: UTEST_ATOMIC_TC -> RT_UTEST_ATOMIC
unicornx Oct 13, 2025
b99b63a
utest: UTEST_HOOKLIST_TC -> RT_UTEST_HOOKLIST
unicornx Oct 13, 2025
0c3fe38
utest: UTEST_MTSAFE_KPRINT_TC -> RT_UTEST_MTSAFE_KPRINT
unicornx Oct 13, 2025
ee35f08
utest: UTEST_SCHEDULER_TC -> RT_UTEST_SCHEDULER
unicornx Oct 13, 2025
6874b4a
utest: UTEST_SMP_AFFFINITY_TC -> RT_UTEST_SMP_AFFFINITY
unicornx Oct 13, 2025
873de26
utest: UTEST_SMP_ASSIGNED_IDLE_CORE_TC -> RT_UTEST_SMP_ASSIGNED_IDLE_…
unicornx Oct 13, 2025
dedc37d
utest: UTEST_SMP_INTERRUPT_PRI_TC -> RT_UTEST_SMP_INTERRUPT_PRI
unicornx Oct 13, 2025
e8f891a
utest: UTEST_SMP_SPINLOCK_TC -> RT_UTEST_SMP_SPINLOCK
unicornx Oct 13, 2025
8ba47a4
utest: UTEST_SMP_THREAD_PREEMPTION_TC -> RT_UTEST_SMP_THREAD_PREEMPTION
unicornx Oct 13, 2025
a523ea6
doxygen: update doc for utest for config naming rule
unicornx Oct 14, 2025
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
4 changes: 2 additions & 2 deletions bsp/nuvoton/ma35-rtp/.config
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,13 @@ CONFIG_RT_USING_UTESTCASES=y
#
# Utest Self Testcase
#
CONFIG_UTEST_SELF_PASS_TC=y
CONFIG_RT_UTEST_SELF_PASS=y
# end of Utest Self Testcase

#
# Kernel Testcase
#
CONFIG_UTEST_SMALL_MEM_TC=y
CONFIG_RT_UTEST_SMALL_MEM=y
# CONFIG_UTEST_IRQ_TC is not set
# CONFIG_UTEST_SEMAPHORE_TC is not set
# CONFIG_UTEST_EVENT_TC is not set
Expand Down
4 changes: 2 additions & 2 deletions bsp/nuvoton/ma35-rtp/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@

/* Utest Self Testcase */

#define UTEST_SELF_PASS_TC
#define RT_UTEST_SELF_PASS
/* end of Utest Self Testcase */

/* Kernel Testcase */

#define UTEST_SMALL_MEM_TC
#define RT_UTEST_SMALL_MEM
/* end of Kernel Testcase */

/* CPP11 Testcase */
Expand Down
6 changes: 3 additions & 3 deletions bsp/nuvoton/numaker-hmi-ma35d1/.config
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,14 @@ CONFIG_RT_USING_UTESTCASES=y
#
# Utest Self Testcase
#
CONFIG_UTEST_SELF_PASS_TC=y
CONFIG_RT_UTEST_SELF_PASS=y
# end of Utest Self Testcase

#
# Kernel Testcase
#
CONFIG_UTEST_MEMHEAP_TC=y
CONFIG_UTEST_SMALL_MEM_TC=y
CONFIG_RT_UTEST_MEMHEAP=y
CONFIG_RT_UTEST_SMALL_MEM=y
# CONFIG_UTEST_IRQ_TC is not set
# CONFIG_UTEST_SEMAPHORE_TC is not set
# CONFIG_UTEST_EVENT_TC is not set
Expand Down
6 changes: 3 additions & 3 deletions bsp/nuvoton/numaker-hmi-ma35d1/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,13 @@

/* Utest Self Testcase */

#define UTEST_SELF_PASS_TC
#define RT_UTEST_SELF_PASS
/* end of Utest Self Testcase */

/* Kernel Testcase */

#define UTEST_MEMHEAP_TC
#define UTEST_SMALL_MEM_TC
#define RT_UTEST_MEMHEAP
#define RT_UTEST_SMALL_MEM
/* end of Kernel Testcase */

/* CPP11 Testcase */
Expand Down
6 changes: 3 additions & 3 deletions bsp/nuvoton/numaker-iot-ma35d1/.config
Original file line number Diff line number Diff line change
Expand Up @@ -606,14 +606,14 @@ CONFIG_RT_USING_UTESTCASES=y
#
# Utest Self Testcase
#
CONFIG_UTEST_SELF_PASS_TC=y
CONFIG_RT_UTEST_SELF_PASS=y
# end of Utest Self Testcase

#
# Kernel Testcase
#
CONFIG_UTEST_MEMHEAP_TC=y
CONFIG_UTEST_SMALL_MEM_TC=y
CONFIG_RT_UTEST_MEMHEAP=y
CONFIG_RT_UTEST_SMALL_MEM=y
# CONFIG_UTEST_IRQ_TC is not set
# CONFIG_UTEST_SEMAPHORE_TC is not set
# CONFIG_UTEST_EVENT_TC is not set
Expand Down
6 changes: 3 additions & 3 deletions bsp/nuvoton/numaker-iot-ma35d1/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,13 @@

/* Utest Self Testcase */

#define UTEST_SELF_PASS_TC
#define RT_UTEST_SELF_PASS
/* end of Utest Self Testcase */

/* Kernel Testcase */

#define UTEST_MEMHEAP_TC
#define UTEST_SMALL_MEM_TC
#define RT_UTEST_MEMHEAP
#define RT_UTEST_SMALL_MEM
/* end of Kernel Testcase */

/* CPP11 Testcase */
Expand Down
4 changes: 2 additions & 2 deletions bsp/nuvoton/numaker-m032ki/.config
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ CONFIG_RT_USING_UTESTCASES=y
#
# Utest Self Testcase
#
CONFIG_UTEST_SELF_PASS_TC=y
CONFIG_RT_UTEST_SELF_PASS=y
# end of Utest Self Testcase

#
# Kernel Testcase
#
CONFIG_UTEST_SMALL_MEM_TC=y
CONFIG_RT_UTEST_SMALL_MEM=y
# CONFIG_UTEST_IRQ_TC is not set
# CONFIG_UTEST_SEMAPHORE_TC is not set
# CONFIG_UTEST_EVENT_TC is not set
Expand Down
4 changes: 2 additions & 2 deletions bsp/nuvoton/numaker-m032ki/config_lvgl
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ CONFIG_RT_USING_UTESTCASES=y
#
# Utest Self Testcase
#
CONFIG_UTEST_SELF_PASS_TC=y
CONFIG_RT_UTEST_SELF_PASS=y

#
# Kernel Testcase
#
CONFIG_UTEST_SMALL_MEM_TC=y
CONFIG_RT_UTEST_SMALL_MEM=y
# CONFIG_UTEST_IRQ_TC is not set
# CONFIG_UTEST_SEMAPHORE_TC is not set
# CONFIG_UTEST_EVENT_TC is not set
Expand Down
4 changes: 2 additions & 2 deletions bsp/nuvoton/numaker-m032ki/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@

/* Utest Self Testcase */

#define UTEST_SELF_PASS_TC
#define RT_UTEST_SELF_PASS
/* end of Utest Self Testcase */

/* Kernel Testcase */

#define UTEST_SMALL_MEM_TC
#define RT_UTEST_SMALL_MEM
/* end of Kernel Testcase */

/* CPP11 Testcase */
Expand Down
2 changes: 1 addition & 1 deletion bsp/raspberry-pi/raspi-dm2.0/.config
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ CONFIG_RT_USING_UTESTCASES=y
# CONFIG_UTEST_ATOMIC_TC is not set
# CONFIG_UTEST_HOOKLIST_TC is not set
# CONFIG_UTEST_MTSAFE_KPRINT_TC is not set
CONFIG_UTEST_SCHEDULER_TC=y
CONFIG_RT_UTEST_SCHEDULER=y

#
# Kernel SMP Testcase
Expand Down
2 changes: 1 addition & 1 deletion bsp/raspberry-pi/raspi-dm2.0/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@

/* Kernel Testcase */

#define UTEST_SCHEDULER_TC
#define RT_UTEST_SCHEDULER

/* Kernel SMP Testcase */

Expand Down
12 changes: 6 additions & 6 deletions components/drivers/serial/utest/Kconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
menu "Serial Unit Testcases"

config UTEST_SERIAL_BYPASS
config RT_UTEST_SERIAL_BYPASS
bool "Serial Bypass 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"
Expand All @@ -28,18 +28,18 @@ menu "Serial Unit Testcases"
int "the number of iterations for the test routine."
default 100

config UTEST_SERIAL_QEMU_TC
config RT_UTEST_SERIAL_QEMU
bool "qemu dedicated tests"
default n

config UTEST_SERIAL_POSIX_TC
config RT_UTEST_SERIAL_POSIX
bool "Serial posix testcase"
default n
select RT_USING_DFS
select RT_USING_POSIX_FS
select RT_USING_POSIX_TERMIOS

if UTEST_SERIAL_POSIX_TC
if RT_UTEST_SERIAL_POSIX

config RT_SERIAL_POSIX_TC_DEVICE_NAME
string "the device name for serial posix test"
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/bypass/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ src = Glob('bypass*.c')

CPPPATH = [cwd]

group = DefineGroup('utestcases', src, depend = ['UTEST_SERIAL_BYPASS'], CPPPATH = CPPPATH)
group = DefineGroup('utestcases', src, depend = ['RT_UTEST_SERIAL_BYPASS'], CPPPATH = CPPPATH)

Return('group')
6 changes: 3 additions & 3 deletions components/drivers/serial/utest/v2/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ src = Glob('*.c')

path = [cwd]

if GetDepend(['UTEST_SERIAL_POSIX_TC']):
if GetDepend(['RT_UTEST_SERIAL_POSIX']):
src += Glob('posix/*.c')

if GetDepend(['UTEST_SERIAL_QEMU_TC']):
if GetDepend(['RT_UTEST_SERIAL_QEMU']):
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')

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <unistd.h>


#ifdef UTEST_SERIAL_TC
#ifdef RT_UTEST_SERIAL_V2

static int32_t serial_fd;

Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/qemu/uart_qemu_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_blocking_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_blocking_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_flush_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdlib.h>


#ifdef UTEST_SERIAL_TC
#ifdef RT_UTEST_SERIAL_V2

static struct rt_serial_device *serial;

Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_flush_txb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdlib.h>


#ifdef UTEST_SERIAL_TC
#ifdef RT_UTEST_SERIAL_V2

static struct rt_serial_device *serial;

Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_flush_txnb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdlib.h>


#ifdef UTEST_SERIAL_TC
#ifdef RT_UTEST_SERIAL_V2

static struct rt_serial_device *serial;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_nonblocking_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_nonblocking_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_overflow_rxb_txb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_rxb_txb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_rxb_txnb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_rxnb_txb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_rxnb_txnb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_timeout_rxb.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdlib.h>


#ifdef UTEST_SERIAL_TC
#ifdef RT_UTEST_SERIAL_V2

static struct rt_serial_device *serial;

Expand Down
2 changes: 1 addition & 1 deletion components/drivers/serial/utest/v2/uart_timeout_rxb_txb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading