[Avocado-devel] How to enable and run SR-IOV testcases with Avocado ?

wuzhiguo at loongson.cn wuzhiguo at loongson.cn
Thu Aug 11 08:49:54 UTC 2022


Dear Lukáš,

Thanks very much for your help! 
It is great helpful!  ^_^

Using a custom tests.cfg and vt-filter, both of which could work well.

Thanks again,
Zhiguo Wu



> -----Original Messages-----
> From: "Lukáš Doktor" <ldoktor at redhat.com>
> Sent Time: 2022-08-10 16:59:23 (Wednesday)
> To: "吴志国" <wuzhiguo at loongson.cn>, avocado-devel at redhat.com
> Cc: 
> Subject: Re: [Avocado-devel] How to enable and run SR-IOV testcases with Avocado ?
> 
> Dear Wu,
> 
> the original intention for advanced setups was to use a custom tests.cfg via "--vt-config", but if you only need to remove some basic filters, you can also use "--vt-filter-default-filters". In your case something like:
> 
>     avocado -V list --vt-guest-os RHEL.8.devel --vt-filter-default-filters no_pci_assignable boot
> 
> should do to apply all default filters but the "no_pci_assignable". You can then use "--vt-only-filter" and "--vt-no-filter" to apply additional filters (like "--vt-only-filter vf_assignable" to only run vf_assignable).
> 
> Note you might also override some params globally via "--vt-extra-params" which comes really handy when overriding some attributes (like "--vt-extra-params driver_option=10"). Those extra params are added after parsing all cfg files so they get the highest priority.
> 
> Hopefully this helps,
> Lukáš
> 
> 
> Dne 09. 08. 22 v 14:26 吴志国 napsal(a):
> > Hi avocado development team,
> > 
> > 
> > I am working on KVM testing. I am trying to run SR-IOV testcases with Avocado. But I found that there is not any testcases about SR-IOV in results of "avocado list". 
> > 
> > 
> > It is unuseful, throught I tried to modify some config file, as following:
> > 
> >     1. modified "pf_assignable"/"vf_assignable" variants in avocado-vt: virttest/shared/cfg/guest-hw.cfg;
> > 
> >     2. removed "only pf_assignable"/"only vf_assignable" in tp-qemu config file;
> > 
> >     3. modified _process_options function in avocado-vt: avocado_vt/options.py.
> > 
> > 
> > *Could you please share your comments and suggestions about SR-IOV testing**?*
> > 
> > 
> > By the way, I could run the general testcases with avocado. 
> > 
> > 
> > root at localhost:/root/avocado-vt# avocado run system_reset,system_powerdown --vt-type qemu 
> > JOB ID     : 5c24bd3aea6a743d24f225f96f61a77cdbedca71
> > JOB LOG    : /root/avocado/job-results/job-2022-08-09T19.49-5c24bd3/job.log
> >  (1/2) type_specific.io-github-autotest-qemu.system_reset: PASS (61.99 s)
> >  (2/2) type_specific.io-github-autotest-qemu.system_powerdown: PASS (47.17 s)
> > RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
> > JOB TIME   : 110.87 s
> > 
> > 
> > 
> > Best Regards,
> > 
> > Zhiguo Wu
> > 
> > 
> > 
> > /本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 
> > This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it. /
</wuzhiguo at loongson.cn></ldoktor at redhat.com>

本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it. 


More information about the Avocado-devel mailing list