Re: [PATCH 06/12] virschematest: Improve testing schemas in 'tests/cputestdata'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Tuesday in 2022, Peter Krempa wrote:
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@xxxxxxxxxx>
---
tests/meson.build                 |  1 +
tests/schemas/cpu-baseline.rng.in | 84 +++++++++++++++++++++++++++++++
tests/schemas/meson.build         | 16 ++++++
tests/virschematest.c             | 13 ++---
4 files changed, 106 insertions(+), 8 deletions(-)
create mode 100644 tests/schemas/cpu-baseline.rng.in
create mode 100644 tests/schemas/meson.build


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux