[libvirt] how to test libvirt?

Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and libxl_driver in libvirt. 3) make -c tests, which aims to do low level tests, that is to test function modules of libvirt. 4) libvirt-test-API I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test? Anyone knows that? Thanks in advance. Oscar.

On Wed, Feb 24, 2016 at 07:31:56AM +0000, Zhangbo (Oscar) wrote:
Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and libxl_driver in libvirt. 3) make -c tests, which aims to do low level tests, that is to test function modules of libvirt. 4) libvirt-test-API
I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test?
Anyone knows that? Thanks in advance.
What are you trying to test for ? If the goal is to try patches before submitting them on this list, make check and make syntax-check are the only requirement. Now if you built a modified version and want to test this, you can use libvirt-test-API and the libvirt-tck, or run the openstack regression tests with libvirt using your mods (but best is to make sure those mods get upstream first to avoid loosing a lot of time). Daniel -- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and
On Wed, Feb 24, 2016 at 07:31:56AM +0000, Zhangbo (Oscar) wrote: libxl_driver in libvirt.
3) make -c tests, which aims to do low level tests, that is to test function
modules of libvirt.
4) libvirt-test-API
I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test?
Anyone knows that? Thanks in advance.
What are you trying to test for ? If the goal is to try patches before submitting them on this list, make check and make syntax-check are the only requirement.
Now if you built a modified version and want to test this, you can use libvirt-test-API and the libvirt-tck, or run the openstack regression tests with libvirt using your mods (but best is to make sure those mods get upstream first to avoid loosing a lot of time).
Yes, I'd like to do this kind of test! You didn't mention virt-test/avocado-vt, does that mean you in fact don't use these 2 tools? REF: http://avocado-vt.readthedocs.org/en/latest/
Daniel
-- Daniel Veillard | Open Source and Standards, Red Hat veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | virtualization library http://libvirt.org/

On 02/24/2016 03:31 PM, Zhangbo (Oscar) wrote:
Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and libxl_driver in libvirt.
I'm afraid there's no such specific test suite for this.
3) make -c tests, which aims to do low level tests, that is to test function modules of libvirt. 4) libvirt-test-API
I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test?
There's also libvirt-tck for perl binding testing, and cimtest suite for libvirt-cim testing.
Anyone knows that? Thanks in advance.
Oscar.
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Regards, Yanbing Du

Zhangbo (Oscar) wrote:
Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and libxl_driver in libvirt. 3) make -c tests, which aims to do low level tests, that is to test function modules of libvirt. 4) libvirt-test-API
I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test?
The Xen Project's osstest includes tests for libvirt that exercise the libxl driver. We also use libvirt-tck to test the Xen+libvirt stack. Regards, Jim

Hi all: AFAIK, there're several ways to test libvirt: 1) virt-test, which is driven by autotest or avocado-vt, based on qemu-kvm 2) test driver which is parall to other drivers such as qemu_driver and libxl_driver in libvirt. 3) make -c tests, which aims to do low level tests, that is to test function modules of libvirt. 4) libvirt-test-API
I've got 2 questions: 1) besides the 4 test suites, are there any other automatic-test tools? 2) is there any testsuite used to test libxl_driver, similar to virt-test?
The Xen Project's osstest includes tests for libvirt that exercise the libxl driver. We also use libvirt-tck to test the Xen+libvirt stack.
Regards, Jim
Thanks , Jim, I'll look into osstest for more information.
participants (4)
-
Daniel Veillard
-
Jim Fehlig
-
Yanbing Du
-
Zhangbo (Oscar)