[yocto] testimage feature ( automated tests for qemu images ) not working for qemuarm virt machine

Anand Ingale anand.build1985 at gmail.com
Thu May 31 23:53:58 PDT 2018


 Hi All,
 I have booted qemuarm  image for virt machine ( not for  versatilepb which
is available by default in poky) .

in my kernel recipe , source i have taken from below repository
{{{

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
"

}}}

i have created a defconfig file using multi_v7_defconfig
     # cloned git://
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
     # make multi_v7_defconfig
     # copied .config generated as defconfig to recipes-kernel directory


 i have used  core-image-minimal  to build rootfs

 i am able to boot qemu image when i run , # runqemu qemuarm nographic
 {{{
Poky (Yocto Project Reference Distro) 2.4.2 qemuarm /dev/ttyAMA0

qemuarm login: root
root at qemuarm:~#
root at qemuarm:~# uname -a
Linux qemuarm 4.17.0-rc5-myker #1 SMP Sat May 19 17:25:41 UTC 2018 armv7l
GNU/Linux
root at qemuarm:~#
}}}

followed this link to run testimage
https://wiki.yoctoproject.org/wiki/Image_tests

 when i run below commnad , it  fails to run tests
  # bitbake core-image-minimal -c testimage
{{{
 WARNING: Qemu ended unexpectedly, dump data from host is in
/tmp/oe-saved-tests/201805310707_qemu
| DEBUG: Stopping logging thread
| DEBUG: Stop event received
| DEBUG: Tearing down logging thread
| DEBUG: Sending SIGTERM to runqemu
| ERROR: testimage received SIGTERM, shutting down...
| ERROR: core-image-minimal - FAILED - tests were interrupted during
execution
| DEBUG: Python function do_testimage finished
| ERROR: Function failed: do_testimage
ERROR: Task
(/home/AIngale/Poky-1/poky-virt/meta/recipes-core/images/core-image-minimal.bb:do_testimage)
failed with exit code '1'

}}}

  do i need enable any kernel config for testimage feature to work ??.
please suggest  what changes i need to do . I have tried this on poky's
rocko branch .

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180601/50340558/attachment.html>


More information about the yocto mailing list