On 03/08/2013 11:01 AM, Alex Jia wrote:
On 03/07/2013 03:48 PM, Yanbing Du wrote:
https://github.com/autotest/virt-test/issues/211

Introduce virsh dump test:
     1) Positive testing
         1.1) Dump domain with valid options.
         1.2) Avoid file system cache when dumping.
         1.3) Compress the dump images to valid/invalid formats.

For invalid formats, it belongs to negative testing.

Yes, u r right.
The problem is:
"if the specified dump_image_format is not valid, or the requested
 compression program can't be found, this falls back to "raw" compression."
So, if we put it into negative testing, then we need more work to judge it as
its return value is "0".


     2. Negative testing
         2.1) Dump domain to a non-exist directory.
         2.2) Dump domain with invalid options.
         2.3) Dump a shut-off domain.

Yanbing Du (2):
   Add configuration for virsh dump
   Add test for virsh dump

  libvirt/tests/cfg/virsh_dump.cfg |   54 +++++++++++
libvirt/tests/virsh_dump.py | 197 ++++++++++++++++++++++++++++++++++++++
  2 files changed, 251 insertions(+), 0 deletions(-)
  create mode 100644 libvirt/tests/cfg/virsh_dump.cfg
  create mode 100644 libvirt/tests/virsh_dump.py

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


--
Regards,
Yanbing Du

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

Reply via email to