summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c162b5)
raw | patch | inline | side by side (parent: 2c162b5)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Jun 2011 16:54:15 +0000 (09:54 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Jun 2011 22:30:16 +0000 (15:30 -0700) |
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 <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/gitweb-lib.sh | patch | blob | history |
diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
index 143eb1f24092df070c5ddf75340bebb319a0c746..292753f77c4daf5f3cb55de1c28269b13455544f 100644 (file)
--- a/t/gitweb-lib.sh
+++ b/t/gitweb-lib.sh
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