Re: [libvirt] [PATCH 1/4] tests: schema: Add possibility to validate individual files

2017-03-28 Thread Martin Kletzander
On Tue, Mar 28, 2017 at 01:58:56PM +0200, Peter Krempa wrote: Sometimes it may be desired to validate individual files against a schema. Refactor the data structures to unify them and introduce a new macro DO_TEST_FILE(schema, xmlfile) which will test the XML file against the given schema file.

Re: [libvirt] [PATCH 1/4] tests: schema: Add possibility to validate individual files

2017-03-28 Thread Andrea Bolognani
On Tue, 2017-03-28 at 13:58 +0200, Peter Krempa wrote: [...] > @@ -196,6 +192,30 @@ mymain(void) >  } >  \ >  } while (0) >  > +#define DO_TEST_FILE(sch, xmlfile)    >   \ > +

[libvirt] [PATCH 1/4] tests: schema: Add possibility to validate individual files

2017-03-28 Thread Peter Krempa
Sometimes it may be desired to validate individual files against a schema. Refactor the data structures to unify them and introduce a new macro DO_TEST_FILE(schema, xmlfile) which will test the XML file against the given schema file. --- tests/virschematest.c | 34