Create error recipe and error image, for testing
cover Create error recipe and error image, for testing
This provides an error recipe and error image in meta-selftest. It is not used by oeselftest at the moment. It's initial target is for toaster selenium testing.
The following changes since commit 7b86c771c80d0759c2ca0e57c46c4c966f89c49e:
bitbake: bitbake: bb.fetch2.git: Import errno module (2015-09-19 22:38:44 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/test/error-recipe
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=cow
brian avery (1):
meta-selftest: add error recipe and error-image
meta-selftest/recipes-test/error/error.bb | 10 ++++++++++ meta-selftest/recipes-test/images/error-image.bb | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta-selftest/recipes-test/error/error.bb create mode 100644 meta-selftest/recipes-test/images/error-image.bb
Signature · 1 line
1.9.1
PATCH 1/1 meta-selftest: add error recipe and error-image
* The error recipe throws an error during compile
* The error-image includes the error recipe
* Not currently used by oe-selftest
* Initial target is toaster selenium testing
--- meta-selftest/recipes-test/error/error.bb | 10 ++++++++++ meta-selftest/recipes-test/images/error-image.bb | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta-selftest/recipes-test/error/error.bb create mode 100644 meta-selftest/recipes-test/images/error-image.bb
meta-selftest/recipes-test/error/error.bb new file +10 -0
@@ -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; +}
meta-selftest/recipes-test/images/error-image.bb new file +8 -0
@@ -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
Signature · 1 line
1.9.1
Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
Quoted 9 lines · brian avery
+++ b/meta-selftest/recipes-test/error/error.bb
(quoted diff) +2
-0@@ -0,0 +1,10 @@ +SUMMARY = "Error Test case that fails on do_compile" +DESCRIPTION = "This generates a compile time error to be used to fortesting. Not currently used by oe-selftest"
(quoted diff) +2
-0+LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
meta-selftest/recipes-test/error/error.bb line 10
Quoted 6 lines
meta-selftest/recipes-test/error/error.bb new file +6
-0+ +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?
Ross
Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
Quoted 10 lines · Ross
Quoted 9 lines · brian avery
+++ b/meta-selftest/recipes-test/error/error.bb
(quoted diff) +2
-0@@ -0,0 +1,10 @@ +SUMMARY = "Error Test case that fails on do_compile" +DESCRIPTION = "This generates a compile time error to be used to fortesting. Not currently used by oe-selftest"
(quoted diff) +2
-0+LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +
Quoted 8 lines
meta-selftest/recipes-test/error/error.bb line 10
Quoted 5 lines
meta-selftest/recipes-test/error/error.bb new file +5
-0+INHIBIT_DEFAULT_DEPS = "1" + +do_compile() { + false; +}Would it be sensible to
addEXCLUDE_FROM_WORLDto 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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
Quoted 21 lines · On Monday 21 September 2015 16:06:51 Paul Eggleton wrote:
Quoted 11 lines · Ross
Quoted 10 lines · brian avery
+++ b/meta-selftest/recipes-test/error/error.bb
(quoted diff) +2
-0@@ -0,0 +1,10 @@ +SUMMARY = "Error Test case that fails on do_compile" +DESCRIPTION = "This generates a compile time error to be used to fortesting. Not currently used by oe-selftest"
(quoted diff) +2
-0+LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de2042 0"
+Quoted 8 lines
meta-selftest/recipes-test/error/error.bb line 10
Quoted 5 lines
meta-selftest/recipes-test/error/error.bb new file +5
-0+INHIBIT_DEFAULT_DEPS = "1" + +do_compile() { + false; +}Would it be sensible to
addEXCLUDE_FROM_WORLDto this so it doesn't get built in world builds if meta-selftest is enabled?
Quoted 3 lines
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.
Another thing - meta-selftest is part of openembedded-core - so this should be sent to the [email protected] mailing list.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
k. will do.
Thanks guys :)
-b
Quoted 36 lines · Paul Eggleton
Quoted 21 lines · On Monday 21 September 2015 16:06:51 Paul Eggleton wrote:
Quoted 11 lines · Ross
Quoted 10 lines · brian avery
+++ b/meta-selftest/recipes-test/error/error.bb
(quoted diff) +2
-0@@ -0,0 +1,10 @@ +SUMMARY = "Error Test case that fails on do_compile" +DESCRIPTION = "This generates a compile time error to be used to fortesting. Not currently used by oe-selftest"
(quoted diff) +2
-0+LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de2042 0"
+Quoted 8 lines
meta-selftest/recipes-test/error/error.bb line 10
Quoted 5 lines
meta-selftest/recipes-test/error/error.bb new file +5
-0+INHIBIT_DEFAULT_DEPS = "1" + +do_compile() { + false; +}Would it be sensible to
addEXCLUDE_FROM_WORLDto this so it doesn't get built in world builds if meta-selftest is enabled?Quoted 3 lines
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.
Another thing - meta-selftest is part of openembedded-core - so this should be sent to the [email protected] mailing list.
Cheers,
Paul--
Paul Eggleton
Intel Open Source Technology Centre