(command.CommandList children: [ (command.ShAssignment left: <Id.Lit_VarLike 'test_description='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'test_description='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: {(SQ <'Test cloning a repository larger than 2 gigabyte'>)} ) ] redirects: [] ) (command.Simple blame_tok: <.> more_env: [] words: [{<.>} {<'./test-lib.sh'>}] redirects: [] do_fork: T ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <test> more_env: [] words: [{<test>} {<-z>} {(DQ ($ Id.VSub_DollarName GIT_TEST_CLONE_2GB))}] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <say> more_env: [] words: [ {<say>} {(SQ <'Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t'>)} ] redirects: [] do_fork: T ) ] spids: [14 24] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <test_set_prereq> more_env: [] words: [{<test_set_prereq>} {<CLONE_2GB>}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <test_expect_success> more_env: [] words: [ {<test_expect_success>} {<CLONE_2GB>} {(SQ <setup>)} { (SQ <'\n'> <'\n'> <'\tgit config pack.compression 0 &&\n'> <'\tgit config pack.depth 0 &&\n'> <'\tblobsize=$((100*1024*1024)) &&\n'> <'\tblobcount=$((2*1024*1024*1024/$blobsize+1)) &&\n'> <'\ti=1 &&\n'> <'\t(while test $i -le $blobcount\n'> <'\t do\n'> <'\t\tprintf "Generating blob $i/$blobcount\\r" >&2 &&\n'> <'\t\tprintf "blob\\nmark :$i\\ndata $blobsize\\n" &&\n'> <'\t\t#test-genrandom $i $blobsize &&\n'> <'\t\tprintf "%-${blobsize}s" $i &&\n'> <'\t\techo "M 100644 :$i $i" >> commit\n'> <'\t\ti=$(($i+1)) ||\n'> <'\t\techo $? > exit-status\n'> <'\t done &&\n'> <'\t echo "commit refs/heads/master" &&\n'> <'\t echo "author A U Thor <author@email.com> 123456789 +0000" &&\n'> <'\t echo "committer C O Mitter <committer@email.com> 123456789 +0000" &&\n'> <'\t echo "data 5" &&\n'> <'\t echo ">2gb" &&\n'> <'\t cat commit) |\n'> <'\tgit fast-import --big-file-threshold=2 &&\n'> <'\ttest ! -f exit-status\n'> <'\n'> ) } ] redirects: [] do_fork: T ) (command.Simple blame_tok: <test_expect_success> more_env: [] words: [ {<test_expect_success>} {<CLONE_2GB>} {(SQ <'clone - bare'>)} {(SQ <'\n'> <'\n'> <'\tgit clone --bare --no-hardlinks . clone-bare\n'> <'\n'>)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <test_expect_success> more_env: [] words: [ {<test_expect_success>} {<CLONE_2GB>} {(SQ <'clone - with worktree, file:// protocol'>)} {(SQ <'\n'> <'\n'> <'\tgit clone "file://$(pwd)" clone-wt\n'> <'\n'>)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <test_done> more_env: [] words: [{<test_done>}] redirects: [] do_fork: T ) ] )