| 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 |
| test_expect_success 'skipping git-svn tests, svn not found' : |
| \$SVN::Core::VERSION gt '1.1.0' or exit(42); |
| system(qw/svnadmin create --fs-type fsfs/, '$svnrepo') == 0 or exit(41); |
| err='Perl SVN libraries must be >= 1.1.0' |
| elif test $x -eq 41; then |
| err='svnadmin failed to create fsfs repository' |
| err='Perl SVN libraries not found or unusable, skipping test' |
| test_expect_success "$err" : |
| svnrepo="file://$svnrepo" |