Skip to content

RFC: Package testing

Björn Stenberg yocto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add -ptest package groupmeta/classes/distutils-common-base.bbclass meta/classes/image.bbclass meta/classes/package.bbclass +2 more+27 -84 replies
2/3New recipe: ptest-runnermeta/recipes-support/ptest-runner/files/ptest-runner meta/recipes-support/ptest-runner/ptest-runner_1.0.bb+33 -00 replies
3/3Enable bash-ptestmeta/recipes-extended/bash/bash-4.2/build-tests.patch meta/recipes-extended/bash/bash-4.2/run-ptest meta/recipes-extended/bash/bash-4.2/test-output.patch +2 more+72 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] RFC: Package testing

Hi.

This is a first set of patches implementing the package testing concept I proposed in
https://lists.yoctoproject.org/pipermail/yocto/2012-June/009443.html

In summary, the proposal creates a new package group called -ptest that contains the test suites included with many source packages, compiled to run on target.

Packaging the test suites sometimes requires patching makefiles to allow test tools to be built on host but ran on target. And it sometimes requires patching and/or translation of the test output to produce a generic output format that can be automatically parsed. I have included an example patch for bash that does just that.

I have also included "ptest-runnner", a simple script to find and run all installed ptests.

Björn Stenberg (3):
Add -ptest package group
New recipe: ptest-runner
Enabled bash-ptest

 meta/classes/distutils-common-base.bbclass         |    5 +++-
 meta/classes/image.bbclass                         |    6 +++-
 meta/classes/package.bbclass                       |    8 ++++-
 meta/classes/task.bbclass                          |    2 +-
 meta/conf/bitbake.conf                             |   14 ++++++++-
 .../bash/bash-4.2/build-tests.patch                |   29 ++++++++++++++++++++
 meta/recipes-extended/bash/bash-4.2/run-ptest      |    2 +
 .../bash/bash-4.2/test-output.patch                |   19 +++++++++++++
 meta/recipes-extended/bash/bash.inc                |   18 ++++++++++++
 meta/recipes-extended/bash/bash_4.2.bb             |    5 +++-
 .../ptest-runner/files/ptest-runner                |   16 +++++++++++
 .../ptest-runner/ptest-runner_1.0.bb               |   21 ++++++++++++++
 12 files changed, 136 insertions(+), 9 deletions(-)
 create mode 100644 meta/recipes-extended/bash/bash-4.2/build-tests.patch
 create mode 100644 meta/recipes-extended/bash/bash-4.2/run-ptest
 create mode 100644 meta/recipes-extended/bash/bash-4.2/test-output.patch
 create mode 100644 meta/recipes-support/ptest-runner/files/ptest-runner
 create mode 100644 meta/recipes-support/ptest-runner/ptest-runner_1.0.bb
Signature · 1 line
1.7.5.4