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