From Fedora Project Wiki

No edit summary
(Updated information about KVM-Autotest with Avocado and Avocado-VT)
 
Line 1: Line 1:
[[Category:Virtualization]]
[[Category:Virtualization]]
[http://www.linux-kvm.org/page/KVM-Autotest kvm-autotest] is an effort by KVM developers to create a suite of regression tests for KVM.


Fedora virtualization testers can help improve KVM by running kvm-autotest on their own hardware. The kvm-autotest wiki contains some [http://www.linux-kvm.org/page/KVM-Autotest/Client_Install instructions] on doing this, but to get started quickly try the following:
Fedora virtualization testers can help improve KVM by running Avocado-VT tests on their own machines.  


<pre>
= Avocado and Avocado-VT =
$> yum install qemu-system-x86 qemu-img


$> mkdir -p ~/autotest/iso && cd ~/autotest/iso
These are the current community projects that have come from a long heritage, including virt-test and KVM-Autotest.
$> wget http://download.fedoraproject.org/pub/fedora/linux/releases/8/Fedora/i386/iso/Fedora-8-i386-DVD.iso
$> cd ..
$> git clone git://github.com/ehabkost/autotest.git


$> mkdir -p /tmp/kvm_autotest_root/{iso/linux,images}
Avocado is a generic testing framework, while Avocado-VT adds support for Virtualization testing (a continuation of virt-test).
$> ln -s ~/autotest/iso/Fedora-8-i386-DVD.iso /tmp/kvm_autotest_root/iso/linux/
$> ln -s /usr/bin/qemu-kvm /tmp/kvm_autotest_root/qemu
$> ln -s /usr/bin/qemu-img /tmp/kvm_autotest_root/qemu-img


$> cd kvm-autotest/client/tests/kvm
To get started with Avocado-VT please visit:
$> cp kvm_tests.cfg.sample kvm_tests.cfg


# FIXME: this is lame, just disables kvm_install
http://avocado-vt.readthedocs.io
$> sed -e 's/^\(r = job.run_test\)/#\1/' < control > control.fedora
</pre>


and then as root:
https://github.com/avocado-framework/avocado-vt


<pre>
$> ../../bin/autotest ./control.fedora
</pre>


Any errors encountered should be reported via bugzilla.
To learn more about Avocado please visit:


Note: this requires Fedora rawhide and at least qemu-0.10-5.fc11.
http://avocado-framework.readthedocs.io


== Common Problem:==
https://github.com/avocado-framework/avocado
If kvm_autotest fails with an error similar the one below it may be the fact your machine is slower than the one use to generate the step files:
 
<pre>
20090429-143237 Fedora.8.32.install: ERROR: barrier_2: Barrier failed at step 3 after 85 seconds (timeout)
</pre>
 
you can use the step editor to edit the step file and increase the time-out:
 
<pre>
[kvm_runtest_2]# ./stepeditor.py steps/Fedora-8-i386.steps
</pre>

Latest revision as of 20:14, 27 June 2016


Fedora virtualization testers can help improve KVM by running Avocado-VT tests on their own machines.

Avocado and Avocado-VT

These are the current community projects that have come from a long heritage, including virt-test and KVM-Autotest.

Avocado is a generic testing framework, while Avocado-VT adds support for Virtualization testing (a continuation of virt-test).

To get started with Avocado-VT please visit:

http://avocado-vt.readthedocs.io

https://github.com/avocado-framework/avocado-vt


To learn more about Avocado please visit:

http://avocado-framework.readthedocs.io

https://github.com/avocado-framework/avocado