All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Create error recipe and error image, for testing
@ 2015-09-20  0:53 brian avery
  2015-09-20  0:53 ` [PATCH 1/1] meta-selftest: add error recipe and error-image brian avery
  0 siblings, 1 reply; 7+ messages in thread
From: brian avery @ 2015-09-20  0:53 UTC (permalink / raw)
  To: poky

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

-- 
1.9.1



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

* [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-20  0:53 [PATCH 0/1] Create error recipe and error image, for testing brian avery
@ 2015-09-20  0:53 ` brian avery
  2015-09-21 10:37   ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: brian avery @ 2015-09-20  0:53 UTC (permalink / raw)
  To: poky

    * 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

Signed-off-by: brian avery <avery.brian@gmail.com>
---
 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

diff --git a/meta-selftest/recipes-test/error/error.bb b/meta-selftest/recipes-test/error/error.bb
new file mode 100644
index 0000000..af718dc
--- /dev/null
+++ b/meta-selftest/recipes-test/error/error.bb
@@ -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;
+}
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] 7+ messages in thread

* Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-20  0:53 ` [PATCH 1/1] meta-selftest: add error recipe and error-image brian avery
@ 2015-09-21 10:37   ` Burton, Ross
  2015-09-21 15:06     ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2015-09-21 10:37 UTC (permalink / raw)
  To: brian avery; +Cc: Poky Project

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

On 20 September 2015 at 01:53, brian avery <avery.brian@gmail.com> wrote:

> +++ b/meta-selftest/recipes-test/error/error.bb
> @@ -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;
> +}
>

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

[-- Attachment #2: Type: text/html, Size: 1209 bytes --]

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

* Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-21 10:37   ` Burton, Ross
@ 2015-09-21 15:06     ` Paul Eggleton
  2015-09-21 15:13       ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-09-21 15:06 UTC (permalink / raw)
  To: brian avery; +Cc: poky

On Monday 21 September 2015 11:37:02 Burton, Ross wrote:
> On 20 September 2015 at 01:53, brian avery <avery.brian@gmail.com> wrote:
> > +++ b/meta-selftest/recipes-test/error/error.bb
> > @@ -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;
> > +}
> 
> Would it be sensible to addEXCLUDE_FROM_WORLD to 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

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-21 15:06     ` Paul Eggleton
@ 2015-09-21 15:13       ` Paul Eggleton
  2015-09-21 22:01         ` Brian Avery
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2015-09-21 15:13 UTC (permalink / raw)
  To: brian avery; +Cc: poky

On Monday 21 September 2015 16:06:51 Paul Eggleton wrote:
> On Monday 21 September 2015 11:37:02 Burton, Ross wrote:
> > On 20 September 2015 at 01:53, brian avery <avery.brian@gmail.com> wrote:
> > > +++ b/meta-selftest/recipes-test/error/error.bb
> > > @@ -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=3da9cfbcb788c80a0384361b4de2042
> > > 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?
> 
> 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 openembedded-core@lists.openembedded.org mailing list.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [PATCH 1/1] meta-selftest: add error recipe and error-image
  2015-09-21 15:13       ` Paul Eggleton
@ 2015-09-21 22:01         ` Brian Avery
  0 siblings, 0 replies; 7+ messages in thread
From: Brian Avery @ 2015-09-21 22:01 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: poky

k. will do.
Thanks guys :)
-b

On Mon, Sep 21, 2015 at 8:13 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Monday 21 September 2015 16:06:51 Paul Eggleton wrote:
>> On Monday 21 September 2015 11:37:02 Burton, Ross wrote:
>> > On 20 September 2015 at 01:53, brian avery <avery.brian@gmail.com> wrote:
>> > > +++ b/meta-selftest/recipes-test/error/error.bb
>> > > @@ -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=3da9cfbcb788c80a0384361b4de2042
>> > > 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?
>>
>> 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 openembedded-core@lists.openembedded.org mailing list.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre


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

* [PATCH 0/1] Create error recipe and error image, for testing
@ 2015-09-21 23:45 brian avery
  0 siblings, 0 replies; 7+ 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] 7+ messages in thread

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-20  0:53 [PATCH 0/1] Create error recipe and error image, for testing brian avery
2015-09-20  0:53 ` [PATCH 1/1] meta-selftest: add error recipe and error-image brian avery
2015-09-21 10:37   ` Burton, Ross
2015-09-21 15:06     ` Paul Eggleton
2015-09-21 15:13       ` Paul Eggleton
2015-09-21 22:01         ` Brian Avery
  -- strict thread matches above, loose matches on Subject: below --
2015-09-21 23:45 [PATCH 0/1] Create error recipe and error image, for testing brian avery

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.