Code

450fee89973af5fa660b43202e8945b55e01cf6f
[git.git] / t / lib-git-svn.sh
1 . ./test-lib.sh
3 if test -n "$NO_SVN_TESTS"
4 then
5         test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' :
6         test_done
7         exit
8 fi
10 GIT_DIR=$PWD/.git
11 GIT_SVN_DIR=$GIT_DIR/svn/git-svn
12 SVN_TREE=$GIT_SVN_DIR/svn-tree
14 svnadmin >/dev/null 2>&1
15 if test $? != 1
16 then
17     test_expect_success 'skipping git-svn tests, svnadmin not found' :
18     test_done
19     exit
20 fi
22 svn >/dev/null 2>&1
23 if test $? != 1
24 then
25     test_expect_success 'skipping git-svn tests, svn not found' :
26     test_done
27     exit
28 fi
30 svnrepo=$PWD/svnrepo
32 set -e
34 if svnadmin create --help | grep fs-type >/dev/null
35 then
36         svnadmin create --fs-type fsfs "$svnrepo"
37 else
38         svnadmin create "$svnrepo"
39 fi
41 svnrepo="file://$svnrepo/test-git-svn"