Skip to contentSkip to conversation

Create error recipe and error image, for testing

PATCH New brian avery 1 participant 2 messages Sep 21, 2015

lore
Share & tools
lore
#0 lore raw

cover Create error recipe and error image, for testing

This provides an error recipe and an error image in meta-selftest. 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=bavery/test/error-recipe

brian avery (1):
meta-selftest: add error recipe and error-image

 meta-selftest/recipes-test/error/error.bb        | 11 +++++++++++
 meta-selftest/recipes-test/images/error-image.bb |  8 ++++++++
 2 files changed, 19 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
#1 lore raw

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

* Initial target is toaster selenium testing

---
 meta-selftest/recipes-test/error/error.bb        | 11 +++++++++++
 meta-selftest/recipes-test/images/error-image.bb |  8 ++++++++
 2 files changed, 19 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 +11 -0
new file mode 100644
index 0000000..a7bdecf
@@ -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.";
+}
meta-selftest/recipes-test/images/error-image.bb new file +8 -0
new file mode 100644
index 0000000..13d9cc0
@@ -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