mirror of
https://github.com/git/git.git
synced 2024-11-28 12:34:08 +08:00
a8a5d25118
This allows us to use common test infrastructure and parallelize the tests. For now, GIT_SVN_TEST_HTTPD=true needs to be set to enable the SVN HTTP tests because we reuse the same test cases for both file:// and http:// SVN repositories. SVN_HTTPD_PORT is no longer honored. Tested under Apache 2.2 and 2.4 on Debian 7.x (wheezy) and 8.x (jessie), respectively. Cc: Clemens Buchacher <drizzd@aon.at> Cc: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
32 lines
651 B
Bash
Executable File
32 lines
651 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2009 Eric Wong
|
|
#
|
|
|
|
test_description='git svn shallow clone'
|
|
. ./lib-git-svn.sh
|
|
|
|
test_expect_success 'setup test repository' '
|
|
svn_cmd mkdir -m "create standard layout" \
|
|
"$svnrepo"/trunk "$svnrepo"/branches "$svnrepo"/tags &&
|
|
svn_cmd cp -m "branch off trunk" \
|
|
"$svnrepo"/trunk "$svnrepo"/branches/a &&
|
|
svn_cmd co "$svnrepo"/branches/a &&
|
|
(
|
|
cd a &&
|
|
> foo &&
|
|
svn_cmd add foo &&
|
|
svn_cmd commit -m "add foo"
|
|
) &&
|
|
maybe_start_httpd
|
|
'
|
|
|
|
test_expect_success 'clone trunk with "-r HEAD"' '
|
|
git svn clone -r HEAD "$svnrepo/trunk" g &&
|
|
( cd g && git rev-parse --symbolic --verify HEAD )
|
|
'
|
|
|
|
stop_httpd
|
|
|
|
test_done
|