]> code.ossystems Code Review - openembedded-core.git/commit
elfutils: ptest fixes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 May 2019 15:37:48 +0000 (16:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2019 08:56:14 +0000 (09:56 +0100)
commit7ff76b86299289a4a5741f910399d95232f64f32
treeaa4f994529cc7b63f4919ed1c6f748d669937ce0
parent1aa947a60b0eb31c367b1e9818218ee74d388eea
elfutils: ptest fixes

Changes to improve the way ptest runs:

a) Use the standalone test mode which allows the tests to be run in their
  'installled' locations on target (but not any of the standalone build pieces)
b) We want to use the binaries from their installed locations so the run-subr
   script needs tweaking to run them like that. The rpath conditional isn't
   enough since we want the second entry in the case statement.
c) Add an oecheck make target which we can use to build the test binaries we need
d) Add missing -ptest package dependencies (needs coreutils, ${PN}, ${PN}-binutils, make)
e) Don't add RPATH to the test binaries, we don't need that
f) Add some extra parameters to the make command to ensure tests run correctly

Before:
-----------------------------------------------------
Recipe   | Passed    | Failed   | Skipped  | Time(s)
-----------------------------------------------------
elfutils | 31        | 4        | 168      | 6
-----------------------------------------------------

After:
-----------------------------------------------------
Recipe   | Passed    | Failed   | Skipped  | Time(s)
-----------------------------------------------------
elfutils | 173       | 25       | 5        | 15
-----------------------------------------------------

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils_0.176.bb
meta/recipes-devtools/elfutils/files/ptest.patch [new file with mode: 0644]
meta/recipes-devtools/elfutils/files/run-ptest
meta/recipes-devtools/elfutils/files/serial-tests.patch [deleted file]