diff options
author | Jeff King <peff@peff.net> | 2009-04-03 15:33:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-08 22:42:16 -0700 |
commit | 1b19ccd236e3369ac77d74ded207406ffbf9feca (patch) | |
tree | 3893ed847c3f7f6c74c7fa7d424d9707f9b64938 /t/t9500-gitweb-standalone-no-errors.sh | |
parent | 499c29394ce1ead3ebd29b0d3c8014cdb7a32e63 (diff) | |
download | git-1b19ccd236e3369ac77d74ded207406ffbf9feca.tar.gz git-1b19ccd236e3369ac77d74ded207406ffbf9feca.tar.xz |
tests: skip perl tests if NO_PERL is defined
These scripts all test git programs that are written in
perl, and thus obviously won't work if NO_PERL is defined.
We pass NO_PERL to the scripts from the building Makefile
via the GIT-BUILD-OPTIONS file.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9500-gitweb-standalone-no-errors.sh')
-rwxr-xr-x | t/t9500-gitweb-standalone-no-errors.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh index 0bd332c49..f4210fbb0 100755 --- a/t/t9500-gitweb-standalone-no-errors.sh +++ b/t/t9500-gitweb-standalone-no-errors.sh @@ -65,6 +65,11 @@ gitweb_run () { . ./test-lib.sh +if ! test_have_prereq PERL; then + say 'skipping gitweb tests, perl not available' + test_done +fi + perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || { say 'skipping gitweb tests, perl version is too old' test_done |