Skip to content

wic: selftest: enhancements for non-x86 MACHINE support & fixed-size tests

Maciej Borzecki openembedded-core 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyIn review
  2. v35 patches 1 replySuperseded
  3. v15 patches 0 repliesSuperseded

Changes from previous version from the cover letter

- renamed onlyForArch() to only_for_arch(), changed input arguments to take image name and list of compatible architectures
- pylint fixes

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5selftest: wictestdisk: machine agnostic WKS for use with selftestmeta-selftest/wic/wictestdisk.wks+7 -00 replies
2/5selftest: wic: replace directdisk with wictestdisk where possiblemeta/lib/oeqa/selftest/wic.py+32 -320 replies
3/5wic: selftest: avoid COMPATIBLE_HOST issuesmeta/lib/oeqa/selftest/wic.py+40 -10 replies
4/5wic: selftest: do not assume bzImage kernel imagemeta/lib/oeqa/selftest/wic.py+2 -10 replies
5/5wic: selftest: add tests for --fixed-size partition flagsmeta/lib/oeqa/selftest/wic.py+63 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/5] wic: selftest: enhancements for non-x86 MACHINE support & fixed-size tests

v4 of a series with enhancements and new test cases for wic selftest. The enhancements allow for running wic selftest for non-x86 MACHINE, such as qemuarm (the whole series was verified on qemux86-64 and qemuarm).

The first patch adds a machine independent kickstart file - wictestdisk. Most of test cases build a disk image using one of the kickstart files shipped in Poky (mostly directdisk. These are usually x86 oriented due to use of syslinux and cannot be used when running with non-x86 compatible MACHINE. On the other hand, the image built during tests does not need to be bootable (with exception of TCs that verify if the image is indeed bootable).

Patch 2 introduces wictestdisk in test cases where its use is possible.

Patch 3 adds only_for_arch() convenience decorator and applies it to test cases where x86 specific image must be used. In the end, only 13 TCs are skipped on qemuarm.

Changes from previous version:
- renamed onlyForArch() to only_for_arch(), changed input arguments to take image name and list of compatible architectures
- pylint fixes

Patch 4 removes some assumptions about kernel image type.

Patch 5 adds tests for --fixed-size partition flags.

Changes from previous version:
- pylint fixes

Maciej Borzecki (5):
selftest: wictestdisk: machine agnostic WKS for use with selftest
selftest: wic: replace directdisk with wictestdisk where possible
wic: selftest: avoid COMPATIBLE_HOST issues
wic: selftest: do not assume bzImage kernel image
wic: selftest: add tests for --fixed-size partition flags

 meta-selftest/wic/wictestdisk.wks |   7 ++
 meta/lib/oeqa/selftest/wic.py     | 171 ++++++++++++++++++++++++++++++--------
 2 files changed, 144 insertions(+), 34 deletions(-)
 create mode 100644 meta-selftest/wic/wictestdisk.wks
Signature · 1 line
2.9.3