All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] yocto-check-layer: add support to check for dependencies
@ 2021-07-22 12:46 Nicolas Dechesne
  2021-07-22 12:46 ` [PATCH 1/4] yocto-check-layer: improve missed dependencies Nicolas Dechesne
                   ` (5 more replies)
  0 siblings, 6 replies; 20+ messages in thread
From: Nicolas Dechesne @ 2021-07-22 12:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Nicolas Dechesne

It has been recentely mentioned to me by the YP TSC that a layer must
not only pass the yocto-check-layer script, but also all its
dependencies. These patches add support for testing dependencies
automatically.

Patch #1 and #3 are not much related, but improvements I made along
the lines. 

Patch #2 split the internal function into 2 parts, so that we can get
the list of dependencies from the main script. 

Patch #4 is where the processing of the dependencies is done. I chose
to enable checking the dependencies by default, and use
'--no-auto-dependency' to disable it, we could decide the other way
around. For any dependency of the 'layers under test' we will simply
add them to the list of layers to test unless they are already there.

Here is a sample output with these changes:

$ yocto-check-layer /work/oe/sources/meta-aws \ 
                    --dependency /work/oe/sources/meta-openembedded/ 

INFO: Summary of results:
INFO:
INFO: meta-aws ... PASS
INFO: meta-python ... PASS
INFO: meta-oe ... PASS
INFO: meta-networking ... PASS

Nicolas Dechesne (4):
  yocto-check-layer: improve missed dependencies
  checklayer: new function get_layer_dependencies()
  checklayer: rename _find_layer_depends
  yocto-check-layer: ensure that all layer dependencies are tested too

 scripts/lib/checklayer/__init__.py | 11 ++++++++---
 scripts/yocto-check-layer          | 23 +++++++++++++++++++----
 2 files changed, 27 insertions(+), 7 deletions(-)

-- 
2.29.2


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

end of thread, other threads:[~2021-08-04 15:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 12:46 [PATCH 0/4] yocto-check-layer: add support to check for dependencies Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 1/4] yocto-check-layer: improve missed dependencies Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 2/4] checklayer: new function get_layer_dependencies() Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 3/4] checklayer: rename _find_layer_depends Nicolas Dechesne
2021-07-22 12:46 ` [PATCH 4/4] yocto-check-layer: ensure that all layer dependencies are tested too Nicolas Dechesne
2021-07-22 13:16   ` [OE-core] " Bruce Ashfield
2021-07-22 13:22     ` Armin Kuster
2021-07-22 20:46     ` Richard Purdie
2021-07-23  3:29       ` Bruce Ashfield
2021-07-22 12:51 ` [OE-core] [PATCH 0/4] yocto-check-layer: add support to check for dependencies Richard Purdie
2021-07-22 13:00   ` Nicolas Dechesne
2021-07-30  8:02 ` Richard Purdie
2021-07-30  9:08   ` Nicolas Dechesne
2021-07-30  9:27     ` Richard Purdie
2021-08-02 10:35       ` Nicolas Dechesne
2021-08-02 14:57         ` Steve Sakoman
2021-08-02 15:04           ` Richard Purdie
2021-08-02 15:07             ` Steve Sakoman
2021-08-04  2:14               ` Denys Dmytriyenko
2021-08-04 15:10                 ` Steve Sakoman

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.