poky/meta/lib/oeqa/selftest/cases
Hongxu Jia 2768d6f676 wic-image-minimal, oeqa/selftest/wic: run 'wic ls/cp/rm' in bitbake task
Due to commit [2255f28b57 wic: add WIC_SECTOR_SIZE variable][1] applied,
call `wic ls|cp|rm|write' in bitbake task will hung, but we have no scenario
case to cover it

After commit [scripts/wic: fix calling wic ls|cp|rm|write hung in bitbake task] applied,
this commit run `wic cp|ls|rm' in case wic.Wic2.test_wic_image_type and wic.Wic2.test_qemu,
at post function of with do_image_wic in image wic-image-minimal, and
check if file is there

$ echo 'SANITY_TESTED_DISTROS = ""' >> conf/local.conf
$ oe-selftest -r wic.Wic2.test_wic_image_type wic.Wic2.test_qemu
...
2025-06-23 15:46:22,157 - oe-selftest - INFO - Adding: "include selftest.inc" in /buildarea5/hjia/poky/build-st/conf/local.conf
2025-06-23 15:46:22,157 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2025-06-23 15:46:22,157 - oe-selftest - INFO - test_qemu (wic.Wic2)
The variable 'TEST_RUNQEMUPARAMS' is not defined
2025-06-23 15:56:46,319 - oe-selftest - INFO -  ... ok
2025-06-23 15:56:46,324 - oe-selftest - INFO - test_wic_image_type (wic.Wic2)
2025-06-23 15:57:17,780 - oe-selftest - INFO -  ... ok
2025-06-23 15:57:17,781 - oe-selftest - INFO - ----------------------------------------------------------------------
2025-06-23 15:57:17,781 - oe-selftest - INFO - Ran 2 tests in 655.792s
2025-06-23 15:57:17,781 - oe-selftest - INFO - OK
2025-06-23 15:57:25,743 - oe-selftest - INFO - RESULTS:
2025-06-23 15:57:25,743 - oe-selftest - INFO - RESULTS - wic.Wic2.test_qemu: PASSED (624.16s)
2025-06-23 15:57:25,744 - oe-selftest - INFO - RESULTS - wic.Wic2.test_wic_image_type: PASSED (31.46s)
2025-06-23 15:57:25,746 - oe-selftest - INFO - SUMMARY:
2025-06-23 15:57:25,746 - oe-selftest - INFO - oe-selftest () - Ran 2 tests in 655.793s
2025-06-23 15:57:25,746 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=2, skipped=0, failures=0, errors=0)

(From OE-Core rev: 18d774eafb7fba720882fcdb945d145b82fa1dd4)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-26 11:02:34 +01:00
..
diffoscope oeqa: reproducible: Fix test not producing diffs 2020-09-02 16:00:46 +01:00
oelib oeqa/selftest/oelib/buildhistory: git default branch 2024-02-13 13:51:41 +00:00
_sstatetests_noauto.py oeqa/selftest/sstate: Merge sstate test class with tests themselves 2023-03-13 17:35:22 +00:00
archiver.py selftest-ed: Upgrade to version 1.21/1.20.2 2025-05-01 14:22:53 +01:00
barebox.py oeqa/selftest/cases: add basic barebox tests 2024-10-11 15:57:45 +01:00
baremetal.py oe-selftest: Add baremetal toolchain test 2023-01-12 23:08:59 +00:00
bbclasses.py oeqa/selftest/bbclasses: Add tests for systemd and update-rc.d interaction 2024-09-01 11:05:20 +01:00
bblayers.py bitbake-config-build: add a plugin for config fragments 2024-12-13 11:11:18 +00:00
bblock.py oeqa/selftest/bblock: add self test for bblock tool 2023-10-09 15:58:47 +01:00
bblogging.py oeqa/selftest/bblogging: uncomment python stdout checks 2023-04-05 17:26:53 +01:00
bbtests.py selftest-ed: Upgrade to version 1.21/1.20.2 2025-05-01 14:22:53 +01:00
binutils.py binutils-cross-testsuite: Rename to binutils-testsuite 2024-06-27 13:03:34 +01:00
buildhistory.py selftest/buildhistory: Move test cases to common location 2025-06-23 21:42:54 +01:00
buildoptions.py selftest/buildhistory: Move test cases to common location 2025-06-23 21:42:54 +01:00
c_cpp.py oe-selftest: add tests for C and C++ build tools 2023-12-13 11:58:15 +00:00
containerimage.py selftest/container: fix IMAGE_FEATURES assignment 2024-11-06 12:18:05 +00:00
cve_check.py cve-check: Rework patch parsing 2025-01-08 13:25:11 +00:00
debuginfod.py oeqa/selftest/debuginfod: use localpkgfeed to speed server startup 2024-05-15 16:39:19 +01:00
devtool.py recipetool/devtool: calculate source paths relative to UNPACKDIR 2025-06-20 12:07:26 +01:00
distrodata.py libglvnd: migrate from meta-oe 2025-06-24 13:51:31 +01:00
efibootpartition.py oeqa selftest efibootpartition.py: remove systemd-boot from grub-efi test 2024-10-25 15:12:22 +01:00
esdk.py oeqa/selftest/esdk: remove postconfig argument 2025-06-19 21:54:44 +01:00
externalsrc.py oeqa/selftest/externalsrc: add test for srctree_hash_files 2022-12-08 10:48:36 +00:00
fetch.py oeqa/selftest/fetch: Fix whitespace 2025-04-20 10:11:16 +01:00
fitimage.py oe-selftest: fitimage: Add test for signing U-Boot FIT image without SPL 2025-06-19 21:54:43 +01:00
gcc.py oeqa/selftest/gcc: Fix kex exchange identification error 2024-10-01 12:40:48 +01:00
gdbserver.py selftest: gdbserver: Adjust regex for change to output 2025-03-17 17:09:22 +00:00
gitarchivetests.py oeqa/utils/gitarchive: fall back to local tags when listing existing tags 2023-08-23 22:33:39 +01:00
glibc.py oeqa/selftest/glibc: Add elapsed time for glibc test report. 2023-08-04 11:44:28 +01:00
gotoolchain.py oeqa/gotoolchain: set GOPROXY 2024-03-03 16:28:21 +00:00
image_typedep.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
imagefeatures.py selftest: use INIT_MANAGER to enable systemd instead of custom settings 2024-08-28 09:14:26 +01:00
incompatible_lic.py qemu/testimage: Ensure GNU tar is in test images 2024-11-21 12:16:28 +00:00
intercept.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
kerneldevelopment.py insane: Improve patch-status layer filtering 2023-06-20 23:24:26 +01:00
layerappend.py recipes: Start WORKDIR -> UNPACKDIR transition 2024-05-21 12:08:04 +01:00
liboe.py oeqa/selftest: add test case for oeqa.utils.subprocesstweak 2025-06-09 17:43:41 +01:00
lic_checksum.py oeqa/selftest/lic_checksum: Cleanup changes to emptytest include 2022-11-09 15:43:52 +00:00
locales.py oeqa/selftest/locale: Ensure tests work with ERROR_QA changes 2024-07-13 23:28:31 +01:00
manifest.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
meta_ide.py oeqa: Build cpio with C17 std 2025-03-24 17:29:16 +00:00
minidebuginfo.py selftests: add test_minidebuginfo_qemu 2024-06-07 23:21:42 +01:00
multiconfig.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
newlib.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
oescripts.py selftest/buildhistory: Move test cases to common location 2025-06-23 21:42:54 +01:00
overlayfs.py rootfs: Ensure run-postinsts is not uninstalled for read-only-rootfs-delayed-postinsts 2024-07-23 11:54:37 +01:00
package.py selftest-hardlink: Add additional test cases 2024-07-22 16:53:06 +01:00
picolibc.py tclibc-picolibc: Adds a new TCLIBC variant to build with picolibc as C library 2024-07-26 12:28:42 +01:00
pkgdata.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
pokybleeding.py oeqa/selftest/pokybleeding: change from mtd-utils-selftest to pseudo 2025-05-12 17:06:07 +01:00
prservice.py oeqa/selftest/prservice: Improve test robustness 2023-12-24 10:39:07 +00:00
pseudo.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
recipetool.py recipetool/devtool: calculate source paths relative to UNPACKDIR 2025-06-20 12:07:26 +01:00
recipeutils.py meta: set S from UNPACKDIR in recipes that use only local files 2025-06-20 12:07:26 +01:00
reproducible.py selftest/reproducible: Limit memory used by diffoscope 2025-05-27 09:01:16 +01:00
resulttooltests.py oeqa/selftest/resulttool: add test for error propagation in test name filtering 2023-03-12 23:39:13 +00:00
retain.py classes: add new retain class for retaining build results 2024-08-03 07:56:10 +01:00
rootfspostcommandstests.py selftest: Add module for testing rootfs postcommands 2022-08-25 11:08:06 +01:00
rpmtests.py selftest: Add regression test for rpm filesnames 2022-08-21 22:51:42 +01:00
runcmd.py lib/oeqa: rename assertRaisesRegexp to assertRaisesRegex 2024-02-08 23:14:51 +00:00
runqemu.py selftest: runqemu: use better error message when asserts fail 2023-04-03 11:39:59 +01:00
runtime_test.py bitbake.conf/pseudo: Switch from exclusion list to inclusion list 2025-05-12 22:01:56 +01:00
rust.py rust: Upgrade 1.85.1->1.86.0 2025-06-12 13:12:06 +01:00
sdk.py oeqa/selftest/sdk: add test to verify the manifests are generated correctly 2025-05-12 22:01:55 +01:00
selftest.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
signing.py oeqa/selftest/cases/signing.py: Re-enable self-test 2025-02-18 11:56:04 +00:00
spdx.py oeqa: spdx: Add tar test for SPDX 2.2 2025-03-24 17:29:16 +00:00
sstatetests.py sstatetests: Switch to new CDN 2025-05-29 17:28:54 +01:00
sysroot.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
tinfoil.py oeqa/selftest/tinfoil: Add tests that parse virtual recipes 2023-11-23 12:46:42 +00:00
toolchain.py oeqa/selftest: add new test for toolchain switching 2025-06-19 21:54:44 +01:00
uboot.py oeqa selftest uboot.py: add qemu KVM test case 2025-06-05 11:02:22 +01:00
uki.py oeqa/selftest: Drop dependency on systemd-native 2025-02-18 22:53:45 +00:00
usergrouptests.py selftest-users: Convoluted selftest for USERADD_DEPENDS 2024-02-24 16:10:22 +00:00
wic.py wic-image-minimal, oeqa/selftest/wic: run 'wic ls/cp/rm' in bitbake task 2025-06-26 11:02:34 +01:00
wrapper.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
yoctotestresultsquerytests.py oeqa/selftest: add test for yocto_testresults_query.py 2023-02-26 11:59:52 +00:00