How to test your Yocto project with testimage and ptest
summary
Shows how to run Yocto testimage and ptest (via qemu or hardware) and then automatically convert the produced testresults.json into a JUnit XML using the result-tool so CI can visualize results. Demonstrates three example tests (pass, fail, skip) and the ptest-runner/one-ptest.sh flow, explains qemu-helper and network setup for CI, and documents an upstream OE-Core patch that adds the junit output so GitLab CI shows pass/skip/fail and clickable error details.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:46Importance of testing
- 3:51Testimage framework
- 5:13Testimage features
- 7:21Testimage configuration
- 9:03Testimage execution
- 10:44Test results analysis
- 11:54Ptest framework
- 13:41Ptest architecture
- 15:00Ptest integration
- 16:45Ptest enablement
- 18:08Running Ptest
- 19:17Learnings and improvements
- 20:33JUnit visualization tool
- 22:23CI/CD integration
- 23:43Pipeline configuration
- 24:34Results and closing
