From: Ian Campbell Subject: Re: [PATCH] xl: update check-xl-disk-parse to handle backend_domname Date: Wed, 29 Jan 2014 09:20:06 +0000 Message-ID: <1390987206.31814.37.camel@kazak.uk.xensource.com> References: <1390932736-10568-1-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1390932736-10568-1-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-01-28 at 19:12 +0100, Olaf Hering wrote: > Signed-off-by: Olaf Hering Thanks. Acked-by: Ian Campbell I think it doesn't need a freeze exception, so I'll commit it when I next go through my queue. As an aside if anyone is looking for a project wiring up this and other tests into a toplevel "make test" would be awesome. I'm not sure if it would be complicated by some of the tests needing to run on an active Xen host (as opposed to a build machine). Perhaps many of the tests could be made to not rely on running under Xen, or if there was an easy way to easily create a tarball of the tests which could be deployed and run? Once something like that is in place then adding it to the push gate should be relatively simple, I think. It would also be possible to ask people to run them before submitting patches etc. If it didn't require running under Xen then I'd also add it to my pre-commit test scripts. Ian. > --- > tools/libxl/check-xl-disk-parse | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tools/libxl/check-xl-disk-parse b/tools/libxl/check-xl-disk-parse > index 41fb7af..797277c 100755 > --- a/tools/libxl/check-xl-disk-parse > +++ b/tools/libxl/check-xl-disk-parse > @@ -53,6 +53,7 @@ one $e foo > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "/dev/vg/guest-volume", > "vdev": "hda", > "backend": "unknown", > @@ -73,6 +74,7 @@ one 0 raw:/dev/vg/guest-volume,hda,w > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "/root/image.iso", > "vdev": "hdc", > "backend": "unknown", > @@ -94,6 +96,7 @@ one 0 raw:/root/image.iso,hdc:cdrom,ro > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "/dev/vg/guest-volume", > "vdev": "xvdb", > "backend": "phy", > @@ -110,6 +113,7 @@ one 0 backendtype=phy,vdev=xvdb,access=w,target=/dev/vg/guest-volume > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "", > "vdev": "hdc", > "backend": "unknown", > @@ -130,6 +134,7 @@ one 0 ,empty,hdc:cdrom,r > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": null, > "vdev": "hdc", > "backend": "unknown", > @@ -147,6 +152,7 @@ one 0 vdev=hdc,access=r,devtype=cdrom > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "iqn.2001-05.com.equallogic:0-8a0906-23fe93404-c82797962054a96d-examplehost", > "vdev": "xvda", > "backend": "unknown", > @@ -166,6 +172,7 @@ one 0 vdev=xvda,access=w,script=block-iscsi,target=iqn.2001-05.com.equallogic:0- > expected < disk: { > "backend_domid": 0, > + "backend_domname": null, > "pdev_path": "app01", > "vdev": "hda", > "backend": "unknown", > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel