X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Flib-git-svn.sh;h=67c431d4ebbb32fe8d88a83104485b38d746fa62;hb=aebd173ffa7a4e67447f0157a14abde7767c54e9;hp=c526eedd622558275b48fee35fb8382b2c815b9b;hpb=ddf41044322825844b54a922dec2775ff6d61926;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 & +} +