(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: 
            {
              (SQ (Token id:Id.Lit_Chars val:'Test the very basics part #1.\n' span_id:15) 
                (Token id:Id.Lit_Chars val:'\n' span_id:16) 
                (Token
                  id: Id.Lit_Chars
                  val: 'The rest of the test suite does not check the basic operation of git\n'
                  span_id: 17
                ) 
                (Token
                  id: Id.Lit_Chars
                  val: 'plumbing commands to work very carefully.  Their job is to concentrate\n'
                  span_id: 18
                ) 
                (Token
                  id: Id.Lit_Chars
                  val: 'on tricky features that caused bugs in the past to detect regression.\n'
                  span_id: 19
                ) (Token id:Id.Lit_Chars val:'\n' span_id:20) 
                (Token
                  id: Id.Lit_Chars
                  val: 'This test runs very basic features, like registering things in cache,\n'
                  span_id: 21
                ) (Token id:Id.Lit_Chars val:'writing tree, etc.\n' span_id:22) 
                (Token id:Id.Lit_Chars val:'\n' span_id:23) 
                (Token
                  id: Id.Lit_Chars
                  val: 'Note that this test *deliberately* hard-codes many expected object\n'
                  span_id: 24
                ) 
                (Token
                  id: Id.Lit_Chars
                  val: 'IDs.  When object ID computation changes, like in the previous case of\n'
                  span_id: 25
                ) 
                (Token
                  id: Id.Lit_Chars
                  val: 'swapping compression and hashing order, the person who is making the\n'
                  span_id: 26
                ) 
                (Token
                  id: Id.Lit_Chars
                  val: 'modification *should* take notice and update the test vectors here.\n'
                  span_id: 27
                )
              )
            }
          spids: [13]
        )
      ]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: '.git/objects should be empty after git init in an empty repo'
            span_id: 49
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:53) 
          (Token
            id: Id.Lit_Chars
            val: '\tfind .git/objects -type f -print >should-be-empty &&\n'
            span_id: 54
          ) (Token id:Id.Lit_Chars val:'\ttest_line_count = 0 should-be-empty\n' span_id:55)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'.git/objects should have 3 subdirectories' span_id:68))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:72) 
          (Token
            id: Id.Lit_Chars
            val: '\tfind .git/objects -type d -print >full-of-directories &&\n'
            span_id: 73
          ) (Token id:Id.Lit_Chars val:'\ttest_line_count = 3 full-of-directories\n' span_id:74)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'success is reported like this' span_id:87))} {(SQ (Token id:Id.Lit_Chars val:'\n' span_id:91) (Token id:Id.Lit_Chars val:'\t:\n' span_id:92))}
    )
    (command.ShFunction
      name: _run_sub_test_lib_test_common
      body: 
        (command.BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:neg)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [104]
                )
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$2'))}
                  spids: [109]
                )
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:descr)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$3'))}
                  spids: [114]
                )
              ]
            )
            (C {(shift)} {(3)})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {(mkdir)} {(DQ ($ Id.VSub_DollarName '$name'))})
                (command.Subshell
                  command_list: 
                    (command.CommandList
                      children: [
                        (command.AndOr
                          ops: [
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                            Id.Op_DAmp
                          ]
                          children: [
                            (C {(sane_unset)} {(HARNESS_ACTIVE)})
                            (C {(cd)} {(DQ ($ Id.VSub_DollarName '$name'))})
                            (command.Simple
                              words: [{(cat)}]
                              redirects: [
                                (redir.Redir
                                  op: (Token id:Id.Redir_Great val:'>' span_id:174)
                                  fd: -1
                                  arg_word: {(DQ ($ Id.VSub_DollarName '$name') (.sh))}
                                )
                                (redir.HereDoc
                                  op: (Token id:Id.Redir_DLessDash val:'<<-' span_id:180)
                                  fd: -1
                                  here_begin: {(EOF)}
                                  here_end_span_id: 205
                                  stdin_parts: [
                                    ('#!')
                                    ($ Id.VSub_DollarName '$SHELL_PATH')
                                    ('\n')
                                    ('\n')
                                    ("test_description='")
                                    ($ Id.VSub_DollarName '$descr')
                                    (' (run in sub test-lib)\n')
                                    ('\n')
                                    (
'This is run in a sub test-lib so that we do not get incorrect\n'
                                    )
                                    ('passing metrics\n')
                                    ("'\n")
                                    ('\n')
                                    ("# Point to the t/test-lib.sh, which isn't in ../ as usual\n")
                                    ('. ')
                                    (Id.Right_DoubleQuote '"')
                                    (word_part.EscapedLiteral
                                      token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:200)
                                    )
                                    (TEST_DIRECTORY)
                                    (Id.Right_DoubleQuote '"')
                                    ('/test-lib.sh\n')
                                  ]
                                )
                              ]
                            )
                            (command.Simple
                              words: [{(cat)}]
                              redirects: [
                                (redir.Redir
                                  op: (Token id:Id.Redir_DGreat val:'>>' span_id:209)
                                  fd: -1
                                  arg_word: {(DQ ($ Id.VSub_DollarName '$name') (.sh))}
                                )
                              ]
                            )
                            (C {(chmod)} {(Id.Lit_Other '+') (x)} 
                              {(DQ ($ Id.VSub_DollarName '$name') (.sh))}
                            )
                            (C {(export)} {(TEST_DIRECTORY)})
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:TEST_OUTPUT_DIRECTORY)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: 
                                          (Token
                                            id: Id.Left_DollarParen
                                            val: '$('
                                            span_id: 239
                                          )
                                        command_list: (command.CommandList children:[(C {(pwd)})])
                                      )
                                    }
                                  spids: [238]
                                )
                              ]
                            )
                            (C {(export)} {(TEST_OUTPUT_DIRECTORY)})
                            (command.If
                              arms: [
                                (if_arm
                                  cond: [(C {(test)} {(-z)} {(DQ ($ Id.VSub_DollarName '$neg'))})]
                                  action: [
                                    (command.Simple
                                      words: [
                                        {(./) (DQ ($ Id.VSub_DollarName '$name') (.sh))}
                                        {(DQ ($ Id.VSub_At '$@'))}
                                      ]
                                      redirects: [
                                        (redir.Redir
                                          op: (Token id:Id.Redir_Great val:'>' span_id:277)
                                          fd: -1
                                          arg_word: {(out)}
                                        )
                                        (redir.Redir
                                          op: (Token id:Id.Redir_Great val:'2>' span_id:280)
                                          fd: 2
                                          arg_word: {(err)}
                                        )
                                      ]
                                    )
                                  ]
                                  spids: [253 264]
                                )
                              ]
                              else_action: [
                                (command.Pipeline
                                  children: [
                                    (command.Simple
                                      words: [
                                        {(./) (DQ ($ Id.VSub_DollarName '$name') (.sh))}
                                        {(DQ ($ Id.VSub_At '$@'))}
                                      ]
                                      redirects: [
                                        (redir.Redir
                                          op: (Token id:Id.Redir_Great val:'>' span_id:299)
                                          fd: -1
                                          arg_word: {(out)}
                                        )
                                        (redir.Redir
                                          op: (Token id:Id.Redir_Great val:'2>' span_id:302)
                                          fd: 2
                                          arg_word: {(err)}
                                        )
                                      ]
                                    )
                                  ]
                                  negated: T
                                )
                              ]
                            )
                          ]
                        )
                      ]
                    )
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: run_sub_test_lib_test
      body: 
        (command.BraceGroup
          children: [(C {(_run_sub_test_lib_test_common)} {(SQ )} {(DQ ($ Id.VSub_At '$@'))})]
        )
    )
    (command.ShFunction
      name: run_sub_test_lib_test_err
      body: 
        (command.BraceGroup
          children: [
            (C {(_run_sub_test_lib_test_common)} {(SQ (Token id:Id.Lit_Chars val:'!' span_id:345))} 
              {(DQ ($ Id.VSub_At '$@'))}
            )
          ]
        )
    )
    (command.ShFunction
      name: check_sub_test_lib_test
      body: 
        (command.BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [363]
                )
              ]
            )
            (command.Subshell
              command_list: 
                (command.CommandList
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
                      children: [
                        (C {(cd)} {(DQ ($ Id.VSub_DollarName '$name'))})
                        (command.Pipeline
                          children: [(C {(test)} {(-s)} {(err)})]
                          negated: T
                        )
                        (command.Simple
                          words: [
                            {(sed)}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/^> //' span_id:400))}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/Z$//' span_id:406))}
                          ]
                          redirects: [
                            (redir.Redir
                              op: (Token id:Id.Redir_Great val:'>' span_id:409)
                              fd: -1
                              arg_word: {(expect)}
                            )
                          ]
                        )
                        (C {(test_cmp)} {(expect)} {(out)})
                      ]
                    )
                  ]
                )
            )
          ]
        )
    )
    (command.ShFunction
      name: check_sub_test_lib_test_err
      body: 
        (command.BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:name)
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_Number '$1'))}
                  spids: [435]
                )
              ]
            )
            (command.Subshell
              command_list: 
                (command.CommandList
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp Id.Op_DAmp]
                      children: [
                        (C {(cd)} {(DQ ($ Id.VSub_DollarName '$name'))})
                        (command.Simple
                          words: [
                            {(sed)}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/^> //' span_id:465))}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/Z$//' span_id:471))}
                          ]
                          redirects: [
                            (redir.Redir
                              op: (Token id:Id.Redir_Great val:'>' span_id:474)
                              fd: -1
                              arg_word: {(expect.out)}
                            )
                          ]
                        )
                        (C {(test_cmp)} {(expect.out)} {(out)})
                        (command.Simple
                          words: [
                            {(sed)}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/^> //' span_id:494))}
                            {(-e)}
                            {(SQ (Token id:Id.Lit_Chars val:'s/Z$//' span_id:500))}
                          ]
                          redirects: [
                            (redir.Redir
                              op: (Token id:Id.Redir_LessAnd val:'<&' span_id:503)
                              fd: -1
                              arg_word: {(3)}
                            )
                            (redir.Redir
                              op: (Token id:Id.Redir_Great val:'>' span_id:506)
                              fd: -1
                              arg_word: {(expect.err)}
                            )
                          ]
                        )
                        (C {(test_cmp)} {(expect.err)} {(err)})
                      ]
                    )
                  ]
                )
            )
          ]
        )
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'pretend we have a fully passing test suite' span_id:527))} 
      {
        (DQ ('\n') ("\trun_sub_test_lib_test full-pass '3 passing tests' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:533)
          ) ('EOF &&\n') ('\tfor i in 1 2 3\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:538)
          ) ('passing test #') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:540)) 
          (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:542)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test full-pass <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:548)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> # passed all 3 test(s)\n') ('\t> 1..3\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'pretend we have a partially passing test suite' span_id:562))} 
      {
        (DQ ('\n') ('\ttest_must_fail run_sub_test_lib_test ') 
          ("\t\tpartial-pass '2/3 tests passing' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:570)) ('EOF &&\n') 
          ("\ttest_expect_success 'passing test #1' 'true'\n") ("\ttest_expect_success 'failing test #2' 'false'\n") 
          ("\ttest_expect_success 'passing test #3' 'true'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test partial-pass <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:578)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> not ok 2 - failing test #2\n') ('\t#\tfalse\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> # failed 1 among 3 test(s)\n') ('\t> 1..3\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'pretend we have a known breakage' span_id:593))} 
      {
        (DQ ('\n') ("\trun_sub_test_lib_test failing-todo 'A failing TODO test' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:599)
          ) ('EOF &&\n') ("\ttest_expect_success 'passing test' 'true'\n") 
          ("\ttest_expect_failure 'pretend we have a known breakage' 'false'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test failing-todo <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:606)
          ) ('EOF\n') ('\t> ok 1 - passing test\n') 
          ('\t> not ok 2 - pretend we have a known breakage # TODO known breakage\n') ('\t> # still have 1 known breakage(s)\n') ('\t> # passed all remaining 1 test(s)\n') ('\t> 1..2\n') 
          ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'pretend we have fixed a known breakage' span_id:620))} 
      {
        (DQ ('\n') ("\trun_sub_test_lib_test passing-todo 'A passing TODO test' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:626)
          ) ('EOF &&\n') ("\ttest_expect_failure 'pretend we have fixed a known breakage' 'true'\n") 
          ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test passing-todo <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:632)
          ) ('EOF\n') ('\t> ok 1 - pretend we have fixed a known breakage # TODO known breakage vanished\n') 
          ('\t> # 1 known breakage(s) vanished; please update test(s)\n') ('\t> 1..1\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'pretend we have fixed one of two known breakages (run in sub test-lib)'
            span_id: 644
          )
        )
      } 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test partially-passing-todos ') 
          ("\t\t'2 TODO tests, one passing' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:652)) ('EOF &&\n') 
          ("\ttest_expect_failure 'pretend we have a known breakage' 'false'\n") ("\ttest_expect_success 'pretend we have a passing test' 'true'\n") 
          ("\ttest_expect_failure 'pretend we have fixed another known breakage' 'true'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test partially-passing-todos <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:660)
          ) ('EOF\n') ('\t> not ok 1 - pretend we have a known breakage # TODO known breakage\n') 
          ('\t> ok 2 - pretend we have a passing test\n') ('\t> ok 3 - pretend we have fixed another known breakage # TODO known breakage vanished\n') 
          ('\t> # 1 known breakage(s) vanished; please update test(s)\n') ('\t> # still have 1 known breakage(s)\n') ('\t> # passed all remaining 1 test(s)\n') ('\t> 1..3\n') 
          ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'pretend we have a pass, fail, and known breakage'
            span_id: 676
          )
        )
      } 
      {
        (DQ ('\n') ('\ttest_must_fail run_sub_test_lib_test ') 
          ("\t\tmixed-results1 'mixed results #1' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:684)) ('EOF &&\n') 
          ("\ttest_expect_success 'passing test' 'true'\n") ("\ttest_expect_success 'failing test' 'false'\n") 
          ("\ttest_expect_failure 'pretend we have a known breakage' 'false'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test mixed-results1 <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:692)
          ) ('EOF\n') ('\t> ok 1 - passing test\n') ('\t> not ok 2 - failing test\n') ('\t> #\tfalse\n') 
          ('\t> not ok 3 - pretend we have a known breakage # TODO known breakage\n') ('\t> # still have 1 known breakage(s)\n') ('\t> # failed 1 among remaining 2 test(s)\n') 
          ('\t> 1..3\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'pretend we have a mix of all possible results' span_id:708))} 
      {
        (DQ ('\n') ('\ttest_must_fail run_sub_test_lib_test ') 
          ("\t\tmixed-results2 'mixed results #2' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:716)) ('EOF &&\n') 
          ("\ttest_expect_success 'passing test' 'true'\n") ("\ttest_expect_success 'passing test' 'true'\n") ("\ttest_expect_success 'passing test' 'true'\n") 
          ("\ttest_expect_success 'passing test' 'true'\n") ("\ttest_expect_success 'failing test' 'false'\n") ("\ttest_expect_success 'failing test' 'false'\n") 
          ("\ttest_expect_success 'failing test' 'false'\n") ("\ttest_expect_failure 'pretend we have a known breakage' 'false'\n") 
          ("\ttest_expect_failure 'pretend we have a known breakage' 'false'\n") ("\ttest_expect_failure 'pretend we have fixed a known breakage' 'true'\n") ('\ttest_done\n') 
          ('\tEOF\n') ('\tcheck_sub_test_lib_test mixed-results2 <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:731)
          ) ('EOF\n') ('\t> ok 1 - passing test\n') ('\t> ok 2 - passing test\n') ('\t> ok 3 - passing test\n') 
          ('\t> ok 4 - passing test\n') ('\t> not ok 5 - failing test\n') ('\t> #\tfalse\n') ('\t> not ok 6 - failing test\n') 
          ('\t> #\tfalse\n') ('\t> not ok 7 - failing test\n') ('\t> #\tfalse\n') 
          ('\t> not ok 8 - pretend we have a known breakage # TODO known breakage\n') ('\t> not ok 9 - pretend we have a known breakage # TODO known breakage\n') 
          ('\t> ok 10 - pretend we have fixed a known breakage # TODO known breakage vanished\n') ('\t> # 1 known breakage(s) vanished; please update test(s)\n') 
          ('\t> # still have 2 known breakage(s)\n') ('\t> # failed 3 among remaining 7 test(s)\n') ('\t> 1..10\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'test --verbose' span_id:757))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:761) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_must_fail run_sub_test_lib_test \\\n'
            span_id: 762
          ) (Token id:Id.Lit_Chars val:'\t\ttest-verbose "test verbose" --verbose <<-\\EOF &&\n' span_id:763) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_expect_success "passing test" true\n'
            span_id: 764
          ) (Token id:Id.Lit_Chars val:'\ttest_expect_success "test with output" "echo foo"\n' span_id:765) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_expect_success "failing test" false\n'
            span_id: 766
          ) (Token id:Id.Lit_Chars val:'\ttest_done\n' span_id:767) 
          (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:768) (Token id:Id.Lit_Chars val:'\tmv test-verbose/out test-verbose/out+ &&\n' span_id:769) 
          (Token
            id: Id.Lit_Chars
            val: '\tgrep -v "^Initialized empty" test-verbose/out+ >test-verbose/out &&\n'
            span_id: 770
          ) (Token id:Id.Lit_Chars val:'\tcheck_sub_test_lib_test test-verbose <<-\\EOF\n' span_id:771) 
          (Token id:Id.Lit_Chars val:'\t> expecting success: true\n' span_id:772) (Token id:Id.Lit_Chars val:'\t> ok 1 - passing test\n' span_id:773) 
          (Token id:Id.Lit_Chars val:'\t> Z\n' span_id:774) (Token id:Id.Lit_Chars val:'\t> expecting success: echo foo\n' span_id:775) 
          (Token id:Id.Lit_Chars val:'\t> foo\n' span_id:776) (Token id:Id.Lit_Chars val:'\t> ok 2 - test with output\n' span_id:777) 
          (Token id:Id.Lit_Chars val:'\t> Z\n' span_id:778) (Token id:Id.Lit_Chars val:'\t> expecting success: false\n' span_id:779) 
          (Token id:Id.Lit_Chars val:'\t> not ok 3 - failing test\n' span_id:780) (Token id:Id.Lit_Chars val:'\t> #\tfalse\n' span_id:781) 
          (Token id:Id.Lit_Chars val:'\t> Z\n' span_id:782) (Token id:Id.Lit_Chars val:'\t> # failed 1 among 3 test(s)\n' span_id:783) 
          (Token id:Id.Lit_Chars val:'\t> 1..3\n' span_id:784) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:785)
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'test --verbose-only' span_id:792))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:796) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_must_fail run_sub_test_lib_test \\\n'
            span_id: 797
          ) (Token id:Id.Lit_Chars val:'\t\ttest-verbose-only-2 "test verbose-only=2" \\\n' span_id:798) 
          (Token id:Id.Lit_Chars val:'\t\t--verbose-only=2 <<-\\EOF &&\n' span_id:799) (Token id:Id.Lit_Chars val:'\ttest_expect_success "passing test" true\n' span_id:800) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_expect_success "test with output" "echo foo"\n'
            span_id: 801
          ) (Token id:Id.Lit_Chars val:'\ttest_expect_success "failing test" false\n' span_id:802) 
          (Token id:Id.Lit_Chars val:'\ttest_done\n' span_id:803) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:804) 
          (Token
            id: Id.Lit_Chars
            val: '\tcheck_sub_test_lib_test test-verbose-only-2 <<-\\EOF\n'
            span_id: 805
          ) (Token id:Id.Lit_Chars val:'\t> ok 1 - passing test\n' span_id:806) 
          (Token id:Id.Lit_Chars val:'\t> Z\n' span_id:807) (Token id:Id.Lit_Chars val:'\t> expecting success: echo foo\n' span_id:808) 
          (Token id:Id.Lit_Chars val:'\t> foo\n' span_id:809) (Token id:Id.Lit_Chars val:'\t> ok 2 - test with output\n' span_id:810) 
          (Token id:Id.Lit_Chars val:'\t> Z\n' span_id:811) (Token id:Id.Lit_Chars val:'\t> not ok 3 - failing test\n' span_id:812) 
          (Token id:Id.Lit_Chars val:'\t> #\tfalse\n' span_id:813) (Token id:Id.Lit_Chars val:'\t> # failed 1 among 3 test(s)\n' span_id:814) 
          (Token id:Id.Lit_Chars val:'\t> 1..3\n' span_id:815) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:816)
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:GIT_SKIP_TESTS span_id:823))} 
      {
        (DQ ('\n') ('\t(\n') ("\t\tGIT_SKIP_TESTS='git.2' && export GIT_SKIP_TESTS &&\n") 
          ('\t\trun_sub_test_lib_test git-skip-tests-basic ') ("\t\t\t'GIT_SKIP_TESTS' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:833)
          ) ('EOF &&\n') ('\t\tfor i in 1 2 3\n') ('\t\tdo\n') ('\t\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:838)
          ) ('passing test #') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:840)) 
          (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:842)) (" 'true'\n") 
          ('\t\tdone\n') ('\t\ttest_done\n') ('\t\tEOF\n') ('\t\tcheck_sub_test_lib_test git-skip-tests-basic <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:848)
          ) ('EOF\n') ('\t\t> ok 1 - passing test #1\n') ('\t\t> ok 2 # skip passing test #2 (GIT_SKIP_TESTS)\n') 
          ('\t\t> ok 3 - passing test #3\n') ('\t\t> # passed all 3 test(s)\n') ('\t\t> 1..3\n') ('\t\tEOF\n') ('\t)\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'GIT_SKIP_TESTS several tests' span_id:863))} 
      {
        (DQ ('\n') ('\t(\n') ("\t\tGIT_SKIP_TESTS='git.2 git.5' && export GIT_SKIP_TESTS &&\n") 
          ('\t\trun_sub_test_lib_test git-skip-tests-several ') ("\t\t\t'GIT_SKIP_TESTS several tests' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:873)
          ) ('EOF &&\n') ('\t\tfor i in 1 2 3 4 5 6\n') ('\t\tdo\n') ('\t\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:878)
          ) ('passing test #') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:880)) 
          (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:882)) (" 'true'\n") 
          ('\t\tdone\n') ('\t\ttest_done\n') ('\t\tEOF\n') ('\t\tcheck_sub_test_lib_test git-skip-tests-several <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:888)
          ) ('EOF\n') ('\t\t> ok 1 - passing test #1\n') ('\t\t> ok 2 # skip passing test #2 (GIT_SKIP_TESTS)\n') 
          ('\t\t> ok 3 - passing test #3\n') ('\t\t> ok 4 - passing test #4\n') ('\t\t> ok 5 # skip passing test #5 (GIT_SKIP_TESTS)\n') 
          ('\t\t> ok 6 - passing test #6\n') ('\t\t> # passed all 6 test(s)\n') ('\t\t> 1..6\n') ('\t\tEOF\n') ('\t)\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'GIT_SKIP_TESTS sh pattern' span_id:906))} 
      {
        (DQ ('\n') ('\t(\n') ("\t\tGIT_SKIP_TESTS='git.[2-5]' && export GIT_SKIP_TESTS &&\n") 
          ('\t\trun_sub_test_lib_test git-skip-tests-sh-pattern ') ("\t\t\t'GIT_SKIP_TESTS sh pattern' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:916)
          ) ('EOF &&\n') ('\t\tfor i in 1 2 3 4 5 6\n') ('\t\tdo\n') ('\t\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:921)
          ) ('passing test #') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:923)) 
          (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:925)) (" 'true'\n") 
          ('\t\tdone\n') ('\t\ttest_done\n') ('\t\tEOF\n') ('\t\tcheck_sub_test_lib_test git-skip-tests-sh-pattern <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:931)
          ) ('EOF\n') ('\t\t> ok 1 - passing test #1\n') ('\t\t> ok 2 # skip passing test #2 (GIT_SKIP_TESTS)\n') 
          ('\t\t> ok 3 # skip passing test #3 (GIT_SKIP_TESTS)\n') ('\t\t> ok 4 # skip passing test #4 (GIT_SKIP_TESTS)\n') 
          ('\t\t> ok 5 # skip passing test #5 (GIT_SKIP_TESTS)\n') ('\t\t> ok 6 - passing test #6\n') ('\t\t> # passed all 6 test(s)\n') ('\t\t> 1..6\n') ('\t\tEOF\n') 
          ('\t)\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run basic' span_id:949))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-basic ') ("\t\t'--run basic' --run='1 3 5' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:957)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:962)
          ) ('passing test #') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\$' span_id:964)) 
          (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:966)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-basic <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:972)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 # skip passing test #2 (--run)\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run with a range' span_id:989))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-range ') ("\t\t'--run with a range' --run='1-3' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:997)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1002)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1004)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1006)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-range <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1012)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 # skip passing test #5 (--run)\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run with two ranges' span_id:1029))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-two-ranges ') 
          ("\t\t'--run with two ranges' --run='1-2 5-6' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1037)) ('EOF &&\n') 
          ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1042)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1044)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1046)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-two-ranges <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1052)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 - passing test #6\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run with a left open range' span_id:1069))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-left-open-range ') 
          ("\t\t'--run with a left open range' --run='-3' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1077)) ('EOF &&\n') 
          ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1082)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1084)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1086)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-left-open-range <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1092)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 # skip passing test #5 (--run)\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run with a right open range' span_id:1109))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-right-open-range ') 
          ("\t\t'--run with a right open range' --run='4-' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1117)) ('EOF &&\n') 
          ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1122)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1124)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1126)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-right-open-range <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1132)
          ) ('EOF\n') ('\t> ok 1 # skip passing test #1 (--run)\n') ('\t> ok 2 # skip passing test #2 (--run)\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') ('\t> ok 6 - passing test #6\n') 
          ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run with basic negation' span_id:1149))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-basic-neg ') 
          ("\t\t'--run with basic negation' --run='")
        ) (SQ (Token id:Id.Lit_Chars val:'!3' span_id:1159)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1163)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1168)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1170)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1172)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-basic-neg <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1178)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') ('\t> ok 6 - passing test #6\n') 
          ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run with two negations' span_id:1195))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-two-neg ') ("\t\t'--run with two negations' --run='")) (SQ (Token id:Id.Lit_Chars val:'!3 !6' span_id:1205)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1209)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1214)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1216)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1218)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-two-neg <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1224)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run a range and negation' span_id:1241))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-range-and-neg ') 
          ("\t\t'--run a range and negation' --run='")
        ) (SQ (Token id:Id.Lit_Chars val:'-4 !2' span_id:1251)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1255)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1260)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1262)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1264)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-range-and-neg <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1270)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 # skip passing test #2 (--run)\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 # skip passing test #5 (--run)\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run range negation' span_id:1287))} 
      {(DQ ('\n') ('\trun_sub_test_lib_test run-range-neg ') ("\t\t'--run range negation' --run='")) 
        (SQ (Token id:Id.Lit_Chars val:'!1-3' span_id:1297)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1301)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1306)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1308)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1310)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-range-neg <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1316)
          ) ('EOF\n') ('\t> ok 1 # skip passing test #1 (--run)\n') ('\t> ok 2 # skip passing test #2 (--run)\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') ('\t> ok 6 - passing test #6\n') 
          ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run include, exclude and include' span_id:1333))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-inc-neg-inc ') 
          ("\t\t'--run include, exclude and include' ") ("\t\t--run='")
        ) (SQ (Token id:Id.Lit_Chars val:'1-5 !1-3 2' span_id:1345)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1349)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1354)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1356)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1358)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-inc-neg-inc <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1364)
          ) ('EOF\n') ('\t> ok 1 # skip passing test #1 (--run)\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: '--run include, exclude and include, comma separated'
            span_id: 1381
          )
        )
      } 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-inc-neg-inc-comma ') 
          ("\t\t'--run include, exclude and include, comma separated' ") ('\t\t--run=1-5,') (Id.Lit_Other '\\') ('!1-3,2 <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1393)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1398)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1400)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1402)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-inc-neg-inc-comma <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1408)
          ) ('EOF\n') ('\t> ok 1 # skip passing test #1 (--run)\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 - passing test #4\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run exclude and include' span_id:1425))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-neg-inc ') ("\t\t'--run exclude and include' ") 
          ("\t\t--run='")
        ) (SQ (Token id:Id.Lit_Chars val:'!3- 5' span_id:1437)) 
        (DQ ("' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1441)
          ) ('EOF &&\n') ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1446)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1448)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1450)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-neg-inc <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1456)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 - passing test #2\n') 
          ('\t> ok 3 # skip passing test #3 (--run)\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run empty selectors' span_id:1473))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test run-empty-sel ') ("\t\t'--run empty selectors' ") 
          ("\t\t--run='1,,3,,,5' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1483)) ('EOF &&\n') 
          ('\tfor i in 1 2 3 4 5 6\n') ('\tdo\n') ('\t\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1488)
          ) ('passing test #') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\$' span_id:1490)
          ) (i) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1492)) (" 'true'\n") 
          ('\tdone\n') ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test run-empty-sel <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1498)
          ) ('EOF\n') ('\t> ok 1 - passing test #1\n') ('\t> ok 2 # skip passing test #2 (--run)\n') 
          ('\t> ok 3 - passing test #3\n') ('\t> ok 4 # skip passing test #4 (--run)\n') ('\t> ok 5 - passing test #5\n') 
          ('\t> ok 6 # skip passing test #6 (--run)\n') ('\t> # passed all 6 test(s)\n') ('\t> 1..6\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'--run invalid range start' span_id:1515))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test_err run-inv-range-start ') 
          ("\t\t'--run invalid range start' ") ("\t\t--run='a-5' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1525)
          ) ('EOF &&\n') ('\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1528)
          ) ('passing test #1') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1530)
          ) (" 'true'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test_err run-inv-range-start ') 
          ('\t\t<<-') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1537)) 
          ('EOF_OUT 3<<-') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1539)) ('EOF_ERR\n') 
          ('\t> FATAL: Unexpected exit with code 1\n') ('\tEOF_OUT\n') ("\t> error: --run: invalid non-numeric in range start: 'a-5'\n") ('\tEOF_ERR\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run invalid range end' span_id:1551))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test_err run-inv-range-end ') 
          ("\t\t'--run invalid range end' ") ("\t\t--run='1-z' <<-") 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1561)
          ) ('EOF &&\n') ('\ttest_expect_success ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1564)
          ) ('passing test #1') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1566)
          ) (" 'true'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test_err run-inv-range-end ') 
          ('\t\t<<-') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1573)) 
          ('EOF_OUT 3<<-') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1575)) ('EOF_ERR\n') 
          ('\t> FATAL: Unexpected exit with code 1\n') ('\tEOF_OUT\n') ("\t> error: --run: invalid non-numeric in range end: '1-z'\n") ('\tEOF_ERR\n')
        )
      }
    )
    (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'--run invalid selector' span_id:1587))} 
      {
        (DQ ('\n') ('\trun_sub_test_lib_test_err run-inv-selector ') ("\t\t'--run invalid selector' ") 
          ("\t\t--run='1?' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1597)) ('EOF &&\n') 
          ('\ttest_expect_success ') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1600)) 
          ('passing test #1') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1602)) (" 'true'\n") 
          ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test_err run-inv-selector ') ('\t\t<<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1609)
          ) ('EOF_OUT 3<<-') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1611)) 
          ('EOF_ERR\n') ('\t> FATAL: Unexpected exit with code 1\n') ('\tEOF_OUT\n') 
          ("\t> error: --run: invalid non-numeric in test selector: '1?'\n") ('\tEOF_ERR\n')
        )
      }
    )
    (C {(test_set_prereq)} {(HAVEIT)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:haveit)
          op: assign_op.Equal
          rhs: {(no)}
          spids: [1625]
        )
      ]
    )
    (C {(test_expect_success)} {(HAVEIT)} 
      {(SQ (Token id:Id.Lit_Chars val:'test runs if prerequisite is satisfied' span_id:1633))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1637) 
          (Token id:Id.Lit_Chars val:'\ttest_have_prereq HAVEIT &&\n' span_id:1638) (Token id:Id.Lit_Chars val:'\thaveit=yes\n' span_id:1639)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:donthaveit)
          op: assign_op.Equal
          rhs: {(yes)}
          spids: [1642]
        )
      ]
    )
    (C {(test_expect_success)} {(DONTHAVEIT)} 
      {(SQ (Token id:Id.Lit_Chars val:'unmet prerequisite causes test to be skipped' span_id:1650))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1654) 
          (Token id:Id.Lit_Chars val:'\tdonthaveit=no\n' span_id:1655)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} {($ Id.VSub_DollarName '$haveit') ($ Id.VSub_DollarName '$donthaveit')} 
              {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(yesyes)}
            )
          ]
          action: [
            (C {(say)} {(DQ ('bug in test framework: prerequisite tags do not work reliably'))})
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:1680)
              arg_word: {(1)}
            )
          ]
          spids: [1658 1670]
        )
      ]
    )
    (C {(test_set_prereq)} {(HAVETHIS)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:haveit)
          op: assign_op.Equal
          rhs: {(no)}
          spids: [1691]
        )
      ]
    )
    (C {(test_expect_success)} {(HAVETHIS) (Id.Lit_Comma ',') (HAVEIT)} 
      {(SQ (Token id:Id.Lit_Chars val:'test runs if prerequisites are satisfied' span_id:1701))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1705) 
          (Token id:Id.Lit_Chars val:'\ttest_have_prereq HAVEIT &&\n' span_id:1706) (Token id:Id.Lit_Chars val:'\ttest_have_prereq HAVETHIS &&\n' span_id:1707) 
          (Token id:Id.Lit_Chars val:'\thaveit=yes\n' span_id:1708)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:donthaveit)
          op: assign_op.Equal
          rhs: {(yes)}
          spids: [1711]
        )
      ]
    )
    (C {(test_expect_success)} {(HAVEIT) (Id.Lit_Comma ',') (DONTHAVEIT)} 
      {(SQ (Token id:Id.Lit_Chars val:'unmet prerequisites causes test to be skipped' span_id:1721))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1725) 
          (Token id:Id.Lit_Chars val:'\tdonthaveit=no\n' span_id:1726)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:donthaveiteither)
          op: assign_op.Equal
          rhs: {(yes)}
          spids: [1729]
        )
      ]
    )
    (C {(test_expect_success)} {(DONTHAVEIT) (Id.Lit_Comma ',') (HAVEIT)} 
      {(SQ (Token id:Id.Lit_Chars val:'unmet prerequisites causes test to be skipped' span_id:1739))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1743) 
          (Token id:Id.Lit_Chars val:'\tdonthaveiteither=no\n' span_id:1744)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} 
              {($ Id.VSub_DollarName '$haveit') ($ Id.VSub_DollarName '$donthaveit') 
                ($ Id.VSub_DollarName '$donthaveiteither')
              } {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(yesyesyes)}
            )
          ]
          action: [
            (C {(say)} {(DQ ('bug in test framework: multiple prerequisite tags do not work reliably'))})
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:1770)
              arg_word: {(1)}
            )
          ]
          spids: [1747 1760]
        )
      ]
    )
    (C {(test_lazy_prereq)} {(LAZY_TRUE)} {(true)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:havetrue)
          op: assign_op.Equal
          rhs: {(no)}
          spids: [1783]
        )
      ]
    )
    (C {(test_expect_success)} {(LAZY_TRUE)} 
      {(SQ (Token id:Id.Lit_Chars val:'test runs if lazy prereq is satisfied' span_id:1791))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1795) 
          (Token id:Id.Lit_Chars val:'\thavetrue=yes\n' span_id:1796)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:donthavetrue)
          op: assign_op.Equal
          rhs: {(yes)}
          spids: [1799]
        )
      ]
    )
    (C {(test_expect_success)} {(Id.KW_Bang '!') (LAZY_TRUE)} 
      {(SQ (Token id:Id.Lit_Chars val:'missing lazy prereqs skip tests' span_id:1808))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1812) 
          (Token id:Id.Lit_Chars val:'\tdonthavetrue=no\n' span_id:1813)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} {(DQ ($ Id.VSub_DollarName '$havetrue') ($ Id.VSub_DollarName '$donthavetrue'))} 
              {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(yesyes)}
            )
          ]
          action: [
            (C {(say)} 
              {
                (SQ 
                  (Token
                    id: Id.Lit_Chars
                    val: 'bug in test framework: lazy prerequisites do not work'
                    span_id: 1837
                  )
                )
              }
            )
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:1841)
              arg_word: {(1)}
            )
          ]
          spids: [1817 1831]
        )
      ]
    )
    (C {(test_lazy_prereq)} {(LAZY_FALSE)} {(false)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:nothavefalse)
          op: assign_op.Equal
          rhs: {(no)}
          spids: [1854]
        )
      ]
    )
    (C {(test_expect_success)} {(Id.KW_Bang '!') (LAZY_FALSE)} 
      {(SQ (Token id:Id.Lit_Chars val:'negative lazy prereqs checked' span_id:1863))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1867) 
          (Token id:Id.Lit_Chars val:'\tnothavefalse=yes\n' span_id:1868)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:havefalse)
          op: assign_op.Equal
          rhs: {(yes)}
          spids: [1871]
        )
      ]
    )
    (C {(test_expect_success)} {(LAZY_FALSE)} 
      {(SQ (Token id:Id.Lit_Chars val:'missing negative lazy prereqs will skip' span_id:1879))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1883) 
          (Token id:Id.Lit_Chars val:'\thavefalse=no\n' span_id:1884)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} 
              {(DQ ($ Id.VSub_DollarName '$nothavefalse') ($ Id.VSub_DollarName '$havefalse'))} {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(yesyes)}
            )
          ]
          action: [
            (C {(say)} 
              {
                (SQ 
                  (Token
                    id: Id.Lit_Chars
                    val: 'bug in test framework: negative lazy prerequisites do not work'
                    span_id: 1908
                  )
                )
              }
            )
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:1912)
              arg_word: {(1)}
            )
          ]
          spids: [1888 1902]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:clean)
          op: assign_op.Equal
          rhs: {(no)}
          spids: [1919]
        )
      ]
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'tests clean up after themselves' span_id:1925))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:1929) 
          (Token id:Id.Lit_Chars val:'\ttest_when_finished clean=yes\n' span_id:1930)
        )
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (C {(test)} {($ Id.VSub_DollarName '$clean')} {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(yes)})
          ]
          action: [
            (C {(say)} {(DQ ('bug in test framework: basic cleanup command does not work reliably'))})
            (command.ControlFlow
              token: (Token id:Id.ControlFlow_Exit val:exit span_id:1955)
              arg_word: {(1)}
            )
          ]
          spids: [1934 1945]
        )
      ]
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'tests clean up even on failures' span_id:1965))} 
      {
        (DQ ('\n') ('\ttest_must_fail run_sub_test_lib_test ') 
          ("\t\tfailing-cleanup 'Failing tests with cleanup commands' <<-") (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1973)) ('EOF &&\n') 
          ("\ttest_expect_success 'tests clean up even after a failure' '\n") ('\t\ttouch clean-after-failure &&\n') ('\t\ttest_when_finished rm clean-after-failure &&\n') 
          ('\t\t(exit 1)\n') ("\t'\n") ("\ttest_expect_success 'failure to clean up causes the test to fail' '\n") 
          ('\t\ttest_when_finished ') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:1982)) ('(exit 2)') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:1984)
          ) ('\n') ("\t'\n") ('\ttest_done\n') ('\tEOF\n') ('\tcheck_sub_test_lib_test failing-cleanup <<-') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\\\' span_id:1990)
          ) ('EOF\n') ('\t> not ok 1 - tests clean up even after a failure\n') ('\t> #\tZ\n') 
          ('\t> #\ttouch clean-after-failure &&\n') ('\t> #\ttest_when_finished rm clean-after-failure &&\n') ('\t> #\t(exit 1)\n') ('\t> #\tZ\n') 
          ('\t> not ok 2 - failure to clean up causes the test to fail\n') ('\t> #\tZ\n') ('\t> #\ttest_when_finished ') 
          (word_part.EscapedLiteral
            token: (Token id:Id.Lit_EscapedChar val:'\\"' span_id:2001)
          ) ('(exit 2)') (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\"' span_id:2003)) 
          ('\n') ('\t> #\tZ\n') ('\t> # failed 2 among 2 test(s)\n') ('\t> 1..2\n') ('\tEOF\n')
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git update-index without --add should fail adding'
            span_id: 2025
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2029) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest_must_fail git update-index should-be-empty\n'
            span_id: 2030
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'git update-index with --add should succeed' span_id:2040))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2044) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit update-index --add should-be-empty\n'
            span_id: 2045
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'writing tree out with git write-tree' span_id:2052))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2056) 
          (Token id:Id.Lit_Chars val:'\ttree=$(git write-tree)\n' span_id:2057)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate object ID of a known tree' span_id:2067))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2071) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest "$tree" = 7bb943559a305bdd6bdee2cef6e5df2413c3d30a\n'
            span_id: 2072
          ) (Token id:Id.Lit_Chars val:'    ' span_id:2073)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git update-index without --remove should fail removing'
            span_id: 2083
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2087) 
          (Token
            id: Id.Lit_Chars
            val: '\trm -f should-be-empty full-of-directories &&\n'
            span_id: 2088
          ) (Token id:Id.Lit_Chars val:'\ttest_must_fail git update-index should-be-empty\n' span_id:2089)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git update-index with --remove should be able to remove'
            span_id: 2096
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2100) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit update-index --remove should-be-empty\n'
            span_id: 2101
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git write-tree should be able to write an empty tree'
            span_id: 2111
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2115) 
          (Token id:Id.Lit_Chars val:'\ttree=$(git write-tree)\n' span_id:2116)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate object ID of a known tree' span_id:2123))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2127) 
          (Token id:Id.Lit_Chars val:'\ttest "$tree" = $EMPTY_TREE\n' span_id:2128)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'adding various types of objects with git update-index --add'
            span_id: 2139
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2143) 
          (Token id:Id.Lit_Chars val:'\tmkdir path2 path3 path3/subp3 &&\n' span_id:2144) 
          (Token
            id: Id.Lit_Chars
            val: '\tpaths="path0 path2/file2 path3/file3 path3/subp3/file3" &&\n'
            span_id: 2145
          ) (Token id:Id.Lit_Chars val:'\t(\n' span_id:2146) 
          (Token id:Id.Lit_Chars val:'\t\tfor p in $paths\n' span_id:2147) (Token id:Id.Lit_Chars val:'\t\tdo\n' span_id:2148) 
          (Token id:Id.Lit_Chars val:'\t\t\techo "hello $p" >$p || exit 1\n' span_id:2149) (Token id:Id.Lit_Chars val:'\t\t\ttest_ln_s_add "hello $p" ${p}sym || exit 1\n' span_id:2150) 
          (Token id:Id.Lit_Chars val:'\t\tdone\n' span_id:2151) (Token id:Id.Lit_Chars val:'\t) &&\n' span_id:2152) 
          (Token
            id: Id.Lit_Chars
            val: '\tfind path* ! -type d -print | xargs git update-index --add\n'
            span_id: 2153
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'showing stage with git ls-files --stage' span_id:2163))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2167) 
          (Token id:Id.Lit_Chars val:'\tgit ls-files --stage >current\n' span_id:2168)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate git ls-files output for a known tree' span_id:2175))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2179) 
          (Token id:Id.Lit_Chars val:'\tcat >expected <<-\\EOF &&\n' span_id:2180) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 f87290f8eb2cbbea7857214459a0739927eab154 0\tpath0\n'
            span_id: 2181
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 15a98433ae33114b085f3eb3bb03b832b3180a01 0\tpath0sym\n'
            span_id: 2182
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 3feff949ed00a62d9f7af97c15cd8a30595e7ac7 0\tpath2/file2\n'
            span_id: 2183
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 d8ce161addc5173867a3c3c730924388daedbc38 0\tpath2/file2sym\n'
            span_id: 2184
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 0aa34cae68d0878578ad119c86ca2b5ed5b28376 0\tpath3/file3\n'
            span_id: 2185
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 8599103969b43aff7e430efea79ca4636466794f 0\tpath3/file3sym\n'
            span_id: 2186
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 00fb5908cb97c2564a9783c0c64087333b3b464f 0\tpath3/subp3/file3\n'
            span_id: 2187
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 6649a1ebe9e9f1c553b66f5a6e74136a07ccc57c 0\tpath3/subp3/file3sym\n'
            span_id: 2188
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:2189) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expected current\n' span_id:2190)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'writing tree out with git write-tree' span_id:2197))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2201) 
          (Token id:Id.Lit_Chars val:'\ttree=$(git write-tree)\n' span_id:2202)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate object ID for a known tree' span_id:2209))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2213) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest "$tree" = 087704a96baf1c2d1c869a8b084481e121c88b5b\n'
            span_id: 2214
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'showing tree with git ls-tree' span_id:2221))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2225) 
          (Token id:Id.Lit_Chars val:'    git ls-tree $tree >current\n' span_id:2226)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'git ls-tree output for a known tree' span_id:2233))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2237) 
          (Token id:Id.Lit_Chars val:'\tcat >expected <<-\\EOF &&\n' span_id:2238) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob f87290f8eb2cbbea7857214459a0739927eab154\tpath0\n'
            span_id: 2239
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01\tpath0sym\n'
            span_id: 2240
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t040000 tree 58a09c23e2ca152193f2786e06986b7b6712bdbe\tpath2\n'
            span_id: 2241
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t040000 tree 21ae8269cacbe57ae09138dcc3a2887f904d02b3\tpath3\n'
            span_id: 2242
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:2243) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expected current\n' span_id:2244)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'showing tree with git ls-tree -r' span_id:2257))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2261) 
          (Token id:Id.Lit_Chars val:'\tgit ls-tree -r $tree >current\n' span_id:2262)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'git ls-tree -r output for a known tree' span_id:2269))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2273) 
          (Token id:Id.Lit_Chars val:'\tcat >expected <<-\\EOF &&\n' span_id:2274) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob f87290f8eb2cbbea7857214459a0739927eab154\tpath0\n'
            span_id: 2275
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01\tpath0sym\n'
            span_id: 2276
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 3feff949ed00a62d9f7af97c15cd8a30595e7ac7\tpath2/file2\n'
            span_id: 2277
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob d8ce161addc5173867a3c3c730924388daedbc38\tpath2/file2sym\n'
            span_id: 2278
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 0aa34cae68d0878578ad119c86ca2b5ed5b28376\tpath3/file3\n'
            span_id: 2279
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 8599103969b43aff7e430efea79ca4636466794f\tpath3/file3sym\n'
            span_id: 2280
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 00fb5908cb97c2564a9783c0c64087333b3b464f\tpath3/subp3/file3\n'
            span_id: 2281
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 6649a1ebe9e9f1c553b66f5a6e74136a07ccc57c\tpath3/subp3/file3sym\n'
            span_id: 2282
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:2283) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expected current\n' span_id:2284)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'showing tree with git ls-tree -r -t' span_id:2294))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2298) 
          (Token id:Id.Lit_Chars val:'\tgit ls-tree -r -t $tree >current\n' span_id:2299)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'git ls-tree -r output for a known tree' span_id:2306))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2310) 
          (Token id:Id.Lit_Chars val:'\tcat >expected <<-\\EOF &&\n' span_id:2311) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob f87290f8eb2cbbea7857214459a0739927eab154\tpath0\n'
            span_id: 2312
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 15a98433ae33114b085f3eb3bb03b832b3180a01\tpath0sym\n'
            span_id: 2313
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t040000 tree 58a09c23e2ca152193f2786e06986b7b6712bdbe\tpath2\n'
            span_id: 2314
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 3feff949ed00a62d9f7af97c15cd8a30595e7ac7\tpath2/file2\n'
            span_id: 2315
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob d8ce161addc5173867a3c3c730924388daedbc38\tpath2/file2sym\n'
            span_id: 2316
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t040000 tree 21ae8269cacbe57ae09138dcc3a2887f904d02b3\tpath3\n'
            span_id: 2317
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 0aa34cae68d0878578ad119c86ca2b5ed5b28376\tpath3/file3\n'
            span_id: 2318
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 8599103969b43aff7e430efea79ca4636466794f\tpath3/file3sym\n'
            span_id: 2319
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t040000 tree 3c5e5399f3a333eddecce7a9b9465b63f65f51e2\tpath3/subp3\n'
            span_id: 2320
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 00fb5908cb97c2564a9783c0c64087333b3b464f\tpath3/subp3/file3\n'
            span_id: 2321
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t120000 blob 6649a1ebe9e9f1c553b66f5a6e74136a07ccc57c\tpath3/subp3/file3sym\n'
            span_id: 2322
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:2323) 
          (Token id:Id.Lit_Chars val:'\ttest_cmp expected current\n' span_id:2324)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'writing partial tree out with git write-tree --prefix'
            span_id: 2331
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2335) 
          (Token
            id: Id.Lit_Chars
            val: '\tptree=$(git write-tree --prefix=path3)\n'
            span_id: 2336
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate object ID for a known tree' span_id:2343))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2347) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest "$ptree" = 21ae8269cacbe57ae09138dcc3a2887f904d02b3\n'
            span_id: 2348
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'writing partial tree out with git write-tree --prefix'
            span_id: 2355
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2359) 
          (Token
            id: Id.Lit_Chars
            val: '\tptree=$(git write-tree --prefix=path3/subp3)\n'
            span_id: 2360
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'validate object ID for a known tree' span_id:2367))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2371) 
          (Token
            id: Id.Lit_Chars
            val: '\ttest "$ptree" = 3c5e5399f3a333eddecce7a9b9465b63f65f51e2\n'
            span_id: 2372
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'put invalid objects into the index' span_id:2379))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2383) 
          (Token id:Id.Lit_Chars val:'\trm -f .git/index &&\n' span_id:2384) (Token id:Id.Lit_Chars val:'\tcat >badobjects <<-\\EOF &&\n' span_id:2385) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 1000000000000000000000000000000000000000\tdir/file1\n'
            span_id: 2386
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 2000000000000000000000000000000000000000\tdir/file2\n'
            span_id: 2387
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 3000000000000000000000000000000000000000\tdir/file3\n'
            span_id: 2388
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 4000000000000000000000000000000000000000\tdir/file4\n'
            span_id: 2389
          ) 
          (Token
            id: Id.Lit_Chars
            val: '\t100644 blob 5000000000000000000000000000000000000000\tdir/file5\n'
            span_id: 2390
          ) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:2391) 
          (Token
            id: Id.Lit_Chars
            val: '\tgit update-index --index-info <badobjects\n'
            span_id: 2392
          )
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'writing this tree without --missing-ok' span_id:2399))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2403) 
          (Token id:Id.Lit_Chars val:'\ttest_must_fail git write-tree\n' span_id:2404)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'writing this tree with --missing-ok' span_id:2411))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2415) 
          (Token id:Id.Lit_Chars val:'\tgit write-tree --missing-ok\n' span_id:2416)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git read-tree followed by write-tree should be idempotent'
            span_id: 2427
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2431) 
          (Token id:Id.Lit_Chars val:'\trm -f .git/index &&\n' span_id:2432) (Token id:Id.Lit_Chars val:'\tgit read-tree $tree &&\n' span_id:2433) 
          (Token id:Id.Lit_Chars val:'\ttest -f .git/index &&\n' span_id:2434) (Token id:Id.Lit_Chars val:'\tnewtree=$(git write-tree) &&\n' span_id:2435) 
          (Token id:Id.Lit_Chars val:'\ttest "$newtree" = "$tree"\n' span_id:2436)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'validate git diff-files output for a know cache/work tree state'
            span_id: 2443
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2447) 
          (Token id:Id.Lit_Chars val:'\tcat >expected <<\\EOF &&\n' span_id:2448) 
          (Token
            id: Id.Lit_Chars
            val: 
':100644 100644 f87290f8eb2cbbea7857214459a0739927eab154 0000000000000000000000000000000000000000 M\tpath0\n'
            span_id: 2449
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':120000 120000 15a98433ae33114b085f3eb3bb03b832b3180a01 0000000000000000000000000000000000000000 M\tpath0sym\n'
            span_id: 2450
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':100644 100644 3feff949ed00a62d9f7af97c15cd8a30595e7ac7 0000000000000000000000000000000000000000 M\tpath2/file2\n'
            span_id: 2451
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':120000 120000 d8ce161addc5173867a3c3c730924388daedbc38 0000000000000000000000000000000000000000 M\tpath2/file2sym\n'
            span_id: 2452
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':100644 100644 0aa34cae68d0878578ad119c86ca2b5ed5b28376 0000000000000000000000000000000000000000 M\tpath3/file3\n'
            span_id: 2453
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':120000 120000 8599103969b43aff7e430efea79ca4636466794f 0000000000000000000000000000000000000000 M\tpath3/file3sym\n'
            span_id: 2454
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':100644 100644 00fb5908cb97c2564a9783c0c64087333b3b464f 0000000000000000000000000000000000000000 M\tpath3/subp3/file3\n'
            span_id: 2455
          ) 
          (Token
            id: Id.Lit_Chars
            val: 
':120000 120000 6649a1ebe9e9f1c553b66f5a6e74136a07ccc57c 0000000000000000000000000000000000000000 M\tpath3/subp3/file3sym\n'
            span_id: 2456
          ) (Token id:Id.Lit_Chars val:'EOF\n' span_id:2457) 
          (Token id:Id.Lit_Chars val:'\tgit diff-files >current &&\n' span_id:2458) (Token id:Id.Lit_Chars val:'\ttest_cmp current expected\n' span_id:2459)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'git update-index --refresh should succeed' span_id:2466))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2470) 
          (Token id:Id.Lit_Chars val:'\tgit update-index --refresh\n' span_id:2471)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'no diff after checkout and git update-index --refresh'
            span_id: 2478
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2482) 
          (Token id:Id.Lit_Chars val:'\tgit diff-files >current &&\n' span_id:2483) (Token id:Id.Lit_Chars val:'\tcmp -s current /dev/null\n' span_id:2484)
        )
      }
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:P)
          op: assign_op.Equal
          rhs: {(087704a96baf1c2d1c869a8b084481e121c88b5b)}
          spids: [2491]
        )
      ]
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git commit-tree records the correct tree in a commit'
            span_id: 2498
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2502) 
          (Token
            id: Id.Lit_Chars
            val: '\tcommit0=$(echo NO | git commit-tree $P) &&\n'
            span_id: 2503
          ) (Token id:Id.Lit_Chars val:'\ttree=$(git show --pretty=raw $commit0 |\n' span_id:2504) 
          (Token
            id: Id.Lit_Chars
            val: '\t\t sed -n -e "s/^tree //p" -e "/^author /q") &&\n'
            span_id: 2505
          ) (Token id:Id.Lit_Chars val:'\ttest "z$tree" = "z$P"\n' span_id:2506)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git commit-tree records the correct parent in a commit'
            span_id: 2513
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2517) 
          (Token
            id: Id.Lit_Chars
            val: '\tcommit1=$(echo NO | git commit-tree $P -p $commit0) &&\n'
            span_id: 2518
          ) (Token id:Id.Lit_Chars val:'\tparent=$(git show --pretty=raw $commit1 |\n' span_id:2519) 
          (Token
            id: Id.Lit_Chars
            val: '\t\tsed -n -e "s/^parent //p" -e "/^author /q") &&\n'
            span_id: 2520
          ) (Token id:Id.Lit_Chars val:'\ttest "z$commit0" = "z$parent"\n' span_id:2521)
        )
      }
    )
    (C {(test_expect_success)} 
      {
        (SQ 
          (Token
            id: Id.Lit_Chars
            val: 'git commit-tree omits duplicated parent in a commit'
            span_id: 2528
          )
        )
      } 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2532) 
          (Token
            id: Id.Lit_Chars
            val: '\tcommit2=$(echo NO | git commit-tree $P -p $commit0 -p $commit0) &&\n'
            span_id: 2533
          ) (Token id:Id.Lit_Chars val:'\t     parent=$(git show --pretty=raw $commit2 |\n' span_id:2534) 
          (Token
            id: Id.Lit_Chars
            val: '\t\tsed -n -e "s/^parent //p" -e "/^author /q" |\n'
            span_id: 2535
          ) (Token id:Id.Lit_Chars val:'\t\tsort -u) &&\n' span_id:2536) 
          (Token id:Id.Lit_Chars val:'\ttest "z$commit0" = "z$parent" &&\n' span_id:2537) (Token id:Id.Lit_Chars val:'\tnumparent=$(git show --pretty=raw $commit2 |\n' span_id:2538) 
          (Token
            id: Id.Lit_Chars
            val: '\t\tsed -n -e "s/^parent //p" -e "/^author /q" |\n'
            span_id: 2539
          ) (Token id:Id.Lit_Chars val:'\t\twc -l) &&\n' span_id:2540) 
          (Token id:Id.Lit_Chars val:'\ttest $numparent = 1\n' span_id:2541)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'update-index D/F conflict' span_id:2548))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2552) 
          (Token id:Id.Lit_Chars val:'\tmv path0 tmp &&\n' span_id:2553) (Token id:Id.Lit_Chars val:'\tmv path2 path0 &&\n' span_id:2554) 
          (Token id:Id.Lit_Chars val:'\tmv tmp path2 &&\n' span_id:2555) (Token id:Id.Lit_Chars val:'\tgit update-index --add --replace path2 path0/file2 &&\n' span_id:2556) 
          (Token
            id: Id.Lit_Chars
            val: '\tnumpath0=$(git ls-files path0 | wc -l) &&\n'
            span_id: 2557
          ) (Token id:Id.Lit_Chars val:'\ttest $numpath0 = 1\n' span_id:2558)
        )
      }
    )
    (C {(test_expect_success)} 
      {(SQ (Token id:Id.Lit_Chars val:'very long name in the index handled sanely' span_id:2565))} 
      {
        (SQ (Token id:Id.Lit_Chars val:'\n' span_id:2569) 
          (Token id:Id.Lit_Chars val:'\n' span_id:2570) (Token id:Id.Lit_Chars val:'\ta=a && # 1\n' span_id:2571) 
          (Token
            id: Id.Lit_Chars
            val: '\ta=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 16\n'
            span_id: 2572
          ) (Token id:Id.Lit_Chars val:'\ta=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 256\n' span_id:2573) 
          (Token
            id: Id.Lit_Chars
            val: '\ta=$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a$a && # 4096\n'
            span_id: 2574
          ) (Token id:Id.Lit_Chars val:'\ta=${a}q &&\n' span_id:2575) 
          (Token id:Id.Lit_Chars val:'\n' span_id:2576) (Token id:Id.Lit_Chars val:'\t>path4 &&\n' span_id:2577) 
          (Token id:Id.Lit_Chars val:'\tgit update-index --add path4 &&\n' span_id:2578) (Token id:Id.Lit_Chars val:'\t(\n' span_id:2579) 
          (Token id:Id.Lit_Chars val:'\t\tgit ls-files -s path4 |\n' span_id:2580) (Token id:Id.Lit_Chars val:'\t\tsed -e "s/\t.*/\t/" |\n' span_id:2581) 
          (Token id:Id.Lit_Chars val:'\t\ttr -d "\\012"\n' span_id:2582) (Token id:Id.Lit_Chars val:'\t\techo "$a"\n' span_id:2583) 
          (Token
            id: Id.Lit_Chars
            val: '\t) | git update-index --index-info &&\n'
            span_id: 2584
          ) (Token id:Id.Lit_Chars val:'\tlen=$(git ls-files "a*" | wc -c) &&\n' span_id:2585) 
          (Token id:Id.Lit_Chars val:'\ttest $len = 4098\n' span_id:2586)
        )
      }
    )
    (C {(test_done)})
  ]
)