Run xmllint to validate the XML output files of virt-inspector, so the
schema is checked against actual output of virt-inspector.
---
inspector/test-virt-inspector.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inspector/test-virt-inspector.sh b/inspector/test-virt-inspector.sh
index 2f55cdc..33d749c 100755
--- a/inspector/test-virt-inspector.sh
+++ b/inspector/test-virt-inspector.sh
@@ -30,6 +30,8 @@ for f in
../test-data/phony-guests/{debian,fedora,ubuntu,archlinux,coreos,window
if [ -s "$f" ]; then
b=$(basename "$f" .xml)
$VG virt-inspector --format=raw -a "$f" > "actual-$b.xml"
+ # Check the generated output validate the schema.
+ xmllint --noout --relaxng $srcdir/virt-inspector.rng "actual-$b.xml"
# This 'diff' command will fail (because of -e option) if there
# are any differences.
diff -ur $diff_ignore "expected-$b.xml" "actual-$b.xml"
--
2.9.3