Skip to content

Commit 36393c6

Browse files
authored
improve[ci]: integrate utest run ci (#10748)
1 parent 2b65a6f commit 36393c6

File tree

24 files changed

+51
-202
lines changed

24 files changed

+51
-202
lines changed

.github/utest/default.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/action_utest.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

.github/workflows/utest_auto_run.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Automation utest run script for the QEMU platform
2-
# Generate the corresponding config configuration for CI based on the configuration file under .github/utest.
2+
# Generate the corresponding config configuration for CI based on the configuration file under examples/utest/configs.
33

44
name: utest_auto_run
55

@@ -50,19 +50,26 @@ jobs:
5050
include:
5151
# only run on qemu-vexpress-a9
5252
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
53-
config_file: "kernel/object.cfg"
53+
config_file: "kernel/kernel_basic.cfg"
54+
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
55+
config_file: "kernel/ipc.cfg"
56+
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
57+
config_file: "kernel/mem.cfg"
5458

5559
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
56-
config_file: "dfs/dfs.cfg"
60+
config_file: "kernel/atomic_c11.cfg"
61+
- platform: { UTEST: "RISCV", RTT_BSP: "bsp/qemu-virt64-riscv", QEMU_ARCH: "riscv64", QEMU_MACHINE: "virt", SD_FILE: "None", KERNEL: "standard", "SMP_RUN":"" }
62+
config_file: "kernel/atomic_c11.cfg"
5763

5864
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
5965
config_file: "cpp11/cpp11.cfg"
6066

6167
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
62-
config_file: "lwip/lwip.cfg"
63-
68+
config_file: "components/lwip.cfg"
69+
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
70+
config_file: "components/netdev.cfg"
6471
- platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" }
65-
config_file: "netdev/netdev.cfg"
72+
config_file: "components/dfs.cfg"
6673

6774
env:
6875
TEST_QEMU_ARCH: ${{ matrix.platform.QEMU_ARCH }}
@@ -181,16 +188,16 @@ jobs:
181188
run: |
182189
# Whether plan to run SMP?
183190
if [[ "${{ matrix.platform.SMP_RUN }}" == "smp" ]]; then
184-
cat .github/utest/smp/smp.cfg >> $TEST_BSP_ROOT/.config
191+
cat examples/utest/configs/smp/smp.cfg >> $TEST_BSP_ROOT/.config
185192
fi
186193
187194
# Is the kernel rtsmart?
188195
if [[ "${{ matrix.platform.KERNEL }}" == "rtsmart" ]]; then
189-
cat .github/utest/rtsmart/rtsmart.cfg >> $TEST_BSP_ROOT/.config
196+
cat examples/utest/configs/rtsmart/rtsmart.cfg >> $TEST_BSP_ROOT/.config
190197
fi
191198
192199
echo CONFIG_RT_USING_UTESTCASES=y >> $TEST_BSP_ROOT/.config
193-
cat .github/utest/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
200+
cat examples/utest/configs/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
194201
scons --pyconfig-silent -C $TEST_BSP_ROOT
195202
scons -j$(nproc) --strict -C $TEST_BSP_ROOT
196203
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/utest/configs/cpp11/cpp11.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/utest/configs/default.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# dependencies
2+
CONFIG_RT_CONSOLEBUF_SIZE=1024
3+
CONFIG_RT_USING_CI_ACTION=y
4+
5+
CONFIG_UTEST_SELF_PASS_TC=y
6+
CONFIG_UTEST_MEMHEAP_TC=y
7+
CONFIG_UTEST_SMALL_MEM_TC=y

examples/utest/configs/kernel/atomic.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)