]> git.ipfire.org Git - thirdparty/git.git/blame - t/lib-git-svn.sh
i18n: do not leak 'encoding' header even when we cheat the conversion.
[thirdparty/git.git] / t / lib-git-svn.sh
CommitLineData
60d02ccc
EW
1. ./test-lib.sh
2
3if test -n "$NO_SVN_TESTS"
36f5b1f0 4then
60d02ccc
EW
5 test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' :
6 test_done
7 exit
36f5b1f0
EW
8fi
9
b9c85187 10perl -e 'use SVN::Core; $SVN::Core::VERSION gt "1.1.0" or die' >/dev/null 2>&1
4b832e81
JH
11if test $? -ne 0
12then
b9c85187
EW
13 test_expect_success 'Perl SVN libraries not found, skipping test' :
14 test_done
15 exit
4b832e81
JH
16fi
17
b9c85187
EW
18GIT_DIR=$PWD/.git
19GIT_SVN_DIR=$GIT_DIR/svn/git-svn
20SVN_TREE=$GIT_SVN_DIR/svn-tree
21
36f5b1f0 22svnadmin >/dev/null 2>&1
4b832e81 23if test $? -ne 1
36f5b1f0 24then
60d02ccc 25 test_expect_success 'skipping git-svn tests, svnadmin not found' :
36f5b1f0
EW
26 test_done
27 exit
28fi
29
30svn >/dev/null 2>&1
4b832e81 31if test $? -ne 1
36f5b1f0 32then
60d02ccc 33 test_expect_success 'skipping git-svn tests, svn not found' :
36f5b1f0
EW
34 test_done
35 exit
36fi
37
38svnrepo=$PWD/svnrepo
39
40set -e
41
dc62e25c
EW
42if svnadmin create --help | grep fs-type >/dev/null
43then
44 svnadmin create --fs-type fsfs "$svnrepo"
45else
46 svnadmin create "$svnrepo"
47fi
48
e1516119 49svnrepo="file://$svnrepo"
36f5b1f0
EW
50
51