X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t.validate-xhtml;h=8eeafcc699cdcb95a8dc9bb9825755215afb04f8;hb=edb8384a00f108b385d0df7ddfa5bd671a36f946;hp=fa4d8e43a74bb45511c8e739feb406b8a008bbce;hpb=5c068135bd86f650e83e3dc95b67a31fdeb2587e;p=~andy%2Ffetchmail diff --git a/t.validate-xhtml b/t.validate-xhtml index fa4d8e43..8eeafcc6 100755 --- a/t.validate-xhtml +++ b/t.validate-xhtml @@ -7,24 +7,19 @@ e=0 fail= IFS=$(printf '\n\t') -# smoke test validator and skip if it fails +# ditto for XHTML 1.1 (asciidoc generates that) cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 - + - </head><body></body></html> -_EOF -# same, for XHTML 1.1 -cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 -<?xml version="1.0" encoding="US-ASCII"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> - <head><title /></head><body></body></html> + <head><title /></head><body><p></p></body></html> _EOF for i in "${srcdir}"/*.html ; do - case "$i" in */fetchmail-man.html) continue ;; esac + case "$i" in + */Mailbox-Names-UTF7.html) ;; + *) continue ;; + esac xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } done if [ $e != 0 ] ; then