# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1317983222 -3600
# Node ID adfde25db7a193196b411870ba7b7af02d007f1a
# Parent dafd08abcc8d0fcf10f05f9f1715229a0898e03f
libxl: add a test case for correct parsing of disk "backendtype" field
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---
diff -r dafd08abcc8d -r adfde25db7a1 tools/libxl/check-xl-disk-parse
--- a/tools/libxl/check-xl-disk-parse Fri Oct 07 11:06:41 2011 +0100
+++ b/tools/libxl/check-xl-disk-parse Fri Oct 07 11:27:02 2011 +0100
@@ -91,4 +91,20 @@
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
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|