meta-selftest: add error recipe and error-image

* The error recipe throws an error during compile

    * The error-image includes the error recipe

    * Initial target is toaster selenium testing

(From OE-Core rev: 1810d4ab3374d833cb4b68388b456dc7ddb3d685)

Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
brian avery 2015-09-21 16:45:55 -07:00 committed by Richard Purdie
parent 261e68c4f3
commit aff7e72611
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
SUMMARY = "Error Test case that fails on do_compile"
DESCRIPTION = "This generates a compile time error to be used to for testing."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
INHIBIT_DEFAULT_DEPS = "1"
EXCLUDE_FROM_WORLD = "1"
do_compile() {
bbfatal "Failing as expected.";
}

View File

@ -0,0 +1,8 @@
SUMMARY = "An image that includes the error recipe and will therefore fail"
DESCRIPTION = "This generates an error. Not currently used by oe-selftest"
IMAGE_INSTALL = "error"
IMAGE_LINGUAS = " "
inherit core-image