| if test -n "$NO_SVN_TESTS" |
| test_expect_success 'skipping git-svn tests, NO_SVN_TESTS defined' : |
| GIT_SVN_DIR=$GIT_DIR/svn/git-svn |
| SVN_TREE=$GIT_SVN_DIR/svn-tree |
| perl -e 'use SVN::Core' >/dev/null 2>&1 |
| echo 'Perl SVN libraries not found, tests requiring those will be skipped' |
| 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/test-git-svn" |