Skip to content

Enable easier ptest of perl modules

Tim Orling openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7meta/classes: add ptest-perl.bbclassmeta/classes/ptest-perl.bbclass meta/files/ptest-perl/run-ptest+46 -00 replies
2/7libtest-needs-perl: add 0.002005meta/recipes-devtools/perl/libtest-needs-perl_0.002005.bb+29 -02 replies
3/7liberror-perl: inherit ptest-perlmeta/recipes-devtools/perl/liberror-perl_0.17025.bb+6 -10 replies
4/7liburi-perl: inherit ptest-perlmeta/recipes-devtools/perl/liburi-perl_1.73.bb+9 -10 replies
5/7libxml-parser-perl: inherit ptest-perlmeta/recipes-devtools/perl/libxml-parser-perl_2.44.bb+10 -10 replies
6/7libxml-perl: inherit ptest-perlmeta/recipes-devtools/perl/libxml-perl_0.08.bb+1 -10 replies
7/7libxml-simple-perl: inherit ptest-perlmeta/recipes-devtools/perl/libxml-simple-perl_2.24.bb+1 -10 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/7] Enable easier ptest of perl modules

We need run-time testing in order to ensure recipe quality and automating this is easiest with ptest.

* Add a new ptest-perl.bbclass which:
- copies tests that almost all perl modules will have in t/ to PTEST_PATH
- uses a common run-ptest script (from meta-perl recipes)
- runs install_ptest_perl task after install_ptest
= checks that run-ptest is not already present

For many perl recipes, using this class will be as simple as:
"inherit ptest-perl"

To run the tests, follow the ptest instructions in the dev-manual [1] and then run "ptest-runner libfoo-perl" on target.

Tested on qemux86 with all oe-core lib*-perl recipes with no failures.

[1] http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#testing-packages-with-ptest

The following changes since commit 8e4ece7bf0b09275a34ce8e7cc3e1e54a366c361:

glibc: Enable static PIE support when security_flags are enabled (2018-03-01 22:18:00 +0000)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib timo/ptest-perl
http://cgit.openembedded.org//log/?h=timo/ptest-perl

Tim Orling (7):
meta/classes: add ptest-perl.bbclass
libtest-needs-perl: add 0.002005
liberror-perl: inherit ptest-perl
liburi-perl: inherit ptest-perl
libxml-parser-perl: inherit ptest-perl
libxml-perl: inherit ptest-perl
libxml-simple-perl: inherit ptest-perl

 meta/classes/ptest-perl.bbclass                    | 30 ++++++++++++++++++++++
 meta/files/ptest-perl/run-ptest                    | 16 ++++++++++++
 .../recipes-devtools/perl/liberror-perl_0.17025.bb |  7 ++++-
 .../perl/libtest-needs-perl_0.002005.bb            | 29 +++++++++++++++++++++
 meta/recipes-devtools/perl/liburi-perl_1.73.bb     | 10 +++++++-
 .../perl/libxml-parser-perl_2.44.bb                | 11 +++++++-
 meta/recipes-devtools/perl/libxml-perl_0.08.bb     |  2 +-
 .../perl/libxml-simple-perl_2.24.bb                |  2 +-
 8 files changed, 102 insertions(+), 5 deletions(-)
 create mode 100644 meta/classes/ptest-perl.bbclass
 create mode 100644 meta/files/ptest-perl/run-ptest
 create mode 100644 meta/recipes-devtools/perl/libtest-needs-perl_0.002005.bb
Signature · 1 line
2.14.3