blob: 15e82ac586c8705e5b86d0b6c1aa96d63812a4b4 [file]
#!/bin/bash
shopt -s extglob
LOC=`dirname "$0"`
SUM=0
for A in ${LOC}/../*.xml; do
xmllint --noout --schema ${LOC}/../schema/zcl.xsd $A
SUM=$(( $SUM + $?))
done
for A in ${LOC}/../../silabs/*.xml; do
xmllint --noout --schema ${LOC}/../schema/zcl.xsd $A
SUM=$(( $SUM + $?))
done
while IFS= read -r -d '' file; do
echo "Validating: $file"
xmllint --noout --schema ${LOC}/../schema/zcl.xsd "$file"
SUM=$(( SUM + $? ))
done < <(find "${LOC}/../../matter/data-model" -type f -name "*.xml" -print0)
for A in ${LOC}/../../../test/resource/meta/*.xml; do
xmllint --noout --schema ${LOC}/../schema/zcl.xsd $A
SUM=$(( $SUM + $?))
done
for A in ${LOC}/../../../test/resource/custom-cluster/!([b]*|matter*).xml; do
xmllint --noout --schema ${LOC}/../schema/zcl.xsd $A
SUM=$(( $SUM + $?))
done
exit $SUM