Bug 10249 - runqemu: add test cases
Summary: runqemu: add test cases
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.3 M4
Assignee: Robert Yang
QA Contact: oscar lopez arandas
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-09 01:15 UTC by Robert Yang
Modified: 2017-11-28 21:57 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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

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