Hey Alex:

OK, I got the reason:

lines in libguestfs/cfg/tests-share.cfg should be:
```
include base.cfg
+include subtests.cfg
include machines.cfg
include guest-os.cfg
include guest-hw.cfg
-include subtests.cfg
```
I didn't consider the run script when I added libguestfs testcases. :(

Thanks for your report~
I will fix it later.

On 10/17/2013 05:01 PM, Alex Jia wrote:
> Hi all,
> I want to know how to run test cases of the libguestfs, I gave a try,
> but it doesn't work for me.
>
> # ./run -t libguestfs --list-tests
> Empty config set generated
> Tests chosen: ''
> Check that you typed the tests names correctly, and double check that
> tests show in --list-tests for guest 'JeOS.19'
> Tests produced by config file
> /home/ajia/Workspace/github/virt-test/libguestfs/cfg/tests.cfg
>
> The full test list was modified by the following:
>
> Filters applied:
>     only JeOS.19
>     only i440fx
>
> Different guest OS have different test lists
>
> Assignments applied:
>     mem = 1024
>
> Assignments override values previously set in the config file
>
> Notes, no any case is listed in here.
>
> # ls libguestfs/tests/cfg/
> guestfs_add.cfg  guestfs_file_operations.cfg 
> guestfs_inspect_operations.cfg  guestfs_list_operations.cfg 
> virt_edit.cfg
>
> # ./run -t libguestfs --tests guestfs_list_operations --no-download
> SETUP: PASS (0.30 s)
> DATA DIR: /var/lib/virt_test
> DEBUG LOG:
> /home/ajia/Workspace/github/virt-test/logs/run-2013-10-17-17.00.21/debug.log
> Empty config set generated
> Tests chosen: 'guestfs_list_operations'
> Check that you typed the tests names correctly, and double check that
> tests show in --list-tests for guest 'JeOS.19'
>
>
> Thanks in advance,
> Alex
>
> _______________________________________________
> Virt-test-devel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/virt-test-devel
> .
>

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to