Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] ci/cd 在qemu上实现方案 #9937

Open
supperthomas opened this issue Jan 20, 2025 · 3 comments
Open

[Feature] ci/cd 在qemu上实现方案 #9937

supperthomas opened this issue Jan 20, 2025 · 3 comments
Assignees

Comments

@supperthomas
Copy link
Member

supperthomas commented Jan 20, 2025

Describe problem solved by the proposed feature

可以在原有的ci.attachconfig.yml中实现如下规则:

bsp_board_info:
    arch: arm
    toolchain: arm-none-eabi-gcc
    pre_build: |
       ./tools/ci/toolchain.sh arm-none-eabi-gcc
       apt-get install qemu-system
    post_build: arm-none-eabi-objcopy -O ihex rt-thread.elf rt-thread.hex
    run_cmd: ./qemu-nographic.sh                     
    qemu_flag: true
pkg.tools.coremark:
  kconfig: 
    - CONFIG_PKG_USING_COREMARK=y
  ci_build_run_flag : true
  buildcheckresult: "coremark"              #检查编译的log中是否有匹配字
  checkresult: '[==========] [ utest ] end' #检查执行过程中的log是否有匹配字
@supperthomas
Copy link
Member Author

@kurisaW

@kurisaW
Copy link
Contributor

kurisaW commented Jan 26, 2025

@supperthomas 这个之前和满老师讨论过,您的attachconfig是面向整个bsp编译的,然后qemu的auto utest 脚本实际只需要针对那三个qemu平台进行配置,分开更方便维护一些,然后配置信息我们放在.github/utest下

@supperthomas
Copy link
Member Author

@supperthomas 这个之前和满老师讨论过,您的attachconfig是面向整个bsp编译的,然后qemu的auto utest 脚本实际只需要针对那三个qemu平台进行配置,分开更方便维护一些,然后配置信息我们放在.github/utest下

可以呀,这个后面当拓展。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants