From: Junio C Hamano Date: Wed, 15 Jun 2011 16:54:15 +0000 (-0700) Subject: t/gitweb-lib.sh: skip gitweb tests when perl dependencies are not met X-Git-Tag: v1.7.6.1~7^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b7d878075e751859ff344c8334ae016228676c4d;p=git.git t/gitweb-lib.sh: skip gitweb tests when perl dependencies are not met Linus noticed that we go ahead testing gitweb and fail miserably on a box with Perl but not perl-CGI library. We already have a code to detect lack of Perl and refrain from testing gitweb in t/gitweb-lib.sh (by the way, shouldn't it be called t/lib-gitweb.sh?), so let's extend it to cover this case as well. Acked-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh index 143eb1f24..292753f77 100644 --- a/t/gitweb-lib.sh +++ b/t/gitweb-lib.sh @@ -107,4 +107,9 @@ perl -MEncode -e '$e="";decode_utf8($e, Encode::FB_CROAK)' >/dev/null 2>&1 || { test_done } +perl -MCGI -MCGI::Util -MCGI::Carp -e 0 >/dev/null 2>&1 || { + skip_all='skipping gitweb tests, CGI module unusable' + test_done +} + gitweb_init