Skip to content

Commit

Permalink
Merge branch 'jc/no-gitweb-test-without-cgi-etc' into maint
Browse files Browse the repository at this point in the history
* jc/no-gitweb-test-without-cgi-etc:
  t/gitweb-lib.sh: skip gitweb tests when perl dependencies are not met
  • Loading branch information
Junio C Hamano committed Aug 23, 2011
2 parents 1be9d84 + b7d8780 commit 02c2c60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/gitweb-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 02c2c60

Please sign in to comment.