summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-06-11 15:53:08 +0800
committerRbb666 <[email protected]>2026-06-12 14:22:53 +0800
commit38c5ff0e56ba624562ec1e6b6fedb03b28c0b029 (patch)
treea27bf78337916dd1d6cc59db6ddd79797c3ff7c4 /.github
parentbb4aace00f49ea89d0888d1d4af65142fc82c469 (diff)
utest: move ci configs to github directory
Signed-off-by: CYFS <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/utest/configs/components/dfs.cfg10
-rw-r--r--.github/utest/configs/components/lwip.cfg20
-rw-r--r--.github/utest/configs/components/netdev.cfg11
-rw-r--r--.github/utest/configs/components/sal.cfg8
-rw-r--r--.github/utest/configs/cpp11/cpp11.cfg5
-rw-r--r--.github/utest/configs/default.cfg7
-rw-r--r--.github/utest/configs/kernel/atomic_c11.cfg6
-rw-r--r--.github/utest/configs/kernel/ipc.cfg21
-rw-r--r--.github/utest/configs/kernel/kernel_basic.cfg16
-rw-r--r--.github/utest/configs/kernel/mem.cfg9
-rw-r--r--.github/utest/configs/rtsmart/rtsmart.cfg6
-rw-r--r--.github/utest/configs/smp/smp.cfg11
-rw-r--r--.github/workflows/utest_auto_run.yml15
13 files changed, 139 insertions, 6 deletions
diff --git a/.github/utest/configs/components/dfs.cfg b/.github/utest/configs/components/dfs.cfg
new file mode 100644
index 0000000000..d78ea0df33
--- /dev/null
+++ b/.github/utest/configs/components/dfs.cfg
@@ -0,0 +1,10 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_NAME_MAX=24
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_DFS_API_TC=y
+CONFIG_RT_UTEST_POSIX_API_TC=y
+CONFIG_RT_UTEST_DFS_MNT_PATH=""
+CONFIG_RT_UTEST_DFS_FS_TYPE="elm"
+CONFIG_RT_UTEST_DFS_BLOCK_DEV="sd0" \ No newline at end of file
diff --git a/.github/utest/configs/components/lwip.cfg b/.github/utest/configs/components/lwip.cfg
new file mode 100644
index 0000000000..7f8b6e53e7
--- /dev/null
+++ b/.github/utest/configs/components/lwip.cfg
@@ -0,0 +1,20 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_NAME_MAX=24
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_LWIP_NETIF_LOOPBACK=y
+CONFIG_LWIP_NETIF_LOOPBACK=1
+CONFIG_RT_UTEST_TC_USING_LWIP=y
+CONFIG_RT_UTEST_LWIP_DNS_TEST=y
+CONFIG_RT_UTEST_LWIP_TCP_TEST=y
+CONFIG_RT_UTEST_LWIP_UDP_TEST=y
+CONFIG_RT_UTEST_LWIP_ICMP_TEST=y
+CONFIG_RT_UTEST_LWIP_SOCKET_OPT_TEST=y
+CONFIG_RT_UTEST_LWIP_ADDR_CONV_TEST=y
+CONFIG_RT_UTEST_LWIP_NETIF_TEST=y
+CONFIG_RT_UTEST_LWIP_TCP_PORT=1234
+CONFIG_RT_UTEST_LWIP_UDP_PORT=1235
+CONFIG_RT_UTEST_LWIP_TEST_URL="www.rt-thread.org"
+CONFIG_RT_UTEST_LWIP_TEST_ADDR="180.163.146.111"
+CONFIG_BSP_DRV_EMAC=y \ No newline at end of file
diff --git a/.github/utest/configs/components/netdev.cfg b/.github/utest/configs/components/netdev.cfg
new file mode 100644
index 0000000000..d09e790ac4
--- /dev/null
+++ b/.github/utest/configs/components/netdev.cfg
@@ -0,0 +1,11 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_NAME_MAX=24
+CONFIG_RT_USING_CI_ACTION=y
+# CONFIG_RT_USING_LWIP203=y
+CONFIG_RT_USING_LWIP212=y
+
+CONFIG_RT_UTEST_TC_USING_NETDEV=y
+CONFIG_RT_UTEST_DEFAULT_NETDEV_NAME="e0"
+
+CONFIG_BSP_DRV_EMAC=y \ No newline at end of file
diff --git a/.github/utest/configs/components/sal.cfg b/.github/utest/configs/components/sal.cfg
new file mode 100644
index 0000000000..fd6dcdb585
--- /dev/null
+++ b/.github/utest/configs/components/sal.cfg
@@ -0,0 +1,8 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_NAME_MAX=24
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_TC_USING_SAL=y
+CONFIG_RT_LWIP_NETIF_LOOPBACK=y
+CONFIG_BSP_DRV_EMAC=y \ No newline at end of file
diff --git a/.github/utest/configs/cpp11/cpp11.cfg b/.github/utest/configs/cpp11/cpp11.cfg
new file mode 100644
index 0000000000..4cf1338868
--- /dev/null
+++ b/.github/utest/configs/cpp11/cpp11.cfg
@@ -0,0 +1,5 @@
+CONFIG_RT_UTEST_CPP11_THREAD=y
+# dependencies
+CONFIG_RT_USING_CI_ACTION=y
+CONFIG_RT_USING_CPLUSPLUS=y
+CONFIG_RT_USING_CPLUSPLUS11=y
diff --git a/.github/utest/configs/default.cfg b/.github/utest/configs/default.cfg
new file mode 100644
index 0000000000..ebc7b5fc41
--- /dev/null
+++ b/.github/utest/configs/default.cfg
@@ -0,0 +1,7 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_SELF_PASS=y
+CONFIG_RT_UTEST_MEMHEAP=y
+CONFIG_RT_UTEST_SMALL_MEM=y \ No newline at end of file
diff --git a/.github/utest/configs/kernel/atomic_c11.cfg b/.github/utest/configs/kernel/atomic_c11.cfg
new file mode 100644
index 0000000000..1ea6765289
--- /dev/null
+++ b/.github/utest/configs/kernel/atomic_c11.cfg
@@ -0,0 +1,6 @@
+CONFIG_RT_UTEST_ATOMIC=y
+CONFIG_RT_USING_CI_ACTION=y
+# dependencies
+CONFIG_RT_USING_TIMER_SOFT=y
+CONFIG_RT_USING_THREAD=y
+CONFIG_RT_USING_STDC_ATOMIC=y
diff --git a/.github/utest/configs/kernel/ipc.cfg b/.github/utest/configs/kernel/ipc.cfg
new file mode 100644
index 0000000000..7ad79b0e25
--- /dev/null
+++ b/.github/utest/configs/kernel/ipc.cfg
@@ -0,0 +1,21 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_SEMAPHORE=y
+CONFIG_RT_UTEST_EVENT=y
+CONFIG_RT_UTEST_MESSAGEQUEUE=y
+CONFIG_RT_UTEST_SIGNAL=y
+CONFIG_RT_UTEST_MUTEX=y
+CONFIG_RT_UTEST_MAILBOX=y
+
+CONFIG_RT_UTEST_COMPLETION=y
+CONFIG_RT_UTEST_WORKQUEUE=y
+
+CONFIG_RT_USING_SEMAPHORE=y
+CONFIG_RT_USING_EVENT=y
+CONFIG_RT_USING_MESSAGEQUEUE=y
+CONFIG_RT_USING_SIGNALS=y
+CONFIG_RT_USING_MUTEX=y
+CONFIG_RT_USING_MAILBOX=y
+CONFIG_UTEST_THR_STACK_SIZE=8192 \ No newline at end of file
diff --git a/.github/utest/configs/kernel/kernel_basic.cfg b/.github/utest/configs/kernel/kernel_basic.cfg
new file mode 100644
index 0000000000..ee153e3586
--- /dev/null
+++ b/.github/utest/configs/kernel/kernel_basic.cfg
@@ -0,0 +1,16 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_TIMER=y
+CONFIG_RT_UTEST_TC_USING_KLIBC=y
+CONFIG_RT_UTEST_OBJECT=y
+CONFIG_RT_UTEST_IRQ=y
+CONFIG_RT_UTEST_THREAD=y
+CONFIG_RT_UTEST_DRIVERS_CORE=y
+CONFIG_RT_UTEST_ATOMIC=y
+CONFIG_RT_UTEST_HOOKLIST=y
+CONFIG_RT_UTEST_MTSAFE_KPRINT=y
+CONFIG_RT_UTEST_SCHEDULER=y
+
+CONFIG_UTEST_THR_STACK_SIZE=8192 \ No newline at end of file
diff --git a/.github/utest/configs/kernel/mem.cfg b/.github/utest/configs/kernel/mem.cfg
new file mode 100644
index 0000000000..df3ce9ef82
--- /dev/null
+++ b/.github/utest/configs/kernel/mem.cfg
@@ -0,0 +1,9 @@
+# dependencies
+CONFIG_RT_CONSOLEBUF_SIZE=1024
+CONFIG_RT_USING_CI_ACTION=y
+
+CONFIG_RT_UTEST_MEMHEAP=y
+CONFIG_RT_UTEST_SMALL_MEM=y
+CONFIG_RT_UTEST_MEMPOOL=y
+
+CONFIG_UTEST_THR_STACK_SIZE=8192 \ No newline at end of file
diff --git a/.github/utest/configs/rtsmart/rtsmart.cfg b/.github/utest/configs/rtsmart/rtsmart.cfg
new file mode 100644
index 0000000000..efc6064079
--- /dev/null
+++ b/.github/utest/configs/rtsmart/rtsmart.cfg
@@ -0,0 +1,6 @@
+CONFIG_RT_UTEST_MEMHEAP=y
+
+# dependencies
+CONFIG_RT_USING_SMART=y
+CONFIG_RT_USING_MEMHEAP=y
+CONFIG_RT_USING_DFS_V2=y
diff --git a/.github/utest/configs/smp/smp.cfg b/.github/utest/configs/smp/smp.cfg
new file mode 100644
index 0000000000..584cb882c7
--- /dev/null
+++ b/.github/utest/configs/smp/smp.cfg
@@ -0,0 +1,11 @@
+# dependencies
+CONFIG_RT_USING_CI_ACTION=y
+CONFIG_RT_CPUS_NR=2
+CONFIG_RT_USING_SMP=y
+CONFIG_RT_USING_UTESTCASES=y
+CONFIG_SYSTEM_THREAD_STACK_SIZE=4096
+CONFIG_RT_UTEST_SMP_AFFFINITY=y
+CONFIG_RT_UTEST_SMP_ASSIGNED_IDLE_CORE=y
+CONFIG_RT_UTEST_SMP_INTERRUPT_PRI=y
+CONFIG_RT_UTEST_SMP_SPINLOCK=y
+CONFIG_RT_UTEST_SMP_THREAD_PREEMPTION=y \ No newline at end of file
diff --git a/.github/workflows/utest_auto_run.yml b/.github/workflows/utest_auto_run.yml
index 4dfdcd6092..b8eb99c834 100644
--- a/.github/workflows/utest_auto_run.yml
+++ b/.github/workflows/utest_auto_run.yml
@@ -1,5 +1,5 @@
# Automation utest run script for the QEMU platform
-# Generate the corresponding config configuration for CI based on the configuration file under examples/utest/configs.
+# Generate the corresponding config configuration for CI based on the configuration file under .github/utest/configs.
name: utest_auto_run
@@ -9,8 +9,9 @@ on:
- master
paths:
- '.github/workflows/utest_auto_run.yml'
+ - '.github/utest/configs/**'
- 'Kconfig'
- - 'Kconfig.utestcases'
+ - 'components/utilities/utest/Kconfig'
- 'bsp/qemu-vexpress-a9/**'
- 'bsp/qemu-virt64-aarch64/**'
- 'bsp/qemu-virt64-riscv/**'
@@ -28,8 +29,9 @@ on:
- master
paths:
- '.github/workflows/utest_auto_run.yml'
+ - '.github/utest/configs/**'
- 'Kconfig'
- - 'Kconfig.utestcases'
+ - 'components/utilities/utest/Kconfig'
- 'bsp/qemu-vexpress-a9/**'
- 'bsp/qemu-virt64-aarch64/**'
- 'bsp/qemu-virt64-riscv/**'
@@ -155,6 +157,7 @@ jobs:
TEST_BSP_ROOT: ${{ matrix.platform.RTT_BSP }}
TEST_CONFIG_FILE: ${{ matrix.config_file }}
TEST_SD_FILE: ${{ matrix.platform.SD_FILE }}
+ UTEST_CONFIG_ROOT: .github/utest/configs
steps:
- uses: actions/checkout@main
@@ -266,16 +269,16 @@ jobs:
run: |
# Whether plan to run SMP?
if [[ "${{ matrix.platform.SMP_RUN }}" == "smp" ]]; then
- cat examples/utest/configs/smp/smp.cfg >> $TEST_BSP_ROOT/.config
+ cat $UTEST_CONFIG_ROOT/smp/smp.cfg >> $TEST_BSP_ROOT/.config
fi
# Is the kernel rtsmart?
if [[ "${{ matrix.platform.KERNEL }}" == "rtsmart" ]]; then
- cat examples/utest/configs/rtsmart/rtsmart.cfg >> $TEST_BSP_ROOT/.config
+ cat $UTEST_CONFIG_ROOT/rtsmart/rtsmart.cfg >> $TEST_BSP_ROOT/.config
fi
echo CONFIG_RT_USING_UTESTCASES=y >> $TEST_BSP_ROOT/.config
- cat examples/utest/configs/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
+ cat $UTEST_CONFIG_ROOT/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
scons --pyconfig-silent -C $TEST_BSP_ROOT
scons -j$(nproc) --strict -C $TEST_BSP_ROOT