git-svn: add support for Perl SVN::* libraries
[git/gitweb.git] / contrib / git-svn / t / lib-git-svn.sh
blob2843258fc478d9d18d563aa6ac3428e73e431f53
1 PATH=$PWD/../:$PATH
2 if test -d ../../../t
3 then
4 cd ../../../t
5 else
6 echo "Must be run in contrib/git-svn/t" >&2
7 exit 1
8 fi
10 . ./test-lib.sh
12 GIT_DIR=$PWD/.git
13 GIT_SVN_DIR=$GIT_DIR/svn/git-svn
14 SVN_TREE=$GIT_SVN_DIR/svn-tree
16 svnadmin >/dev/null 2>&1
17 if test $? != 1
18 then
19 test_expect_success 'skipping contrib/git-svn test' :
20 test_done
21 exit
24 svn >/dev/null 2>&1
25 if test $? != 1
26 then
27 test_expect_success 'skipping contrib/git-svn test' :
28 test_done
29 exit
32 svnrepo=$PWD/svnrepo
34 set -e
36 svnadmin create $svnrepo
37 svnrepo="file://$svnrepo/test-git-svn"