(command.CommandList children: [ (C {(.)} {(./test-lib.sh)}) (C {(unset)} {(CVS_SERVER)}) (command.If arms: [ (if_arm cond: [ (command.Pipeline children: [ (command.SimpleCommand words: [{(type)} {(cvs)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(/dev/null)} ) (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)}) ] ) ] negated: T ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:skip_all spids:[39]) op: Equal rhs: {(SQ <'skipping cvsimport tests, cvs not found'>)} spids: [39] ) ] spids: [39] ) (C {(test_done)}) ] spids: [16777215 36] ) ] spids: [16777215 47] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CVS spids:[50]) op: Equal rhs: {(DQ ('cvs -f'))} spids: [50] ) ] spids: [50] ) (C {(export)} {(CVS)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cvsps_version spids:[60]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [{(cvsps)} {(-h)}] redirects: [(redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})] ) (C {(sed)} {(-ne)} {(SQ <'s/cvsps version //p'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [61 78] ) } spids: [60] ) ] spids: [60] ) (command.Case to_match: {(DQ ($ VSub_Name '$cvsps_version'))} arms: [ (case_arm pat_list:[{(2.1)} {(2.2) (Lit_Other '*')}] spids:[88 94 97 16777215]) (case_arm pat_list: [{(SQ )}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:skip_all spids:[104]) op: Equal rhs: {(SQ <'skipping cvsimport tests, cvsps not found'>)} spids: [104] ) ] spids: [104] ) (C {(test_done)}) ] spids: [99 101 113 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:skip_all spids:[119]) op: Equal rhs: {(SQ <'skipping cvsimport tests, unsupported cvsps version'>)} spids: [119] ) ] spids: [119] ) (C {(test_done)}) ] spids: [115 116 128 16777215] ) ] spids: [80 86 130] ) (command.FuncDef name: setup_cvs_test_repository body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp Op_DAmp] children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CVSROOT spids:[141]) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(pwd)})]) left_token: <Left_CommandSub '$('> spids: [143 145] ) (/.cvsroot) ) } spids: [141] ) ] spids: [141] ) (C {(cp)} {(-r)} {(DQ ($ VSub_Name '$TEST_DIRECTORY') (/) ($ VSub_Number '$1') (/cvsroot))} {(DQ ($ VSub_Name '$CVSROOT'))} ) (C {(export)} {(CVSROOT)}) ] ) ] spids: [138] ) spids: [133 137] ) (command.FuncDef name: test_cvs_co body: (command.BraceGroup children: [ (C {(rm)} {(-rf)} {(module-cvs-) (DQ ($ VSub_Number '$1'))}) (command.If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Number '$1'))} {(Lit_Other '=')} {(DQ (master))} {(Lit_Other ']')} ) ] action: [ (C {($ VSub_Name '$CVS')} {(co)} {(-P)} {(-d)} {(module-cvs-) (DQ ($ VSub_Number '$1'))} {(-A)} {(module)} ) ] spids: [16777215 216] ) ] else_action: [ (C {($ VSub_Name '$CVS')} {(co)} {(-P)} {(-d)} {(module-cvs-) (DQ ($ VSub_Number '$1'))} {(-r)} {(DQ ($ VSub_Number '$1'))} {(module)} ) ] spids: [237 262] ) ] spids: [182] ) spids: [177 181] ) (command.FuncDef name: test_git_co body: (command.BraceGroup children: [ (command.Subshell child: (command.AndOr ops: [Op_DAmp] children: [ (C {(cd)} {(module-git)}) (C {(git)} {(checkout)} {(DQ ($ VSub_Number '$1'))}) ] ) spids: [279 293] ) ] spids: [272] ) spids: [267 271] ) (command.FuncDef name: test_cmp_branch_file body: (command.BraceGroup children: [ (C {(test_cmp)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (/) (DQ ($ VSub_Number '$2'))} {(module-git/) (DQ ($ VSub_Number '$2'))} ) ] spids: [303] ) spids: [298 302] ) (command.FuncDef name: test_cmp_branch_tree body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp] children: [ (C {(test_cvs_co)} {(DQ ($ VSub_Number '$1'))}) (C {(test_git_co)} {(DQ ($ VSub_Number '$1'))}) (command.Pipeline children: [ (command.Subshell child: (command.CommandList children: [ (C {(cd)} {(module-cvs-) (DQ ($ VSub_Number '$1'))}) (C {(find)} {(.)} {(-type)} {(d)} {(-name)} {(CVS)} {(-prune)} {(-o)} {(-type)} {(f)} {(-print)} ) ] ) spids: [372 406] ) (command.SimpleCommand words: [{(sort)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)} ) ] ) ] negated: F ) (command.Pipeline children: [ (command.Subshell child: (command.CommandList children: [ (C {(cd)} {(module-git)}) (C {(find)} {(.)} {(-type)} {(d)} {(-name)} {(.git)} {(-prune)} {(-o)} {(-type)} {(f)} {(-print)} ) ] ) spids: [422 453] ) (command.SimpleCommand words: [{(sort)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(module-git-) (DQ ($ VSub_Number '$1')) (.list)} ) ] ) ] negated: F ) (C {(test_cmp)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)} {(module-git-) (DQ ($ VSub_Number '$1')) (.list)} ) (command.Pipeline children: [ (C {(cat)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)}) (command.WhileUntil keyword: <KW_While while> cond: [(C {(read)} {(f)})] body: (command.DoGroup children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(test_cmp_branch_file)} {(DQ ($ VSub_Number '$1'))} {(DQ ($ VSub_Name '$f'))} ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) ] spids: [503 523] ) ) ] negated: F ) ] ) ] spids: [338] ) spids: [333 337] ) ] )