Bug 13063 - Add build-time testing support via qemu-user?
Summary: Add build-time testing support via qemu-user?
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.8
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
: 12724 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-05 17:22 UTC by Ross Burton
Modified: 2019-04-02 13:01 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.