(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:this_script)
          op: assign_op.Equal
          rhs: {<test-get-sourceline.sh>}
          spids: [6]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:abs_top_srcdir)
          op: assign_op.Equal
          rhs: {<'/src/external-vcs/sourceforge/bashdb'>}
          spids: [10]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:abs_top_srcdir)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Name abs_top_srcdir>
                suffix_op: (suffix_op.Unary tok:<Id.VOp1_DPercent '%%'> arg_word:{<Id.Lit_Slash '/'>})
              ) <'/'>
            }
          spids: [16]
        )
      ]
    )
    (command.ShFunction
      name: test_get_source_line
      body: 
        (BraceGroup
          children: [
            (C {<_Dbg_get_source_line>} {<2>} {($ Id.VSub_DollarName '$this_script')})
            (C {<assertEquals>} {(SQ <'# -*- shell-script -*-'>)} 
              {(DQ ($ Id.VSub_DollarName '$_Dbg_source_line'))}
            )
          ]
        )
    )
    (command.ShFunction
      name: test_get_source_line_with_spaces
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:_Dbg_frame_last_filename)
                  op: assign_op.Equal
                  rhs: {(DQ (${ Id.VSub_Name abs_top_srcdir) <'test/example/dir with spaces/bug.sh'>)}
                  spids: [68]
                )
              ]
            )
            (C {<_Dbg_frame_file>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DAmp]
                              children: [
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Unary
                                      op_id: Id.BoolUnary_f
                                      child: {($ Id.VSub_DollarName '$_Dbg_frame_filename')}
                                    )
                                )
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_EqualTilde
                                      left: {($ Id.VSub_DollarName '$_Dbg_frame_filename')}
                                      right: {(SQ <frame.sh>)}
                                    )
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_get_source_line>} {<2>})
                    (C {<assertEquals>} {(SQ <'x=1'>)} {(DQ ($ Id.VSub_DollarName '$_Dbg_source_line'))})
                  ]
                  spids: [88 114]
                )
              ]
              else_action: [
                (C {<startSkipping>})
                (C {<echo>} {(DQ <'Skipping test due to autoconf problems'>)})
                (C {<assertEquals>} {(SQ <skipped>)} {(SQ <skipped>)})
                (C {<endSkipping>})
              ]
            )
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(SQ <'/src/external-vcs/sourceforge/bashdb'>)} 
                      {<Id.Lit_Equals '='>} {(SQ )} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'Something is wrong abs_top_srcdir is not set.'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [165 182]
        )
      ]
    )
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'test/unit/helper.sh'>})
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'init/pre.sh'>})
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'lib/filecache.sh'>})
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'lib/file.sh'>})
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'lib/frame.sh'>})
    (C {<.>} {(${ Id.VSub_Name abs_top_srcdir) <'lib/msg.sh'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:_Dbg_set_highlight)
          op: assign_op.Equal
          rhs: {(SQ )}
          spids: [241]
        )
      ]
    )
    (C {<set>} {<-->})
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.DBracket
          expr: 
            (bool_expr.Binary
              op_id: Id.BoolBinary_GlobDEqual
              left: {($ Id.VSub_Number '$0')}
              right: {(${ Id.VSub_Name BASH_SOURCE)}
            )
        )
        (C {<.>} {(${ Id.VSub_Name shunit_file)})
      ]
    )
  ]
)