mirror of
https://github.com/git/git.git
synced 2024-12-01 14:03:34 +08:00
e15161198a
* Enable test for delta transfers in full-svn-test. * Run tests against the root of the repository so we won't have to revisit308906fa6e
andefe4631def
again. The graft-branches test still runs as before. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
51 lines
862 B
Bash
51 lines
862 B
Bash
. ./test-lib.sh
|
|
|
|
if test -n "$NO_SVN_TESTS"
|
|
then
|
|
test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' :
|
|
test_done
|
|
exit
|
|
fi
|
|
|
|
GIT_DIR=$PWD/.git
|
|
GIT_SVN_DIR=$GIT_DIR/svn/git-svn
|
|
SVN_TREE=$GIT_SVN_DIR/svn-tree
|
|
|
|
perl -e 'use SVN::Core' >/dev/null 2>&1
|
|
if test $? -ne 0
|
|
then
|
|
echo 'Perl SVN libraries not found, tests requiring those will be skipped'
|
|
GIT_SVN_NO_LIB=1
|
|
fi
|
|
|
|
svnadmin >/dev/null 2>&1
|
|
if test $? -ne 1
|
|
then
|
|
test_expect_success 'skipping git-svn tests, svnadmin not found' :
|
|
test_done
|
|
exit
|
|
fi
|
|
|
|
svn >/dev/null 2>&1
|
|
if test $? -ne 1
|
|
then
|
|
test_expect_success 'skipping git-svn tests, svn not found' :
|
|
test_done
|
|
exit
|
|
fi
|
|
|
|
svnrepo=$PWD/svnrepo
|
|
|
|
set -e
|
|
|
|
if svnadmin create --help | grep fs-type >/dev/null
|
|
then
|
|
svnadmin create --fs-type fsfs "$svnrepo"
|
|
else
|
|
svnadmin create "$svnrepo"
|
|
fi
|
|
|
|
svnrepo="file://$svnrepo"
|
|
|
|
|