Skip to content

RFC Script and layer for running tests

Stefan Stanacar openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scripts/oe-selftest: script to run builds as unitests against bitbake or various scriptsscripts/lib/selftest/__init__.py scripts/lib/selftest/base.py scripts/lib/selftest/tests/__init__.py +4 more+357 -00 replies
2/4meta-selftest: create a new test layer to be used by oe-selftest script.gitignore meta-selftest/COPYING.MIT meta-selftest/README +6 more+95 -01 reply
3/4scripts/lib/selftest: add a new module for bitbake output testsscripts/lib/selftest/tests/__init__.py scripts/lib/selftest/tests/bboutput.py+87 -00 replies
4/4scripts/lib/selftest: add more simple build testsscripts/lib/selftest/tests/__init__.py scripts/lib/selftest/tests/bboptions.py+40 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] Script and layer for running tests

Hello,

This series adds an oe-selftest script, some modules and a new layer meta-selftest. which are meant to help in writing tests (using python unittest) for various bitbake tools/scripts as well as simple output checks or do
complete builds with different options (with the emphasis that everything checked is done outside of bitbake context, just like a human would do.) For more details, please see YOCTO #4740.

Cheers,
Stefan

The following changes since commit e15893adf9268b2920b24c52d5c2bb777c6f778e:

bitbake: serv.py: Give pr-server up to 5 seconds to commit data (2013-11-18 17:19:11 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib stefans/testme4
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=stefans/testme4

Alexandru Palalau (1):
scripts/lib/selftest: add more simple build tests

Corneliu Stoicescu (2):
meta-selftest: create a new test layer to be used by oe-selftest
script
scripts/lib/selftest: add a new module for bitbake output tests

Stefan Stanacar (1):
scripts/oe-selftest: script to run builds as unitests against bitbake
or various scripts

 .gitignore                                         |   1 +
 meta-selftest/COPYING.MIT                          |  17 +++
 meta-selftest/README                               |   2 +
 meta-selftest/classes/test_events.bbclass          |  16 +++
 meta-selftest/conf/layer.conf                      |  10 ++
 .../recipes-test/aspell/aspell_0.0.0.1.bb          |  28 ++++
 .../recipes-test/man/man/man-1.5h1-make.patch      |  16 +++
 meta-selftest/recipes-test/man/man_1.6g.bbappend   |   2 +
 .../xcursor-transparent-theme_0.1.1.bbappend       |   3 +
 scripts/lib/selftest/__init__.py                   |   0
 scripts/lib/selftest/base.py                       |  54 ++++++++
 scripts/lib/selftest/tests/__init__.py             |   2 +
 scripts/lib/selftest/tests/bboptions.py            |  39 ++++++
 scripts/lib/selftest/tests/bboutput.py             |  86 ++++++++++++
 scripts/lib/selftest/utils/__init__.py             |   0
 scripts/lib/selftest/utils/commands.py             | 146 +++++++++++++++++++++
 scripts/lib/selftest/utils/ftools.py               |  27 ++++
 scripts/oe-selftest                                | 130 ++++++++++++++++++
 18 files changed, 579 insertions(+)
 create mode 100644 meta-selftest/COPYING.MIT
 create mode 100644 meta-selftest/README
 create mode 100644 meta-selftest/classes/test_events.bbclass
 create mode 100644 meta-selftest/conf/layer.conf
 create mode 100644 meta-selftest/recipes-test/aspell/aspell_0.0.0.1.bb
 create mode 100644 meta-selftest/recipes-test/man/man/man-1.5h1-make.patch
 create mode 100644 meta-selftest/recipes-test/man/man_1.6g.bbappend
 create mode 100644 meta-selftest/recipes-test/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bbappend
 create mode 100644 scripts/lib/selftest/__init__.py
 create mode 100644 scripts/lib/selftest/base.py
 create mode 100644 scripts/lib/selftest/tests/__init__.py
 create mode 100644 scripts/lib/selftest/tests/bboptions.py
 create mode 100644 scripts/lib/selftest/tests/bboutput.py
 create mode 100644 scripts/lib/selftest/utils/__init__.py
 create mode 100644 scripts/lib/selftest/utils/commands.py
 create mode 100644 scripts/lib/selftest/utils/ftools.py
 create mode 100755 scripts/oe-selftest
Signature · 1 line
1.8.3.1