X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t.validate-xhtml;h=8eeafcc699cdcb95a8dc9bb9825755215afb04f8;hb=d31db10231e9ed89f64fdf6e0fb7cae182aa377e;hp=e327198836e5888e341c710f3592a3c39d664949;hpb=daf6512a893fa61c9b8d4b8dc93c46e2a94e7f42;p=~andy%2Ffetchmail diff --git a/t.validate-xhtml b/t.validate-xhtml index e3271988..8eeafcc6 100755 --- a/t.validate-xhtml +++ b/t.validate-xhtml @@ -2,11 +2,24 @@ # This test script validates all *.html files as XHTML. -set -e +set -eu e=0 fail= IFS=$(printf '\n\t') + +# ditto for XHTML 1.1 (asciidoc generates that) +cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 + + + + </head><body><p></p></body></html> +_EOF + for i in "${srcdir}"/*.html ; do + case "$i" in + */Mailbox-Names-UTF7.html) ;; + *) continue ;; + esac xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } done if [ $e != 0 ] ; then