(CommandList
  children: [
    (C {(.)} {(./test-lib.sh)})
    (C {(unset)} {(CVS_SERVER)})
    (If
      arms: [
        (if_arm
          cond: [
            (Pipeline
              children: [
                (SimpleCommand
                  words: [{(type)} {(cvs)}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(/dev/null)}
                      spids: [22]
                    )
                    (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[25])
                  ]
                )
              ]
              negated: True
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:skip_all)
                  op: Equal
                  rhs: {(SQ <'skipping cvsimport tests, cvs not found'>)}
                  spids: [31]
                )
              ]
              spids: [31]
            )
            (C {(test_done)})
          ]
          spids: [16777215 28]
        )
      ]
      spids: [16777215 39]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:CVS) op:Equal rhs:{(DQ ('cvs -f'))} spids:[42])]
      spids: [42]
    )
    (C {(export)} {(CVS)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:cvsps_version)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (SimpleCommand
                            words: [{(cvsps)} {(-h)}]
                            redirects: [(Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[58])]
                          )
                          (C {(sed)} {(-ne)} {(SQ <'s/cvsps version //p'>)})
                        ]
                        negated: False
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [53 70]
              )
            }
          spids: [52]
        )
      ]
      spids: [52]
    )
    (Case
      to_match: {(DQ ($ VSub_Name '$cvsps_version'))}
      arms: [
        (case_arm pat_list:[{(2.1)} {(2.2) (Lit_Other '*')}] spids:[80 86 89 16777215])
        (case_arm
          pat_list: [{(SQ )}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:skip_all)
                  op: Equal
                  rhs: {(SQ <'skipping cvsimport tests, cvsps not found'>)}
                  spids: [96]
                )
              ]
              spids: [96]
            )
            (C {(test_done)})
          ]
          spids: [16777215 93 105 16777215]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:skip_all)
                  op: Equal
                  rhs: {(SQ <'skipping cvsimport tests, unsupported cvsps version'>)}
                  spids: [111]
                )
              ]
              spids: [111]
            )
            (C {(test_done)})
          ]
          spids: [107 108 120 16777215]
        )
      ]
      spids: [72 78 122]
    )
    (FuncDef
      name: setup_cvs_test_repository
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:CVSROOT)
                      op: Equal
                      rhs: 
                        {
                          (DQ 
                            (CommandSubPart
                              command_list: (CommandList children:[(C {(pwd)})])
                              left_token: <Left_CommandSub '$('>
                              spids: [135 137]
                            ) (/.cvsroot)
                          )
                        }
                      spids: [133]
                    )
                  ]
                  spids: [133]
                )
                (AndOr
                  children: [
                    (C {(cp)} {(-r)} 
                      {(DQ ($ VSub_Name '$TEST_DIRECTORY') (/) ($ VSub_Number '$1') (/cvsroot))} {(DQ ($ VSub_Name '$CVSROOT'))}
                    )
                    (C {(export)} {(CVSROOT)})
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [130]
        )
      spids: [125 129]
    )
    (FuncDef
      name: test_cvs_co
      body: 
        (BraceGroup
          children: [
            (C {(rm)} {(-rf)} {(module-cvs-) (DQ ($ VSub_Number '$1'))})
            (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 208]
                )
              ]
              else_action: [
                (C {($ VSub_Name '$CVS')} {(co)} {(-P)} {(-d)} {(module-cvs-) (DQ ($ VSub_Number '$1'))} 
                  {(-r)} {(DQ ($ VSub_Number '$1'))} {(module)}
                )
              ]
              spids: [229 254]
            )
          ]
          spids: [174]
        )
      spids: [169 173]
    )
    (FuncDef
      name: test_git_co
      body: 
        (BraceGroup
          children: [
            (Subshell
              child: 
                (AndOr
                  children: [
                    (C {(cd)} {(module-git)})
                    (C {(git)} {(checkout)} {(DQ ($ VSub_Number '$1'))})
                  ]
                  op_id: Op_DAmp
                )
              spids: [271 285]
            )
          ]
          spids: [264]
        )
      spids: [259 263]
    )
    (FuncDef
      name: test_cmp_branch_file
      body: 
        (BraceGroup
          children: [
            (C {(test_cmp)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (/) (DQ ($ VSub_Number '$2'))} 
              {(module-git/) (DQ ($ VSub_Number '$2'))}
            )
          ]
          spids: [295]
        )
      spids: [290 294]
    )
    (FuncDef
      name: test_cmp_branch_tree
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (C {(test_cvs_co)} {(DQ ($ VSub_Number '$1'))})
                (AndOr
                  children: [
                    (C {(test_git_co)} {(DQ ($ VSub_Number '$1'))})
                    (AndOr
                      children: [
                        (Pipeline
                          children: [
                            (Subshell
                              child: 
                                (CommandList
                                  children: [
                                    (C {(cd)} {(module-cvs-) (DQ ($ VSub_Number '$1'))})
                                    (C {(find)} {(.)} {(-type)} {(d)} {(-name)} {(CVS)} {(-prune)} {(-o)} 
                                      {(-type)} {(f)} {(-print)}
                                    )
                                  ]
                                )
                              spids: [364 398]
                            )
                            (SimpleCommand
                              words: [{(sort)}]
                              redirects: [
                                (Redir
                                  op_id: Redir_Great
                                  fd: 16777215
                                  arg_word: {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)}
                                  spids: [404]
                                )
                              ]
                            )
                          ]
                          negated: False
                        )
                        (AndOr
                          children: [
                            (Pipeline
                              children: [
                                (Subshell
                                  child: 
                                    (CommandList
                                      children: [
                                        (C {(cd)} {(module-git)})
                                        (C {(find)} {(.)} {(-type)} {(d)} {(-name)} {(.git)} {(-prune)} 
                                          {(-o)} {(-type)} {(f)} {(-print)}
                                        )
                                      ]
                                    )
                                  spids: [414 445]
                                )
                                (SimpleCommand
                                  words: [{(sort)}]
                                  redirects: [
                                    (Redir
                                      op_id: Redir_Great
                                      fd: 16777215
                                      arg_word: {(module-git-) (DQ ($ VSub_Number '$1')) (.list)}
                                      spids: [451]
                                    )
                                  ]
                                )
                              ]
                              negated: False
                            )
                            (AndOr
                              children: [
                                (C {(test_cmp)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)} 
                                  {(module-git-) (DQ ($ VSub_Number '$1')) (.list)}
                                )
                                (Pipeline
                                  children: [
                                    (C {(cat)} {(module-cvs-) (DQ ($ VSub_Number '$1')) (.list)})
                                    (While
                                      cond: [(C {(read)} {(f)})]
                                      body: 
                                        (DoGroup
                                          children: [
                                            (AndOr
                                              children: [
                                                (C {(test_cmp_branch_file)} {(DQ ($ VSub_Number '$1'))} 
                                                  {(DQ ($ VSub_Name '$f'))}
                                                )
                                                (ControlFlow
                                                  token: <ControlFlow_Return return>
                                                  arg_word: {(1)}
                                                )
                                              ]
                                              op_id: Op_DPipe
                                            )
                                          ]
                                          spids: [495 515]
                                        )
                                    )
                                  ]
                                  negated: False
                                )
                              ]
                              op_id: Op_DAmp
                            )
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
              op_id: Op_DAmp
            )
          ]
          spids: [330]
        )
      spids: [325 329]
    )
  ]
)