Allow testing XML parsing with different flags.
ret = testCompareDomXML2XMLFiles(driver.caps, driver.xmlopt, xml_in,
info->different ? xml_out : xml_in,
false,
- NULL, NULL);
+ NULL, NULL, 0);
cleanup:
VIR_FREE(xml_in);
ret = testCompareDomXML2XMLFiles(caps, xmlopt, xml_in,
info->different ? xml_out : xml_in,
!info->inactive_only,
- NULL, NULL);
+ NULL, NULL, 0);
cleanup:
VIR_FREE(xml_in);
VIR_FREE(xml_out);
ret = testCompareDomXML2XMLFiles(caps, xmlopt, xml_in,
info->different ? xml_out : xml_in,
!info->inactive_only,
- NULL, NULL);
+ NULL, NULL, 0);
cleanup:
VIR_FREE(xml_in);
VIR_FREE(xml_out);
return testCompareDomXML2XMLFiles(driver.caps, driver.xmlopt,
info->inName, info->outActiveName, true,
- qemuXML2XMLPreFormatCallback, opaque);
+ qemuXML2XMLPreFormatCallback, opaque, 0);
}
return testCompareDomXML2XMLFiles(driver.caps, driver.xmlopt, info->inName,
info->outInactiveName, false,
- qemuXML2XMLPreFormatCallback, opaque);
+ qemuXML2XMLPreFormatCallback, opaque, 0);
}
testCompareDomXML2XMLFiles(virCapsPtr caps, virDomainXMLOptionPtr xmlopt,
const char *infile, const char *outfile, bool live,
testCompareDomXML2XMLPreFormatCallback cb,
- const void *opaque)
+ const void *opaque, unsigned int parseFlags)
{
char *actual = NULL;
int ret = -1;
virDomainDefPtr def = NULL;
unsigned int parse_flags = live ? 0 : VIR_DOMAIN_DEF_PARSE_INACTIVE;
unsigned int format_flags = VIR_DOMAIN_DEF_FORMAT_SECURE;
+
+ parse_flags |= parseFlags;
+
if (!live)
format_flags |= VIR_DOMAIN_DEF_FORMAT_INACTIVE;
const char *outfile,
bool live,
testCompareDomXML2XMLPreFormatCallback cb,
- const void *opaque);
+ const void *opaque,
+ unsigned int parseFlags);
#endif /* __VIT_TEST_UTILS_H__ */