[poky] [PATCH 1/1] meta-selftest: add error recipe and error-image

Paul Eggleton paul.eggleton at linux.intel.com
Mon Sep 21 08:06:51 PDT 2015


On Monday 21 September 2015 11:37:02 Burton, Ross wrote:
> On 20 September 2015 at 01:53, brian avery <avery.brian at gmail.com> wrote:
> > +++ b/meta-selftest/recipes-test/error/error.bb
> > @@ -0,0 +1,10 @@
> > +SUMMARY = "Error Test case that fails on do_compile"
> > +DESCRIPTION = "This generates a compile time error to be used to for
> > testing. Not currently used by oe-selftest"
> > +LICENSE = "MIT"
> > +LIC_FILES_CHKSUM =
> > "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> > +
> > +INHIBIT_DEFAULT_DEPS = "1"
> > +
> > +do_compile() {
> > +        false;
> > +}
> 
> Would it be sensible to addEXCLUDE_FROM_WORLD to this so it doesn't get
> built in world builds if meta-selftest is enabled?

Good idea; one more - use bbfatal with a message like "failing as expected" or 
similar. I think "Not currently used by oe-selftest" can be dropped as well, 
that's likely to change in the near future.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


More information about the poky mailing list