From 86c5e63d7cccacc5388b0e2fa4cbd22191e4ca3b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 5 Mar 2010 23:07:06 +0100 Subject: Skip XHTML validation if xmllint or DTD are missing. --- t.validate-xhtml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 't.validate-xhtml') diff --git a/t.validate-xhtml b/t.validate-xhtml index d66fc98f..bf55f4fb 100755 --- a/t.validate-xhtml +++ b/t.validate-xhtml @@ -6,6 +6,15 @@ set -eu e=0 fail= IFS=$(printf '\n\t') + +# smoke test validator and skip if it fails +cat - <<'_EOF' | xmllint 2>/dev/null --nonet --postvalid --noout - || exit 77 + + + + </head><body></body></html> +_EOF + for i in "${srcdir}"/*.html ; do case "$i" in */fetchmail-man.html) continue ;; esac xmllint --postvalid --noout "$i" || { e=1 ; fail="$i${fail:+" "}$fail" ; } -- cgit v1.2.3