doc: Update the test script for wikiparser

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-08-24 06:29:26 -07:00 committed by James Valleroy
parent 72ca92224d
commit 4c78bcf89c
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -3,7 +3,7 @@
for var in "$@"
do
gen=$(python3 scripts/wikiparser.py "$var" | xmllint --format -)
orig=$(sed 's/<revhistory>.*<\/revhistory>//g' "${var//.wiki/.xml}" | xmllint --format -)
gen=$(python3 scripts/wikiparser.py "$var" --begin-marker='## BEGIN_INCLUDE' --end-marker='## END_INCLUDE' | xsltproc scripts/fixes.xslt - | xmllint --format -)
orig=$(xmllint --format "${var//.raw.wiki/.xml}" )
diff --ignore-all-space <(echo "$gen") <(echo "$orig")
done