X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Flib-git-svn.sh;h=67c431d4ebbb32fe8d88a83104485b38d746fa62;hb=df5e12f7d405b84de07c3f2dc1afe51b1d594e2c;hp=c526eedd622558275b48fee35fb8382b2c815b9b;hpb=a15a435ad394548fb6d22fa69f9a0e6db9752298;p=git.git diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh index c526eedd6..67c431d4e 100644 --- a/t/lib-git-svn.sh +++ b/t/lib-git-svn.sh @@ -138,3 +138,20 @@ close $wr or die $!; close $rd or die $!; EOF } + +require_svnserve () { + if test -z "$SVNSERVE_PORT" + then + say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)' + test_done + exit + fi +} + +start_svnserve () { + svnserve --listen-port $SVNSERVE_PORT \ + --root "$rawsvnrepo" \ + --listen-once \ + --listen-host 127.0.0.1 & +} +