[oe-commits] brian avery : meta-selftest: add error recipe and error-image

git at git.openembedded.org git at git.openembedded.org
Thu Sep 24 16:56:10 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 1810d4ab3374d833cb4b68388b456dc7ddb3d685
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1810d4ab3374d833cb4b68388b456dc7ddb3d685

Author: brian avery <avery.brian at gmail.com>
Date:   Mon Sep 21 16:45:55 2015 -0700

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

Signed-off-by: brian avery <avery.brian at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta-selftest/recipes-test/error/error.bb        | 11 +++++++++++
 meta-selftest/recipes-test/images/error-image.bb |  8 ++++++++
 2 files changed, 19 insertions(+)

diff --git a/meta-selftest/recipes-test/error/error.bb b/meta-selftest/recipes-test/error/error.bb
new file mode 100644
index 0000000..a7bdecf
--- /dev/null
+++ b/meta-selftest/recipes-test/error/error.bb
@@ -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.";
+}
diff --git a/meta-selftest/recipes-test/images/error-image.bb b/meta-selftest/recipes-test/images/error-image.bb
new file mode 100644
index 0000000..13d9cc0
--- /dev/null
+++ b/meta-selftest/recipes-test/images/error-image.bb
@@ -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



More information about the Openembedded-commits mailing list