mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-22 14:09:22 +00:00
32d49d4b91
The 'cputestdata' directory has a collection of XML files with very complicated naming schemes for various input and output XML files. Rather than trying to write complex regexes for selecting specific files which diverged already multiple times we can introduce an internal schema file which will cover all of the 3 top level elements used in the XML files. Schema for <cpu> is taken from our main RNG schema, <cpuTest> is just a collection of <cpu> elements, and finally <cpudata> is a simple enough to describe inline. To keep the validator happy we have to generate the schema file to place full paths for the included documents. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
17 lines
420 B
Meson
17 lines
420 B
Meson
# we need to replace proper paths to our schemas in the test schemas
|
|
virschematest_test_schemas_conf = configuration_data({
|
|
'SCHEMADIR': meson.project_source_root() / 'src' / 'conf' / 'schemas',
|
|
})
|
|
|
|
virschematest_schemas = [
|
|
'cpu-baseline.rng.in',
|
|
]
|
|
|
|
foreach file : virschematest_schemas
|
|
configure_file(
|
|
input: file,
|
|
output: '@BASENAME@',
|
|
configuration: virschematest_test_schemas_conf,
|
|
)
|
|
endforeach
|