[OE-core] run ptest for specific packages or layers
Nathan Lynch
Nathan_Lynch at mentor.com
Tue Feb 3 22:30:07 UTC 2015
On 01/30/2015 09:09 AM, Burton, Ross wrote:
>
> On 30 January 2015 at 13:39, Markus Boos <Markus.Boos at kistler.com
> <mailto:Markus.Boos at kistler.com>> wrote:
>
> We faced the problem that our image (built with ptest feature)
> doesn't fit into our flash [1].
> I'd like to run the ptest on real hardware cause some packages need
> the mounted FPGA functionality.
>
>
> Don't use ptest-pkgs to pull the tests into the image, but add the ones
> you want directly. Such as:
>
> CORE_IMAGE_EXTRA_INSTALL_append = " ptest-runner myapp-ptest"
Incidentally, I tried this for lttng-tools:
DISTRO_FEATURES_append = " ptest"
CORE_IMAGE_EXTRA_INSTALL_append = " ptest-runner lttng-tools-ptest"
lttng-tools' test script invokes the "prove" command, which does not get
installed:
root at qemuarm:/usr/lib/lttng-tools/ptest# ./run-ptest
[...]
./run.sh unit_tests
./run.sh: line 22: prove: command not found
Makefile:664: recipe for target 'installcheck-am' failed
The "prove" command appears to be provided by perl-misc, so I added that
and retried:
./run.sh unit_tests
Can't locate App/Prove.pm in @INC (you may need to install the
App::Prove module)
Adding perl-modules apparently pulled in the necessary module and got
the tests running.
lttng-tools_2.5.3.bb currently has:
RDEPENDS_${PN}-ptest += "make perl bash"
Should it specify perl-misc and perl-modules instead of just perl?
More information about the Openembedded-core
mailing list