(command.CommandList
  children: [
    (C {<echo>} {(DQ <'Testing reactjs @JSX ppx...'>)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'testPath='> name:testPath)
          op: assign_op.Equal
          rhs: {(DQ <'miscTests/reactjs_jsx_ppx_tests'>)}
          spids: [7]
        )
      ]
      redirects: []
    )
    (command.ForEach
      iter_names: [i]
      iterable: (for_iter.Words words:[{<1>} {<2>} {<3>} {<4>} {<5>}])
      body: 
        (command.DoGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test='> name:test)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName testPath) <'/test'> ($ Id.VSub_DollarName i) <.re>)}
                  spids: [32]
                )
              ]
              redirects: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'expected='> name:expected)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (C {<cat>} 
                            {($ Id.VSub_DollarName testPath) <'/expected'> ($ Id.VSub_DollarName i) 
                              <.txt>
                            }
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [42]
                )
              ]
              redirects: []
            )
            (command.Pipeline
              children: [
                (command.Simple
                  words: [
                    {<ocamlc>}
                    {<-dsource>}
                    {<-ppx>}
                    {<'./reactjs_jsx_ppx.native'>}
                    {<-pp>}
                    {<'./refmt_impl.native'>}
                    {<-impl>}
                    {($ Id.VSub_DollarName test)}
                  ]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  more_env: []
                  do_fork: T
                )
                (C {<sed>} {(SQ <'$ d'>)})
                (command.Simple
                  words: [{<sed>} {(SQ <'$ d'>)}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {($ Id.VSub_DollarName testPath) <'/actual'> (${ Id.VSub_Name i) <.txt>}
                    )
                  ]
                  more_env: []
                  do_fork: T
                )
              ]
              negated: F
              stderr_indices: []
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'actual='> name:actual)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (C {<cat>} 
                            {($ Id.VSub_DollarName testPath) <'/actual'> ($ Id.VSub_DollarName i) 
                              <.txt>
                            }
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [111]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobEqual
                                  left: {(DQ ($ Id.VSub_DollarName expected))}
                                  right: {(DQ ($ Id.VSub_DollarName actual))}
                                )
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<echo>} {(DQ <OK>)})]
                  spids: [125 142]
                )
              ]
              else_action: [
                (C {<echo>} {(DQ <Wrong>)})
                (C {<diff>} {<-u>} 
                  {($ Id.VSub_DollarName testPath) <'/expected'> ($ Id.VSub_DollarName i) <.txt>} {($ Id.VSub_DollarName testPath) <'/actual'> ($ Id.VSub_DollarName i) <.txt>}
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
              redirects: []
            )
          ]
        )
      redirects: []
    )
  ]
)