450fee89973af5fa660b43202e8945b55e01cf6f
   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
  10GIT_DIR=$PWD/.git
  11GIT_SVN_DIR=$GIT_DIR/svn/git-svn
  12SVN_TREE=$GIT_SVN_DIR/svn-tree
  13
  14svnadmin >/dev/null 2>&1
  15if test $? != 1
  16then
  17    test_expect_success 'skipping git-svn tests, svnadmin not found' :
  18    test_done
  19    exit
  20fi
  21
  22svn >/dev/null 2>&1
  23if test $? != 1
  24then
  25    test_expect_success 'skipping git-svn tests, svn not found' :
  26    test_done
  27    exit
  28fi
  29
  30svnrepo=$PWD/svnrepo
  31
  32set -e
  33
  34if svnadmin create --help | grep fs-type >/dev/null
  35then
  36        svnadmin create --fs-type fsfs "$svnrepo"
  37else
  38        svnadmin create "$svnrepo"
  39fi
  40
  41svnrepo="file://$svnrepo/test-git-svn"
  42
  43