[libvirt] [PATCH] 3/3 Add netcf XML validation and input and output tests

Daniel Veillard veillard at redhat.com
Wed Jul 15 15:49:09 UTC 2009


On Wed, Jul 15, 2009 at 11:24:59AM +0100, Daniel P. Berrange wrote:
> On Wed, Jul 15, 2009 at 11:20:00AM +0200, Daniel Veillard wrote:
> >   Basic stuff similar to other tests, first we verify the input tests
> > all conform to the provided schemas, then for each test we parse and
> > reserialize verifying the output is identical.
> 
> ACK, good stuff.
> > + fail:
> > +    if (ret != 0)
> > +        fprintf(stderr, "expected: -------\n%s", actual);
> 
> 
> BTW, you don't need this fprintf when using virtTestDifference.
> If you set VIR_TEST_DEBUG=2 then it will print out the full
> XML being compared automatically :-)

  Oops I knew I had forgotten a debugging output it escaped, good catch !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list