[edit]
cimtest setup instructions
[edit]
System requirements
- Python-2.5
- PyXML (on Redhat systems) or pyxml (on SUSE systems)
- PyWBEM - recent CVS sources
- Mercurial (for checking out the latest cimtest tree):
- A working libvirt-cim environment. See here for instructions
$ hg clone http://libvirt.org/hg/cimtest/
[edit]
Setup environment
- Prepare the hypervisor kernel, initrd ramdisk and disk image files
# cd path_to_cimtest/suites/libvirt-cim/images/ # make
- Generate RSA ssh keys for the root account if you do not have keys already.
# ssh-keygen -t rsa
- Add the public key (id_rsa.pub) to the authorized_keys file.
# cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
- Run the cimtest automation:
# cd path_to_cimtest # ./runtests libvirt-cim -i localhost
- If using Pegasus as the CIMOM, you'll need to supply the Pegasus authentication info for your system:
# CIM_NS=root/virt CIM_USER=pegasus CIM_PASS=password ./runtests libvirt-cim -i localhost
- There are a few options available:
-c removes the log files prior to a run -d prints the error messages to stdout in additional to printing to the log files (default behavior) -g <suite_dir> runs a particular directory within the suite directory -t <tc_name> runs a specific test for a given directory in the test suite -v <virtualization type> runs the tests specifically for the type specified. Xen, XenFV, KVM, and LXC are currently supported. Xen is the current default.
# CIM_NS=root/virt CIM_USER=pegasus CIM_PASS=password ./runtests libvirt-cim -i localhost -c -d -v KVM -g ComputerSystem -t 06_paused_active_suspend.py
