| if test -n "$NO_SVN_TESTS" |
| test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' : |
| perl -e 'use SVN::Core; $SVN::Core::VERSION gt "1.1.0" or die' >/dev/null 2>&1 |
| test_expect_success 'Perl SVN libraries not found, skipping test' : |
| GIT_SVN_DIR=$GIT_DIR/svn/git-svn |
| SVN_TREE=$GIT_SVN_DIR/svn-tree |
| test_expect_success 'skipping git-svn tests, svnadmin not found' : |
| test_expect_success 'skipping git-svn tests, svn not found' : |
| if svnadmin create --help | grep fs-type >/dev/null |
| svnadmin create --fs-type fsfs "$svnrepo" |
| svnadmin create "$svnrepo" |
| svnrepo="file://$svnrepo" |