]> xenbits.xensource.com Git - libvirt.git/commit
test: Implement fake storage pool driver in qemuxml2argv test
authorPeter Krempa <pkrempa@redhat.com>
Wed, 20 Nov 2013 15:04:10 +0000 (16:04 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 2 Dec 2013 09:32:09 +0000 (10:32 +0100)
commitbae124e40ff2b9d4de75d44510619db2c08d548a
tree730878161f5d7ef077273b864daf600970f5e6bb
parent4e41a2a3702df336529f1a5b5fb4eecd94d7bf16
test: Implement fake storage pool driver in qemuxml2argv test

To support testing of "volume" disk backing, we need to implement a few
disk driver backend functions.

The fake storage driver uses files in storagepoolxml2xmlout/POOLNAME.xml
as XML files for pool definitions and volume names are in format
"VOL_TYPE+VOL_PATH". By default type "block" is assumed (for iSCSI test
compatibility).

The choice of this approach along with implemented functions was made so
that <disk type='volume'> can be tested in the xml2argv test.
tests/qemuxml2argvtest.c