(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'git archive attribute pattern tests'>)}
        )
      ]
    )
    (C {(.)} {(./test-lib.sh)})
    (command.FuncDef
      name: test_expect_exists
      body: 
        (command.BraceGroup
          children: [
            (C {(test_expect_success)} {(DQ (' ') ($ VSub_Number '$1') (' exists'))} 
              {(DQ ('test -e ') ($ VSub_Number '$1'))}
            )
          ]
        )
    )
    (command.FuncDef
      name: test_expect_missing
      body: 
        (command.BraceGroup
          children: [
            (C {(test_expect_success)} {(DQ (' ') ($ VSub_Number '$1') (' does not exist'))} 
              {(DQ ('test ! -e ') ($ VSub_Number '$1'))}
            )
          ]
        )
    )
    (C {(test_expect_success)} {(SQ <setup>)} 
      {
        (SQ <'\n'> <'\techo ignored >ignored &&\n'> 
          <'\techo ignored export-ignore >>.git/info/attributes &&\n'> <'\tgit add ignored &&\n'> <'\n'> <'\tmkdir not-ignored-dir &&\n'> 
          <'\techo ignored-in-tree >not-ignored-dir/ignored &&\n'> <'\techo not-ignored-in-tree >not-ignored-dir/ignored-only-if-dir &&\n'> 
          <'\tgit add not-ignored-dir &&\n'> <'\n'> <'\tmkdir ignored-only-if-dir &&\n'> 
          <'\techo ignored by ignored dir >ignored-only-if-dir/ignored-by-ignored-dir &&\n'> <'\techo ignored-only-if-dir/ export-ignore >>.git/info/attributes &&\n'> 
          <'\tgit add ignored-only-if-dir &&\n'> <'\n'> <'\tmkdir -p ignored-without-slash &&\n'> 
          <'\techo "ignored without slash" >ignored-without-slash/foo &&\n'> <'\tgit add ignored-without-slash/foo &&\n'> 
          <'\techo "ignored-without-slash export-ignore" >>.git/info/attributes &&\n'> <'\n'> <'\tmkdir -p wildcard-without-slash &&\n'> 
          <'\techo "ignored without slash" >wildcard-without-slash/foo &&\n'> <'\tgit add wildcard-without-slash/foo &&\n'> 
          <'\techo "wild*-without-slash export-ignore" >>.git/info/attributes &&\n'> <'\n'> <'\tmkdir -p deep/and/slashless &&\n'> 
          <'\techo "ignored without slash" >deep/and/slashless/foo &&\n'> <'\tgit add deep/and/slashless/foo &&\n'> 
          <'\techo "deep/and/slashless export-ignore" >>.git/info/attributes &&\n'> <'\n'> <'\tmkdir -p deep/with/wildcard &&\n'> 
          <'\techo "ignored without slash" >deep/with/wildcard/foo &&\n'> <'\tgit add deep/with/wildcard/foo &&\n'> 
          <'\techo "deep/*t*/wildcard export-ignore" >>.git/info/attributes &&\n'> <'\n'> <'\tmkdir -p one-level-lower/two-levels-lower/ignored-only-if-dir &&\n'> 
          <
'\techo ignored by ignored dir >one-level-lower/two-levels-lower/ignored-only-if-dir/ignored-by-ignored-dir &&\n'
          > <'\tgit add one-level-lower &&\n'> <'\n'> <'\tgit commit -m. &&\n'> <'\n'> 
          <'\tgit clone --bare . bare &&\n'> <'\tcp .git/info/attributes bare/info/attributes\n'>
        )
      }
    )
    (C {(test_expect_success)} {(SQ <'git archive'>)} 
      {
        (SQ <'\n'> <'\tgit archive HEAD >archive.tar &&\n'> 
          <'\t(mkdir archive && cd archive && "$TAR" xf -) <archive.tar\n'>
        )
      }
    )
    (C {(test_expect_missing)} {(archive/ignored)})
    (C {(test_expect_missing)} {(archive/not-ignored-dir/ignored)})
    (C {(test_expect_exists)} {(archive/not-ignored-dir/ignored-only-if-dir)})
    (C {(test_expect_exists)} {(archive/not-ignored-dir/)})
    (C {(test_expect_missing)} {(archive/ignored-only-if-dir/)})
    (C {(test_expect_missing)} {(archive/ignored-ony-if-dir/ignored-by-ignored-dir)})
    (command.AndOr
      ops: [Op_DAmp Op_DAmp]
      children: [
        (C {(test_expect_missing)} {(archive/ignored-without-slash/)})
        (C {(test_expect_missing)} {(archive/ignored-without-slash/foo)})
        (C {(test_expect_missing)} {(archive/wildcard-without-slash/)})
      ]
    )
    (command.AndOr
      ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp]
      children: [
        (C {(test_expect_missing)} {(archive/wildcard-without-slash/foo)})
        (C {(test_expect_missing)} {(archive/deep/and/slashless/)})
        (C {(test_expect_missing)} {(archive/deep/and/slashless/foo)})
        (C {(test_expect_missing)} {(archive/deep/with/wildcard/)})
        (C {(test_expect_missing)} {(archive/deep/with/wildcard/foo)})
        (C {(test_expect_exists)} {(archive/one-level-lower/)})
      ]
    )
    (C {(test_expect_missing)} {(archive/one-level-lower/two-levels-lower/ignored-only-if-dir/)})
    (C {(test_expect_missing)} 
      {(archive/one-level-lower/two-levels-lower/ignored-ony-if-dir/ignored-by-ignored-dir)}
    )
    (C {(test_done)})
  ]
)