summaryrefslogtreecommitdiff
path: root/t/lib-git-svn.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-04-03 19:33:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-09 05:42:16 (GMT)
commit1b19ccd236e3369ac77d74ded207406ffbf9feca (patch)
tree3893ed847c3f7f6c74c7fa7d424d9707f9b64938 /t/lib-git-svn.sh
parent499c29394ce1ead3ebd29b0d3c8014cdb7a32e63 (diff)
downloadgit-1b19ccd236e3369ac77d74ded207406ffbf9feca.zip
git-1b19ccd236e3369ac77d74ded207406ffbf9feca.tar.gz
git-1b19ccd236e3369ac77d74ded207406ffbf9feca.tar.bz2
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/lib-git-svn.sh')
-rw-r--r--t/lib-git-svn.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh
index cdd7ccd..773d47c 100644
--- a/t/lib-git-svn.sh
+++ b/t/lib-git-svn.sh
@@ -8,6 +8,10 @@ then
say 'skipping git svn tests, NO_SVN_TESTS defined'
test_done
fi
+if ! test_have_prereq PERL; then
+ say 'skipping git svn tests, perl not available'
+ test_done
+fi
GIT_DIR=$PWD/.git
GIT_SVN_DIR=$GIT_DIR/svn/git-svn