Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Create error recipe and error image, for testing
@ 2015-09-21 23:45 brian avery
  2015-09-21 23:45 ` [PATCH 1/1] meta-selftest: add error recipe and error-image brian avery
  0 siblings, 1 reply; 2+ messages in thread
From: brian avery @ 2015-09-21 23:45 UTC (permalink / raw)
  To: openembedded-core

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

-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-21 23:45 [PATCH 0/1] Create error recipe and error image, for testing brian avery
@ 2015-09-21 23:45 ` brian avery
  0 siblings, 0 replies; 2+ messages in thread
From: brian avery @ 2015-09-21 23:45 UTC (permalink / raw)
  To: openembedded-core

    * 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@gmail.com>
---
 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

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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-21 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 23:45 [PATCH 0/1] Create error recipe and error image, for testing brian avery
2015-09-21 23:45 ` [PATCH 1/1] meta-selftest: add error recipe and error-image brian avery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox