summaryrefslogtreecommitdiff
path: root/CI/testxml/xsdcheck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'CI/testxml/xsdcheck.sh')
-rwxr-xr-xCI/testxml/xsdcheck.sh52
1 files changed, 52 insertions, 0 deletions
diff --git a/CI/testxml/xsdcheck.sh b/CI/testxml/xsdcheck.sh
new file mode 100755
index 0000000..2052a2c
--- /dev/null
+++ b/CI/testxml/xsdcheck.sh
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+
+cd xsd
+DIR="$(pwd)/../../../client-data"
+rm ../errors.txt
+
+function check {
+ xmllint --format --schema tmw.xsd "${DIR}"/"${1}" 2>&1 >/dev/null | \
+ grep -v ": Skipping import of schema located at " | \
+ grep -v ".xml validates" | \
+ grep -v ".manaplus validates" >>../errors.txt
+}
+
+xmllint --format --schema XMLSchema.xsd tmw.xsd 2>&1 >/dev/null | \
+ grep -v ": Skipping import of schema located at " | \
+ grep -v ".xsd validates" >>../errors.txt
+
+check avatars.xml
+check badges.xml
+check charcreation.xml
+check deadmessages.xml
+check effects.xml
+check elementals.xml
+check emotes.xml
+check equipmentslots.xml
+check equipmentwindow.xml
+check tmw2.manaplus
+check features.xml
+check groups.xml
+check homunculuses.xml
+check horses.xml
+check itemcolors.xml
+check itemfields.xml
+check items.xml
+check maps.xml
+check mercenaries.xml
+check mods.xml
+check monsters.xml
+check npcdialogs.xml
+check npcs.xml
+check paths.xml
+check pets.xml
+check quests.xml
+check skills.xml
+check skillunits.xml
+check sounds.xml
+check stats.xml
+check status-effects.xml
+check units.xml
+check weapons.xml
+
+find -H "${DIR}/graphics" -type f -name "*.xml" -exec ./checkfile.sh {} \; >>../errors.txt