mirror of https://gitee.com/openkylin/libvirt.git
tests: add vol-qcow2-zerocapacity test to storagevolxml2argvtest
Add a testcase for the previous change to ensure zero capacity volumes can be defined without a backing store. Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
This commit is contained in:
parent
c6eea54008
commit
be6c35e4ac
|
@ -0,0 +1 @@
|
|||
qemu-img create -f qcow2 -o compat=0.10 0K
|
|
@ -284,6 +284,9 @@ mymain(void)
|
|||
DO_TEST("pool-dir", "vol-qcow2-nocapacity",
|
||||
"pool-dir", "vol-file",
|
||||
"qcow2-nocapacity-convert-prealloc", flags, FMT_OPTIONS);
|
||||
DO_TEST("pool-dir", "vol-qcow2-zerocapacity",
|
||||
NULL, NULL,
|
||||
"qcow2-zerocapacity", 0, FMT_COMPAT);
|
||||
DO_TEST_FULL(false, VIR_VOL_XML_PARSE_OPT_CAPACITY,
|
||||
"pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL,
|
||||
"qcow2-nocapacity", 0, FMT_OPTIONS);
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<volume>
|
||||
<name>OtherDemo.img</name>
|
||||
<target>
|
||||
<format type="qcow2"/>
|
||||
</target>
|
||||
<capacity>0</capacity>
|
||||
</volume>
|
Loading…
Reference in New Issue