All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Feature to use symbolic links to binaries for ptest
@ 2019-04-07 17:15 Mariano Lopez
  2019-04-07 17:15 ` [PATCH v2 1/4] update-alternatives.bbclass: Add function to get metadata Mariano Lopez
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Mariano Lopez @ 2019-04-07 17:15 UTC (permalink / raw)
  To: openembedded-core

Some binaries are renamed by update-alternatives class at build time
and some ptest run against a binary belonging to another package. Take
for example busybox or util-linux.

This series adds a directory within the ptest with symlinks to the
binaries produced by the package, so just adding this directory to the
PATH will test the correct binaries.

v2 changes:

Add busybox recipe to use this method of symlinks generation.

Refactor the way the binary ptest directory is generated. Now the
directory will contain only symlinks to binaries that were renamed by
update-alternatives and not symlinks to all the package's binaries. This
have some advantages:
- Less lines and the code is cleaner.
- There is no need to have symlinks for every binary.
- Reuse existing update-alternatives functionality, don't need to add
  new features to the class.

To use this feature just add PTEST_BINDIR = "1" to the recipe.

The following changes since commit ffa5a1bda6741f5dc9f1b8db1bb37b0c6f103c99:

  asciidoc: specify XML catalogue to use (2019-04-03 14:56:27 +0100)

are available in the Git repository at:

  git://github.com/justanotherboy/poky bug13238
  https://github.com/justanotherboy/poky/tree/bug13238

Mariano Lopez (4):
  update-alternatives.bbclass: Add function to get metadata
  ptest.bbclass: Add feature to populate a binary directory
  util-linux: Use PTEST binary directory
  busybox: Use PTEST binary directory

 meta/classes/ptest.bbclass                    | 31 ++++++++
 meta/classes/update-alternatives.bbclass      | 74 ++++++++++++-------
 meta/recipes-core/busybox/busybox.inc         | 16 +---
 meta/recipes-core/util-linux/util-linux.inc   |  5 +-
 .../util-linux/util-linux/run-ptest           |  4 +
 5 files changed, 87 insertions(+), 43 deletions(-)

-- 
2.19.2



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

end of thread, other threads:[~2019-04-08  6:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-07 17:15 [PATCH v2 0/4] Feature to use symbolic links to binaries for ptest Mariano Lopez
2019-04-07 17:15 ` [PATCH v2 1/4] update-alternatives.bbclass: Add function to get metadata Mariano Lopez
2019-04-07 21:32   ` Richard Purdie
2019-04-08  2:23     ` Mariano Lopez
2019-04-08  6:57       ` richard.purdie
2019-04-07 17:15 ` [PATCH v2 2/4] ptest.bbclass: Add feature to populate a binary directory Mariano Lopez
2019-04-07 17:15 ` [PATCH v2 3/4] util-linux: Use PTEST " Mariano Lopez
2019-04-07 17:16 ` [PATCH v2 4/4] busybox: " Mariano Lopez

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.