Bug 13063

Summary: Add build-time testing support via qemu-user?
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: Medium+ CC: anuj.mittal, juro.bystricky, meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.7   
Target Milestone: 2.8   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Ross Burton 2018-12-05 17:22:11 UTC
Python's profile-guided-optimisation has shown that it's possible to run non-trivial code at build time.

Should we extend this so that recipes can run the target test suite inside a qemu-user? Is this even feasible?  One big caveat is that fork/exec doesn't work correctly unless binfmt_misc is setup.
Comment 1 Ross Burton 2018-12-12 12:04:25 UTC
*** Bug 12724 has been marked as a duplicate of this bug. ***
Comment 2 Ross Burton 2019-04-02 13:01:55 UTC
qemu-user can't fork/exec, the assumption is that binfmt-misc is configured.  We can't assume that so that's a serious blocker for test cases which tend to fork/exec heavily.