On 10/17/2013 08:03 PM, Yu Mingfei wrote:
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
To list the testcases, I have to specify the config file:
# ./run -t libguestfs --list-tests -c libguestfs/cfg/tests.cfg
I also do not know why. :D
Maybe I need to read script about run to find the reason.
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
Hmm, You can try this way:
# client/autotest libguestfs/control
Thanks, it's not what I want, if I just want to run a specified case
such as "
raw.ide.smp2.nic_custom.RHEL.6.3.x86_64.guestfs_list_operations.list_without_launch",
it doesn't work for me.
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