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. To use this feature just add PTEST_BINDIR = "1" to the recipe. 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. v3 changes: Fix white space mismatch v4 changes: Check for PTEST_ENABLED to add the functionality, this will solve the issue when building nativesdk packages 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 bug13238v4 https://github.com/justanotherboy/poky/tree/bug13238v4 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 | 32 +++++++++ meta/classes/update-alternatives.bbclass | 70 ++++++++++++------- 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, 86 insertions(+), 41 deletions(-) -- 2.19.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core