(CommandList children: [ (FuncDef name: h_pass body: (BraceGroup children: [ (Sentence child: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [84] ) ] spids: [84] ) terminator: <Op_Semi ';'> ) (C {(shift)}) (C {(echo)} { (DQ ('Running [atf-check ') ($ VSub_Star '$*') ('] against [') (${ VSub_Name cmd) (']')) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(script.sh)} spids: [110] ) (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ ('#! ') (${ VSub_Name Atf_Shell) ('\n') (${ VSub_Name cmd) ('\n'))} do_expansion: True here_end: EOF was_filled: True spids: [113] ) ] ) (C {(chmod)} {(Lit_Other '+') (x)} {(script.sh)}) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (SimpleCommand words: [{(${ VSub_Name Atf_Check)} {(DQ (${ VSub_At '@'))} {(./script.sh)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(tmp)} spids: [152] ) ] ) ] negated: True ) terminator: <Op_Semi ';'> ) ] action: [(C {(cat)} {(tmp)}) (C {(atf_fail)} {(DQ ('atf-check failed'))})] spids: [16777215 156] ) ] spids: [16777215 171] ) ] spids: [81] ) spids: [77 80] ) (FuncDef name: h_fail body: (BraceGroup children: [ (Sentence child: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: {(DQ ($ VSub_Number '$1'))} spids: [183] ) ] spids: [183] ) terminator: <Op_Semi ';'> ) (C {(shift)}) (C {(echo)} { (DQ ('Running [atf-check ') ($ VSub_Star '$*') ('] against [') (${ VSub_Name cmd) (']')) } ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(script.sh)} spids: [209] ) (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ ('#! ') (${ VSub_Name Atf_Shell) ('\n') (${ VSub_Name cmd) ('\n'))} do_expansion: True here_end: EOF was_filled: True spids: [212] ) ] ) (C {(chmod)} {(Lit_Other '+') (x)} {(script.sh)}) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [{(${ VSub_Name Atf_Check)} {(DQ (${ VSub_At '@'))} {(./script.sh)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(tmp)} spids:[249])] ) terminator: <Op_Semi ';'> ) ] action: [ (C {(cat)} {(tmp)}) (C {(atf_fail)} {(DQ ('atf-check succeeded but should fail'))}) ] spids: [16777215 253] ) ] spids: [16777215 268] ) ] spids: [180] ) spids: [176 179] ) (C {(atf_test_case)} {(sflag_eq_ne)}) (FuncDef name: sflag_eq_ne_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -s option using the 'eq' and 'ne' qualifiers"))} ) ] spids: [281] ) spids: [277 280] ) (FuncDef name: sflag_eq_ne_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ (true))} {(-s)} {(eq) (Lit_Other ':') (0)}) (C {(h_pass)} {(DQ (false))} {(-s)} {(ne) (Lit_Other ':') (0)}) (C {(h_pass)} {(DQ ('exit 255'))} {(-s)} {(eq) (Lit_Other ':') (255)}) (C {(h_pass)} {(DQ ('exit 0'))} {(-s)} {(ne) (Lit_Other ':') (255)}) (C {(h_fail)} {(DQ ('exit 256'))} {(-s)} {(eq) (Lit_Other ':') (256)}) (C {(h_fail)} {(DQ ('exit -1'))} {(-s)} {(eq) (Lit_Other ':') (-1)}) (C {(h_fail)} {(DQ (true))} {(-s)} {(ne) (Lit_Other ':') (256)}) (C {(h_fail)} {(DQ (true))} {(-s)} {(ne) (Lit_Other ':') (-1)}) ] spids: [300] ) spids: [296 299] ) (C {(atf_test_case)} {(sflag_exit)}) (FuncDef name: sflag_exit_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -s option using the 'exit' qualifier"))}) ] spids: [418] ) spids: [414 417] ) (FuncDef name: sflag_exit_body body: (BraceGroup children: [ (C {(h_pass)} {(SQ <true>)} {(-s)} {(exit) (Lit_Other ':') (0)}) (C {(h_pass)} {(SQ <false>)} {(-s)} {(not-exit) (Lit_Other ':') (0)}) (C {(h_pass)} {(SQ <'exit 255'>)} {(-s)} {(exit) (Lit_Other ':') (255)}) (C {(h_pass)} {(SQ <'exit 0'>)} {(-s)} {(not-exit) (Lit_Other ':') (255)}) (C {(h_fail)} {(SQ <'exit 256'>)} {(-s)} {(exit) (Lit_Other ':') (256)}) (C {(h_fail)} {(SQ <'exit -1'>)} {(-s)} {(exit) (Lit_Other ':') (-1)}) (C {(h_fail)} {(SQ <true>)} {(-s)} {(not-exit) (Lit_Other ':') (256)}) (C {(h_fail)} {(SQ <true>)} {(-s)} {(not-exit) (Lit_Other ':') (-1)}) (C {(h_pass)} {(SQ <true>)} {(-s)} {(exit)}) (C {(h_pass)} {(SQ <false>)} {(-s)} {(exit)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(${ VSub_Name Atf_Check)} {(-s)} {(exit)} {(-x)} {(SQ <'kill $$'>)}) terminator: <Op_Semi ';'> ) ] action: [(C {(atf_fail)} {(DQ ('Signal detected as clean exit'))})] spids: [16777215 585] ) ] spids: [16777215 595] ) ] spids: [437] ) spids: [433 436] ) (C {(atf_test_case)} {(sflag_ignore)}) (FuncDef name: sflag_ignore_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -s option using the 'ignore' qualifier"))}) ] spids: [608] ) spids: [604 607] ) (FuncDef name: sflag_ignore_body body: (BraceGroup children: [ (C {(h_pass)} {(SQ <true>)} {(-s)} {(ignore)}) (C {(h_pass)} {(SQ <false>)} {(-s)} {(ignore)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(${ VSub_Name Atf_Check)} {(-s)} {(ignored)} {(-x)} {(SQ <'kill $$'>)}) terminator: <Op_Semi ';'> ) ] action: [(C {(atf_fail)} {(DQ ('Signal not ignored'))})] spids: [16777215 669] ) ] spids: [16777215 679] ) ] spids: [627] ) spids: [623 626] ) (C {(atf_test_case)} {(sflag_signal)}) (FuncDef name: sflag_signal_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -s option using the 'signal' qualifier"))}) ] spids: [692] ) spids: [688 691] ) (FuncDef name: sflag_signal_body body: (BraceGroup children: [ (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(signal) (Lit_Other ':') (hup)} {(-x)} {(SQ <'kill -1 $$'>)} ) (C {(atf_fail)} {(DQ ('Signal not detected'))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(signal) (Lit_Other ':') (sighup)} {(-x)} {(SQ <'kill -1 $$'>)} ) (C {(atf_fail)} {(DQ ('Signal not'))} {(DQ (detected))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(signal) (Lit_Other ':') (1)} {(-x)} {(SQ <'kill -1 $$'>)} ) (C {(atf_fail)} {(DQ ('Signal not detected'))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(signal)} {(-x)} {(SQ <'kill -1 $$'>)}) (C {(atf_fail)} {(DQ ('Signal not detected'))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(not-signal) (Lit_Other ':') (kill)} {(-x)} {(SQ <'kill -9 $$'>)} ) (C {(atf_fail)} {(DQ ('not-signal:kill matched kill -9'))}) ] op_id: Op_DAmp ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(not-signal) (Lit_Other ':') (kill)} {(-x)} {(SQ <'kill -1 $$'>)} ) (C {(atf_fail)} {(DQ ('not-signal:kill did not match kill -1'))}) ] op_id: Op_DPipe ) (C {(h_fail)} {(SQ <true>)} {(-s)} {(signal)}) (C {(h_fail)} {(SQ <false>)} {(-s)} {(signal)}) ] spids: [711] ) spids: [707 710] ) (C {(atf_test_case)} {(xflag)}) (FuncDef name: xflag_head body: (BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for the -x option'))})] spids: [906] ) spids: [902 905] ) (FuncDef name: xflag_body body: (BraceGroup children: [ (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-s)} {(ne) (Lit_Other ':') (0)} {(-o)} {(ignore)} {(-e)} {(ignore)} {(DQ ('echo foo 2>&1'))} ) (C {(atf_fail)} {(DQ ('Shell command succeeded without -x'))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-e)} {(inline) (Lit_Other ':') (DQ (foo) (Lit_Other '\\') (n))} {(-x)} {(DQ ('echo foo 1>&2'))} ) (C {(atf_fail)} {(DQ ('Cannot run command with -x'))}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(${ VSub_Name Atf_Check)} {(-o)} {(inline) (Lit_Other ':') (DQ (foo) (Lit_Other '\\') (n))} {(-x)} {(echo)} {(foo)} ) (C {(atf_fail)} {(DQ ('Using -x does not respect all provided arguments'))}) ] op_id: Op_DPipe ) ] spids: [925] ) spids: [921 924] ) (C {(atf_test_case)} {(oflag_empty)}) (FuncDef name: oflag_empty_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'empty' argument"))}) ] spids: [1035] ) spids: [1031 1034] ) (FuncDef name: oflag_empty_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ (true))} {(-o)} {(empty)}) (C {(h_fail)} {(DQ ('echo foo'))} {(-o)} {(empty)}) ] spids: [1054] ) spids: [1050 1053] ) (C {(atf_test_case)} {(oflag_ignore)}) (FuncDef name: oflag_ignore_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'ignore' argument"))}) ] spids: [1089] ) spids: [1085 1088] ) (FuncDef name: oflag_ignore_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ (true))} {(-o)} {(ignore)}) (C {(h_pass)} {(DQ ('echo foo'))} {(-o)} {(ignore)}) ] spids: [1108] ) spids: [1104 1107] ) (C {(atf_test_case)} {(oflag_file)}) (FuncDef name: oflag_file_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'file:' argument"))}) ] spids: [1143] ) spids: [1139 1142] ) (FuncDef name: oflag_file_body body: (BraceGroup children: [ (C {(touch)} {(empty)}) (C {(h_pass)} {(DQ (true))} {(-o)} {(file) (Lit_Other ':') (empty)}) (SimpleCommand words: [{(echo)} {(foo)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(text)} spids:[1188])] ) (C {(h_pass)} {(DQ ('echo foo'))} {(-o)} {(file) (Lit_Other ':') (text)}) (C {(h_fail)} {(DQ ('echo bar'))} {(-o)} {(file) (Lit_Other ':') (text)}) (C {(dd)} {(Lit_VarLike 'if=') (/dev/urandom)} {(Lit_VarLike 'of=') (bin)} {(Lit_VarLike 'bs=') (1k)} {(Lit_VarLike 'count=') (10)} ) (C {(h_pass)} {(DQ ('cat bin'))} {(-o)} {(file) (Lit_Other ':') (bin)}) ] spids: [1162] ) spids: [1158 1161] ) (C {(atf_test_case)} {(oflag_inline)}) (FuncDef name: oflag_inline_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'inline:' argument"))}) ] spids: [1257] ) spids: [1253 1256] ) (FuncDef name: oflag_inline_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ (true))} {(-o)} {(inline) (Lit_Other ':')}) (C {(h_pass)} {(DQ ('echo foo bar'))} {(-o)} {(inline) (Lit_Other ':') (DQ ('foo bar') (Lit_Other '\\') (n))} ) (C {(h_pass)} {(DQ ("printf 'foo bar'"))} {(-o)} {(inline) (Lit_Other ':') (DQ ('foo bar'))}) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (t) (Lit_Other '\\') (n) (Lit_Other '\\') (t) (Lit_Other '\\') ("n'") ) } {(-o)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (t) (Lit_Other '\\') (n) (Lit_Other '\\') (t) (Lit_Other '\\') (n)) } ) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (a) (Lit_Other '\\') (b) (Lit_Other '\\') (033) (Lit_Other '\\') (f) (Lit_Other '\\') (n) (Lit_Other '\\') (r) (Lit_Other '\\') (t) (Lit_Other '\\') ("v'") ) } {(-o)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (a) (Lit_Other '\\') (b) (Lit_Other '\\') (e) (Lit_Other '\\') (f) (Lit_Other '\\') (n) (Lit_Other '\\') (r) (Lit_Other '\\') (t) (Lit_Other '\\') (v) ) } ) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (011) (Lit_Other '\\') (022) (Lit_Other '\\') (033) (Lit_Other '\\') ("012'") ) } {(-o)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (011) (Lit_Other '\\') (022) (Lit_Other '\\') (033) (Lit_Other '\\') (012) ) } ) (C {(h_fail)} {(DQ ('echo foo bar'))} {(-o)} {(inline) (Lit_Other ':') (DQ ('foo bar'))}) (C {(h_fail)} {(DQ ('echo -n foo bar'))} {(-o)} {(inline) (Lit_Other ':') (DQ ('foo bar') (Lit_Other '\\') (n))} ) ] spids: [1276] ) spids: [1272 1275] ) (C {(atf_test_case)} {(oflag_match)}) (FuncDef name: oflag_match_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'match:' argument"))}) ] spids: [1472] ) spids: [1468 1471] ) (FuncDef name: oflag_match_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('printf no-newline'))} {(-o)} {(DQ ('match:^no-newline'))}) (C {(h_pass)} {(DQ ('echo line1; echo foo bar'))} {(-o)} {(DQ ('match:^foo'))}) (C {(h_pass)} {(DQ ('echo foo bar'))} {(-o)} {(DQ ('match:o b'))}) (C {(h_fail)} {(DQ ('echo foo bar'))} {(-o)} {(DQ ('match:baz'))}) (C {(h_fail)} {(DQ ('echo foo bar'))} {(-o)} {(DQ ('match:^bar'))}) ] spids: [1491] ) spids: [1487 1490] ) (C {(atf_test_case)} {(oflag_save)}) (FuncDef name: oflag_save_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -o option using the 'save:' argument"))}) ] spids: [1569] ) spids: [1565 1568] ) (FuncDef name: oflag_save_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('echo foo'))} {(-o)} {(save) (Lit_Other ':') (out)}) (SimpleCommand words: [{(echo)} {(foo)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(exp)} spids:[1608])] ) (AndOr children: [ (C {(cmp)} {(-s)} {(out)} {(exp)}) (C {(atf_fail)} {(DQ ('Saved output does not match expected results'))}) ] op_id: Op_DPipe ) ] spids: [1588] ) spids: [1584 1587] ) (C {(atf_test_case)} {(oflag_multiple)}) (FuncDef name: oflag_multiple_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for multiple occurrences of the -o option'))}) ] spids: [1639] ) spids: [1635 1638] ) (FuncDef name: oflag_multiple_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('echo foo bar'))} {(-o)} {(match) (Lit_Other ':') (foo)} {(-o)} {(match) (Lit_Other ':') (bar)} ) (C {(h_pass)} {(DQ ('echo foo; echo bar'))} {(-o)} {(match) (Lit_Other ':') (foo)} {(-o)} {(match) (Lit_Other ':') (bar)} ) (C {(h_fail)} {(DQ ('echo foo baz'))} {(-o)} {(match) (Lit_Other ':') (bar)} {(-o)} {(match) (Lit_Other ':') (foo)} ) (C {(h_fail)} {(DQ ('echo foo; echo baz'))} {(-o)} {(match) (Lit_Other ':') (bar)} {(-o)} {(match) (Lit_Other ':') (foo)} ) ] spids: [1658] ) spids: [1654 1657] ) (C {(atf_test_case)} {(oflag_negated)}) (FuncDef name: oflag_negated_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for negated occurrences of the -o option'))}) ] spids: [1747] ) spids: [1743 1746] ) (FuncDef name: oflag_negated_body body: (BraceGroup children: [ (C {(h_fail)} {(DQ ('echo foo'))} {(-o)} {(empty)}) (C {(h_pass)} {(DQ ('echo foo'))} {(-o)} {(not-empty)}) (C {(h_pass)} {(DQ ('echo foo bar'))} {(-o)} {(match) (Lit_Other ':') (foo)}) (C {(h_fail)} {(DQ ('echo foo bar'))} {(-o)} {(not-match) (Lit_Other ':') (foo)}) ] spids: [1766] ) spids: [1762 1765] ) (C {(atf_test_case)} {(eflag_empty)}) (FuncDef name: eflag_empty_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'empty' argument"))}) ] spids: [1828] ) spids: [1824 1827] ) (FuncDef name: eflag_empty_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('true 1>&2'))} {(-e)} {(empty)}) (C {(h_fail)} {(DQ ('echo foo 1>&2'))} {(-e)} {(empty)}) ] spids: [1847] ) spids: [1843 1846] ) (C {(atf_test_case)} {(eflag_ignore)}) (FuncDef name: eflag_ignore_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'ignore' argument"))}) ] spids: [1882] ) spids: [1878 1881] ) (FuncDef name: eflag_ignore_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('true 1>&2'))} {(-e)} {(ignore)}) (C {(h_pass)} {(DQ ('echo foo 1>&2'))} {(-e)} {(ignore)}) ] spids: [1901] ) spids: [1897 1900] ) (C {(atf_test_case)} {(eflag_file)}) (FuncDef name: eflag_file_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'file:' argument"))}) ] spids: [1936] ) spids: [1932 1935] ) (FuncDef name: eflag_file_body body: (BraceGroup children: [ (C {(touch)} {(empty)}) (C {(h_pass)} {(DQ ('true 1>&2'))} {(-e)} {(file) (Lit_Other ':') (empty)}) (SimpleCommand words: [{(echo)} {(foo)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(text)} spids:[1981])] ) (C {(h_pass)} {(DQ ('echo foo 1>&2'))} {(-e)} {(file) (Lit_Other ':') (text)}) (C {(h_fail)} {(DQ ('echo bar 1>&2'))} {(-e)} {(file) (Lit_Other ':') (text)}) (C {(dd)} {(Lit_VarLike 'if=') (/dev/urandom)} {(Lit_VarLike 'of=') (bin)} {(Lit_VarLike 'bs=') (1k)} {(Lit_VarLike 'count=') (10)} ) (C {(h_pass)} {(DQ ('cat bin 1>&2'))} {(-e)} {(file) (Lit_Other ':') (bin)}) ] spids: [1955] ) spids: [1951 1954] ) (C {(atf_test_case)} {(eflag_inline)}) (FuncDef name: eflag_inline_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'inline:' argument"))}) ] spids: [2050] ) spids: [2046 2049] ) (FuncDef name: eflag_inline_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('true 1>&2'))} {(-e)} {(inline) (Lit_Other ':')}) (C {(h_pass)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(inline) (Lit_Other ':') (DQ ('foo bar') (Lit_Other '\\') (n))} ) (C {(h_pass)} {(DQ ("printf 'foo bar' 1>&2"))} {(-e)} {(inline) (Lit_Other ':') (DQ ('foo bar'))} ) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (t) (Lit_Other '\\') (n) (Lit_Other '\\') (t) (Lit_Other '\\') ("n' 1>&2") ) } {(-e)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (t) (Lit_Other '\\') (n) (Lit_Other '\\') (t) (Lit_Other '\\') (n)) } ) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (a) (Lit_Other '\\') (b) (Lit_Other '\\') (033) (Lit_Other '\\') (f) (Lit_Other '\\') (n) (Lit_Other '\\') (r) (Lit_Other '\\') (t) (Lit_Other '\\') ("v' 1>&2") ) } {(-e)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (a) (Lit_Other '\\') (b) (Lit_Other '\\') (e) (Lit_Other '\\') (f) (Lit_Other '\\') (n) (Lit_Other '\\') (r) (Lit_Other '\\') (t) (Lit_Other '\\') (v) ) } ) (C {(h_pass)} { (DQ ("printf '") (Lit_Other '\\') (011) (Lit_Other '\\') (022) (Lit_Other '\\') (033) (Lit_Other '\\') ("012' 1>&2") ) } {(-e)} {(inline) (Lit_Other ':') (DQ (Lit_Other '\\') (011) (Lit_Other '\\') (022) (Lit_Other '\\') (033) (Lit_Other '\\') (012) ) } ) (C {(h_fail)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(inline) (Lit_Other ':') (DQ ('foo bar'))}) (C {(h_fail)} {(DQ ('echo -n foo bar 1>&2'))} {(-e)} {(inline) (Lit_Other ':') (DQ ('foo bar') (Lit_Other '\\') (n))} ) ] spids: [2069] ) spids: [2065 2068] ) (C {(atf_test_case)} {(eflag_save)}) (FuncDef name: eflag_save_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'save:' argument"))}) ] spids: [2265] ) spids: [2261 2264] ) (FuncDef name: eflag_save_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('echo foo 1>&2'))} {(-e)} {(save) (Lit_Other ':') (out)}) (SimpleCommand words: [{(echo)} {(foo)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(exp)} spids:[2304])] ) (AndOr children: [ (C {(cmp)} {(-s)} {(out)} {(exp)}) (C {(atf_fail)} {(DQ ('Saved output does not match expected results'))}) ] op_id: Op_DPipe ) ] spids: [2284] ) spids: [2280 2283] ) (C {(atf_test_case)} {(eflag_match)}) (FuncDef name: eflag_match_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ("Tests for the -e option using the 'match:' argument"))}) ] spids: [2335] ) spids: [2331 2334] ) (FuncDef name: eflag_match_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('printf no-newline 1>&2'))} {(-e)} {(DQ ('match:^no-newline'))}) (C {(h_pass)} {(DQ ('echo line1 1>&2; echo foo bar 1>&2'))} {(-e)} {(DQ ('match:^foo'))}) (C {(h_pass)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(DQ ('match:o b'))}) (C {(h_fail)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(DQ ('match:baz'))}) (C {(h_fail)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(DQ ('match:^bar'))}) ] spids: [2354] ) spids: [2350 2353] ) (C {(atf_test_case)} {(eflag_multiple)}) (FuncDef name: eflag_multiple_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for multiple occurrences of the -e option'))}) ] spids: [2432] ) spids: [2428 2431] ) (FuncDef name: eflag_multiple_body body: (BraceGroup children: [ (C {(h_pass)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(match) (Lit_Other ':') (foo)} {(-e)} {(match) (Lit_Other ':') (bar)} ) (C {(h_pass)} {(DQ ('echo foo 1>&2; echo bar 1>&2'))} {(-e)} {(match) (Lit_Other ':') (foo)} {(-e)} {(match) (Lit_Other ':') (bar)} ) (C {(h_fail)} {(DQ ('echo foo baz 1>&2'))} {(-e)} {(match) (Lit_Other ':') (bar)} {(-e)} {(match) (Lit_Other ':') (foo)} ) (C {(h_fail)} {(DQ ('echo foo 1>&2; echo baz 1>&2'))} {(-e)} {(match) (Lit_Other ':') (bar)} {(-e)} {(match) (Lit_Other ':') (foo)} ) ] spids: [2451] ) spids: [2447 2450] ) (C {(atf_test_case)} {(eflag_negated)}) (FuncDef name: eflag_negated_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for negated occurrences of the -e option'))}) ] spids: [2540] ) spids: [2536 2539] ) (FuncDef name: eflag_negated_body body: (BraceGroup children: [ (C {(h_fail)} {(DQ ('echo foo 1>&2'))} {(-e)} {(empty)}) (C {(h_pass)} {(DQ ('echo foo 1>&2'))} {(-e)} {(not-empty)}) (C {(h_pass)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(match) (Lit_Other ':') (foo)}) (C {(h_fail)} {(DQ ('echo foo bar 1>&2'))} {(-e)} {(not-match) (Lit_Other ':') (foo)}) ] spids: [2559] ) spids: [2555 2558] ) (C {(atf_test_case)} {(stdin)}) (FuncDef name: stdin_head body: (BraceGroup children: [(C {(atf_set)} {(DQ (descr))} {(DQ ('Tests that stdin is preserved'))})] spids: [2621] ) spids: [2617 2620] ) (FuncDef name: stdin_body body: (BraceGroup children: [ (AndOr children: [ (Pipeline children: [ (C {(echo)} {(DQ (hello))}) (C {(${ VSub_Name Atf_Check)} {(-o)} {(match) (Lit_Other ':') (DQ (hello))} {(cat)}) ] negated: False ) (C {(atf_fail)} {(DQ ('atf-check does not seem to respect stdin'))}) ] op_id: Op_DPipe ) ] spids: [2640] ) spids: [2636 2639] ) (C {(atf_test_case)} {(invalid_umask)}) (FuncDef name: invalid_umask_head body: (BraceGroup children: [ (C {(atf_set)} {(DQ (descr))} {(DQ ('Tests for a correct error condition if the umask is'))} {(DQ ('too restrictive'))} ) ] spids: [2686] ) spids: [2682 2685] ) (FuncDef name: invalid_umask_body body: (BraceGroup children: [ (C {(umask)} {(0222)}) (AndOr children: [ (SimpleCommand words: [{(${ VSub_Name Atf_Check)} {(false)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(stderr)} spids:[2725])] ) (C {(atf_fail)} {(DQ ('atf-check returned 0 but it should have failed'))}) ] op_id: Op_DAmp ) (C {(cat)} {(stderr)}) (AndOr children: [ (SimpleCommand words: [{(grep)} {(SQ <'temporary.*current umask.*0222'>)} {(stderr)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/dev/null)} spids: [2752] ) ] ) (C {(atf_fail)} {(DQ ('atf-check did not report an error related to the'))} {(DQ ('current umask'))} ) ] op_id: Op_DPipe ) ] spids: [2711] ) spids: [2707 2710] ) (FuncDef name: atf_init_test_cases body: (BraceGroup children: [ (C {(atf_add_test_case)} {(sflag_eq_ne)}) (C {(atf_add_test_case)} {(sflag_exit)}) (C {(atf_add_test_case)} {(sflag_ignore)}) (C {(atf_add_test_case)} {(sflag_signal)}) (C {(atf_add_test_case)} {(xflag)}) (C {(atf_add_test_case)} {(oflag_empty)}) (C {(atf_add_test_case)} {(oflag_ignore)}) (C {(atf_add_test_case)} {(oflag_file)}) (C {(atf_add_test_case)} {(oflag_inline)}) (C {(atf_add_test_case)} {(oflag_match)}) (C {(atf_add_test_case)} {(oflag_save)}) (C {(atf_add_test_case)} {(oflag_multiple)}) (C {(atf_add_test_case)} {(oflag_negated)}) (C {(atf_add_test_case)} {(eflag_empty)}) (C {(atf_add_test_case)} {(eflag_ignore)}) (C {(atf_add_test_case)} {(eflag_file)}) (C {(atf_add_test_case)} {(eflag_inline)}) (C {(atf_add_test_case)} {(eflag_match)}) (C {(atf_add_test_case)} {(eflag_save)}) (C {(atf_add_test_case)} {(eflag_multiple)}) (C {(atf_add_test_case)} {(eflag_negated)}) (C {(atf_add_test_case)} {(stdin)}) (C {(atf_add_test_case)} {(invalid_umask)}) ] spids: [2778] ) spids: [2774 2777] ) ] )