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