|
1 | 1 | # 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. |
3 | 3 |
|
4 | 4 | name: utest_auto_run |
5 | 5 |
|
@@ -50,19 +50,26 @@ jobs: |
50 | 50 | include: |
51 | 51 | # only run on qemu-vexpress-a9 |
52 | 52 | - 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" |
54 | 58 |
|
55 | 59 | - 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" |
57 | 63 |
|
58 | 64 | - platform: { UTEST: "A9", RTT_BSP: "bsp/qemu-vexpress-a9", QEMU_ARCH: "arm", QEMU_MACHINE: "vexpress-a9", SD_FILE: "sd.bin", KERNEL: "standard", "SMP_RUN":"" } |
59 | 65 | config_file: "cpp11/cpp11.cfg" |
60 | 66 |
|
61 | 67 | - 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" |
64 | 71 | - 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" |
66 | 73 |
|
67 | 74 | env: |
68 | 75 | TEST_QEMU_ARCH: ${{ matrix.platform.QEMU_ARCH }} |
@@ -181,16 +188,16 @@ jobs: |
181 | 188 | run: | |
182 | 189 | # Whether plan to run SMP? |
183 | 190 | 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 |
185 | 192 | fi |
186 | 193 |
|
187 | 194 | # Is the kernel rtsmart? |
188 | 195 | 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 |
190 | 197 | fi |
191 | 198 |
|
192 | 199 | 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 |
194 | 201 | scons --pyconfig-silent -C $TEST_BSP_ROOT |
195 | 202 | scons -j$(nproc) --strict -C $TEST_BSP_ROOT |
196 | 203 |
|
|
0 commit comments