Bug 6615 - Make it possible to generate a ptest package for only one package or several of them
Summary: Make it possible to generate a ptest package for only one package or several ...
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-08-07 12:04 UTC by Laszlo Papp
Modified: 2015-02-19 16:02 UTC (History)
4 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 Laszlo Papp 2014-08-07 12:04:46 UTC
It looks like the current operation is "catch-all" or "catch-nothing".

This is sub-optimal because if I only wish to test a small util in my "meta-foo" layer, I would not like to wait for every other ptest packages to be built. It is waste of time, resource and potentially money.

Currently, I am planning to wait for this feature to be available before adopting.

I understand and appreciate that the workaround is to remove the "ptest" from everywhere else, but that would be too intrusive compared to the gain of "ptest" as of now. I can just build my own "foo-test" for the time being, install it and then run my test script or binary on the target. That looks like a more pleasant way of achieving my goal.

Having said, I would give a try to ptest in the future, once this report is fixed.
Comment 1 Ross Burton 2015-02-19 16:02:40 UTC
Enabling ptest globally doesn't imply installing all of the ptest packages, but if you want to avoid the overhead of building the ptest support for all but a few packages then you can selectively enable it per-recipe.

For example assuming DISTRO_FEATURES doesn't contain ptest, then you can add it to specific recipes (eg glib-2.0) with DISTRO_FEATURES_append_pn-glib-2.0 = " ptest" in your configuration (local.conf, etc).