From: Windows Live Subject: RE: test structure missing files Date: Wed, 26 Oct 2011 19:16:54 +0800 Message-ID: References: , , , <1319575086.16747.8.camel@dagon.hellion.org.uk>, , , , , <1319610349.16747.33.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0075811608==" Return-path: In-Reply-To: <1319610349.16747.33.camel@dagon.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: ian.campbell@citrix.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0075811608== Content-Type: multipart/alternative; boundary="_7154e1e1-9e7e-49c6-94b4-e3b3df0da40c_" --_7154e1e1-9e7e-49c6-94b4-e3b3df0da40c_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Subject: Re: FW: [Xen-devel] test structure missing files > From: Ian.Campbell@citrix.com > To: johneed@hotmail.com > CC: xen-devel@lists.xensource.com > Date: Wed=2C 26 Oct 2011 07:25:49 +0100 >=20 =20 > In general the interesting stuff will likely be in the few lines before > the actual error=2C in particular the gcc invocation and sometimes the > make output about which directory it is building in etc. Please be wary > of trimming too much when posting error messages. >=20 roger that=20 > I just managed to reproduce the error though=2C it was non-obvious becaus= e > I had to run "make clean" in the tools tree first. I think you need to > have built the tools tree before running the test target=2C at least this > seems logical and works for me. >=20 roger that. Now you mention it=2C indeed. I was attempting to cut it down= to bare minimum in response to your mentioning things such as patches and = commands which might have an impact.Took it too far. Now for a more sensib= le approach.. > I suppose we should find a way to show this in the top-level Makefile > dependencies. Perhaps this is sufficient: >=20 > diff -r e6af32ecb448 Makefile > --- a/Makefile Tue Oct 18 14:15:09 2011 +0100 > +++ b/Makefile Wed Oct 26 07:23:05 2011 +0100 > @@ -31=2C7 +31=2C7 @@ endif > # course=2C many tests require a machine running Xen itself=2C and these= are > # handled elsewhere. > .PHONY: test > -test: > +test: tools > $(MAKE) -C tools/python test > =20 > # build and install everything into local dist directory >=20 > I get failures now because I didn't build/test on a Xen host. That might > be a show stopper for an ebuild as well? >=20 > Ian. >=20 After kicking my system into a better shape by way of the curl library and = rebuilding xen-tools with thegentoo api use flag=2C I have some sanity now = produced from running the make test. Importantly any trace of those initia= l errors now don't appear. This means the test suite is now usable and inc= orporatable into an ebuild. Seems the running of the test suite will be co= nditional on selection of some gentoo use flags. Still get errors.=20 Ran 9 tests in 0.080s FAILED (failures=3D1=2C errors=3D5) ImportError: cannot import name XendConfig ValueError: Cannot find kernel "/mykernel" ValueError: Cannot find kernel "/boot/vmlinuz-xenU-smp"AssertionError: vide= oram not in b which makes 4=2C each of these repeated a couple of times. Some gentoo pyt= hon devs ought be able totroubleshoot these. If you would like the test bu= ild log=2C just say so. From here it's purely python. At a glance I suspect the tests that trigger "/mykernel" && "/boot/vmlinuz-= xenU-smp" could be commented out or deleted IF they stem from requiring the= source to build kernels=2C which does not occur in a xen-tools package. g= entoo makes xen for the hypervisor=2C xen-tools and of recent xen-pvgrub wh= ich is an invocation of make install-stubdom. I shall call upon more python= fluentgentoo devs to determine such states. In the unlikely case that the gentoo devs can't sort these python misfires = I shall need return and prompt for further support. Thanks Ian Delaney=2C gentoo xen = --_7154e1e1-9e7e-49c6-94b4-e3b3df0da40c_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


>=3B Subject: Re: FW: [Xen-devel] test stru= cture missing files
>=3B From: Ian.Campbell@citrix.com
>=3B To: j= ohneed@hotmail.com
>=3B CC: xen-devel@lists.xensource.com
>=3B Da= te: Wed=2C 26 Oct 2011 07:25:49 +0100
>=3B
 =3B =3B
>= =3B In general the interesting stuff will likely be in the few lines before=
>=3B the actual error=2C in particular the gcc invocation and sometim= es the
>=3B make output about which directory it is building in etc. P= lease be wary
>=3B of trimming too much when posting error messages.>=3B

roger that =3B

<= div>>=3B I just managed to reproduce the error though=2C it was non-obvio= us because
>=3B I had to run "make clean" in the tools tree first. I t= hink you need to
>=3B have built the tools tree before running the tes= t target=2C at least this
>=3B seems logical and works for me.
>= =3B

roger that.  =3BNow you mention it=2C ind= eed.  =3BI was attempting to cut it down to bare minimum =3B
<= div>in response to your mentioning things such as patches and commands whic= h might have an impact.
Took it too far.  =3BNow for a more s= ensible approach..

>=3B I suppose we should find a way to s= how this in the top-level Makefile
>=3B dependencies. Perhaps this is = sufficient:
>=3B
>=3B diff -r e6af32ecb448 Makefile
>=3B --= - a/Makefile Tue Oct 18 14:15:09 2011 +0100
>=3B +++ b/Makefile Wed Oc= t 26 07:23:05 2011 +0100
>=3B @@ -31=2C7 +31=2C7 @@ endif
>=3B #= course=2C many tests require a machine running Xen itself=2C and these are=
>=3B # handled elsewhere.
>=3B .PHONY: test
>=3B -test:>=3B +test: tools
>=3B $(MAKE) -C tools/python test
>=3B <= br>>=3B # build and install everything into local dist directory
>= =3B
>=3B I get failures now because I didn't build/test on a Xen host= . That might
>=3B be a show stopper for an ebuild as well?
>=3B <= br>>=3B Ian.
>=3B

After kicking my sys= tem into a better shape by way of the curl library and rebuilding xen-tools= with the
gentoo api use flag=2C I have some sanity now produced = from running the make test.  =3BImportantly any
trace of tho= se initial errors now don't appear.  =3BThis means the test suite is no= w usable and
incorporatable into an ebuild.  =3BSeems the ru= nning of the test suite will be conditional on selection
of some= gentoo use flags.  =3BStill get errors. =3B

Ran 9 tests in 0.080s

FAILED (failures=3D1=2C errors=3D5)
ImportError: cannot import name XendConfig
ValueError:= Cannot find kernel "/mykernel"
ValueError: Cannot find kerne= l "/boot/vmlinuz-xenU-smp"
AssertionError: videoram not in b

which makes 4=2C each of these repeated a couple of ti= mes.  =3BSome gentoo python devs ought be able to
troubleshoo= t these.  =3BIf you would like the test build log=2C just say so.  = =3BFrom here it's purely python.

At a glance I sus= pect the tests that trigger "/mykernel" &=3B&=3B "/boot/vmlinuz-xenU-= smp" could be
commented out or deleted IF they stem from requiri= ng the source to build kernels=2C which =3B
does not occur in= a xen-tools package.  =3Bgentoo makes xen for the hypervisor=2C xen-to= ols and of recent
xen-pvgrub which is an invocation of make inst= all-stubdom. I shall call upon more python fluent
gentoo devs to = determine such states.

In the unlikely case that t= he gentoo devs can't sort these python misfires I shall need return and
prompt for further support.

Thanks

Ian Delaney=2C gentoo xen

= --_7154e1e1-9e7e-49c6-94b4-e3b3df0da40c_-- --===============0075811608== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0075811608==--