diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-10-07 11:27:02 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-10-07 11:27:02 +0100 |
commit | 24c1c96371b7442af0843f87ec2b4e668ff208b2 (patch) | |
tree | c686c92162786a151c0f7685e7b55efa0bc58488 /tools/libxl/check-xl-disk-parse | |
parent | fe4e6521b6d9ae7513a28d78c2dea40ced663603 (diff) | |
download | xen-24c1c96371b7442af0843f87ec2b4e668ff208b2.tar.gz xen-24c1c96371b7442af0843f87ec2b4e668ff208b2.tar.bz2 xen-24c1c96371b7442af0843f87ec2b4e668ff208b2.zip |
libxl: add a test case for correct parsing of disk "backendtype" field
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxl/check-xl-disk-parse')
-rwxr-xr-x | tools/libxl/check-xl-disk-parse | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/libxl/check-xl-disk-parse b/tools/libxl/check-xl-disk-parse index dc640729a5..67805e56ed 100755 --- a/tools/libxl/check-xl-disk-parse +++ b/tools/libxl/check-xl-disk-parse @@ -91,4 +91,20 @@ one 0 "format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/root/image.iso" one 0 format=raw vdev=hdc access=ro devtype=cdrom target=/root/image.iso one 0 raw:/root/image.iso,hdc:cdrom,ro +expected <<EOF +disk: { + "backend_domid": 0, + "pdev_path": "/dev/vg/guest-volume", + "vdev": "xvdb", + "backend": "phy", + "format": "raw", + "script": null, + "removable": 0, + "readwrite": 1, + "is_cdrom": 0 +} + +EOF +one 0 backendtype=phy,vdev=xvdb,access=w,target=/dev/vg/guest-volume + complete |