Bug 10249

Summary: runqemu: add test cases
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: Scripts and ToolsAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact: oscar lopez arandas <oscarx.lopez.arandas>
Severity: enhancement    
Priority: Medium+ CC: jose.perez.carranza, joshuagloe, oscarx.lopez.arandas, richard.purdie, ross.burton
Version: 2.3   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2016-09-09 01:15:40 UTC
We use runqemu in a lot of ways, we need test cases to make sure it won't cause regresssions. We can add some test cases to oe-selftest or testimage or runqemu itself like "runqemu test". We can choose two or more machines to do the testing, we need test at least the following cases:

* runqemu's options: nfs, slirp, nfs, kvm, kvm-vhost and so on.
* supported fstypes: ext2/3/4, iso, vmdk, cpio.gz and so on.
* runqemu <machine>
* runqemu <machine> <image name>
* runqemu <DEPLOY_DIR_IMAGE>
* runqemu /path/to/foo.qemuboot.conf
* runqemu /path/to/image.type
...

Add others like:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10238
1. https://bugzilla.yoctoproject.org/show_bug.cgi?id=10211
2. https://bugzilla.yoctoproject.org/show_bug.cgi?id=10240
Comment 2 Joshua Lock 2016-10-21 08:56:18 UTC
and https://bugzilla.yoctoproject.org/show_bug.cgi?id=10471
Comment 4 oscar lopez arandas 2017-11-28 21:57:21 UTC
already added test cases for runqemu 
machine: qemux86-64
branch master 
nightly-oe-selftest-fedora26
commit: 72867393fe2004ab9f0ee23eb09a975c82938b9e

=========================================================================
2017-11-22 19:09:44,025 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_deploy - Testcase 2007: PASSED
2017-11-22 19:09:44,025 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_machine - Testcase 2001: PASSED
2017-11-22 19:09:44,025 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_machine_ext4 - Testcase 2002: PASSED
2017-11-22 19:09:44,025 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_machine_iso - Testcase 2003: PASSED
2017-11-22 19:09:44,026 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_machine_slirp - Testcase 2009: PASSED
2017-11-22 19:09:44,026 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_qemu_boot - Testcase 2010: PASSED
2017-11-22 19:09:44,026 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_recipe_image - Testcase 2004: PASSED
2017-11-22 19:09:44,026 - oe-selftest - INFO - RESULTS - runqemu.RunqemuTests.test_boot_recipe_image_vmdk - Testcase 2005: PASSED

=====================================================================