Schema validation of test data
authorArjen Baart <arjen@andromeda.nl>
Thu, 31 Oct 2019 21:16:29 +0000 (22:16 +0100)
committerArjen Baart <arjen@andromeda.nl>
Thu, 31 Oct 2019 21:16:29 +0000 (22:16 +0100)
test/check

index 190d0a0..f050145 100755 (executable)
@@ -3,6 +3,13 @@
 FILE=$1
 STATUS=0
 
+xmllint --noout --schema ../doc.xsd $FILE.xml
+RESULT=$?
+if [ $STATUS == 0 ]
+then
+   STATUS=$RESULT
+fi
+
 ../xp ../html.xsl $FILE.xml >$FILE.html
 diff $FILE.html.exp $FILE.html
 RESULT=$?