X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5705-clone-2gb.sh;h=e9783c341a97afdd58aa2adddc8c6db4adb54bee;hb=53b742522c3ae56726e679b50feede849ec46362;hp=adfaae8c5b453835eeeac3e3794950971e6dd6d8;hpb=80b5b6985510406dfb4016cada8013832078930c;p=git.git diff --git a/t/t5705-clone-2gb.sh b/t/t5705-clone-2gb.sh index adfaae8c5..e9783c341 100755 --- a/t/t5705-clone-2gb.sh +++ b/t/t5705-clone-2gb.sh @@ -3,16 +3,18 @@ test_description='Test cloning a repository larger than 2 gigabyte' . ./test-lib.sh -test -z "$GIT_TEST_CLONE_2GB" && -say "Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t" && -test_done && -exit +if test -z "$GIT_TEST_CLONE_2GB" +then + say 'Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t' +else + test_set_prereq CLONE_2GB +fi -test_expect_success 'setup' ' +test_expect_success CLONE_2GB 'setup' ' git config pack.compression 0 && git config pack.depth 0 && - blobsize=$((20*1024*1024)) && + blobsize=$((100*1024*1024)) && blobcount=$((2*1024*1024*1024/$blobsize+1)) && i=1 && (while test $i -le $blobcount @@ -36,9 +38,15 @@ test_expect_success 'setup' ' ' -test_expect_success 'clone' ' +test_expect_success CLONE_2GB 'clone - bare' ' - git clone --bare --no-hardlinks . clone + git clone --bare --no-hardlinks . clone-bare + +' + +test_expect_success CLONE_2GB 'clone - with worktree, file:// protocol' ' + + git clone file://. clone-wt '