Skip to content
Test Provider for Libvirt and related virtualization backends
Python
Branch: master
Clone or download
dzhengfy Merge pull request #2275 from chloerh/setvcpu
setcpu: Remove topology setting to avoid conflict with cpu count
Latest commit 7449198 Aug 16, 2019

README.rst

Libvirt test provider for virt-test

This is the official [1] test provider for the following subtest types:

  • Libvirt
  • LVSB
  • V2V
  • Libguestfs

Really quick start guide

  1. Fork this repo on github
  2. Create a new topic branch for your work
  3. Create a new test provider file in your virt test repo, like:
cp io-github-autotest-libvirt.ini myprovider.ini
[provider]
uri: file:///home/foo/Code/tp-libvirt
[libvirt]
subdir: libvirt/
[libguestfs]
subdir: libguestfs/
[lvsb]
subdir: lvsb/
[v2v]
subdir: v2v/

You can optionally delete temporarily the io-github-autotest-qemu.ini file, just so you don't have test conflicts. Then you can develop your new test code, run it using virt test, and commit your changes.

  1. Make sure you have inspektor installed.
  2. Run:
inspekt checkall --disable-style E501,E265,W601,E402,E722,E741 --no-license-check
  1. Ensure check-list in tp-libvirt_review_comment_summary.rst are met
  2. Fix any problems
  3. Push your changes and submit a pull request
  4. That's it.

[1] You can always create your own test provider, if you have special purposes, or just want to develop your work independently.

You can’t perform that action at this time.