(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SRCDIR spids:[82]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(atf_get_srcdir)})]) left_token: <Left_CommandSub '$('> spids: [83 85] ) } spids: [82] ) ] spids: [82] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TESTER spids:[87]) op: Equal rhs: {(DQ (${ VSub_Name SRCDIR) (/libarchive_test))} spids: [87] ) ] spids: [87] ) (command.FuncDef name: check body: (command.BraceGroup children: [ (command.Sentence child: (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:testcase spids:[105]) op: Equal rhs: {(${ VSub_Number 1)} spids: [105] ) ] spids: [103] ) terminator: <Op_Semi ';'> ) (C {(shift)}) (C {(atf_check)} {(-o)} {(ignore)} {(-s)} {(ControlFlow_Exit exit) (Lit_Other ':') (0)} {(${ VSub_Name TESTER)} {(-d)} {(-r)} {(DQ (${ VSub_Name SRCDIR))} {(-v)} {(DQ (${ VSub_Name testcase))} ) ] spids: [100] ) spids: [96 99] ) (command.FuncDef name: atf_init_test_cases body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:testcases spids:[171]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [{(${ VSub_Name TESTER)} {(-h)}] redirects: [ (redir.Redir op: <Redir_GreatAnd '2>&'> fd: 2 arg_word: {(1)} ) ] ) (C {(awk)} { (SQ < 'p != 0 && $1 ~ /^[0-9]+:/ { print $NF } /Available tests:/ { p=1 }' > ) } ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [172 189] ) } spids: [171] ) ] spids: [171] ) (command.ForEach iter_name: testcase iter_words: [{(${ VSub_Name testcases)}] do_arg_iter: F body: (command.DoGroup children: [ (C {(atf_test_case)} {(${ VSub_Name testcase)}) (C {(eval)} { (DQ (${ VSub_Name testcase) ('_body() { check ') (${ VSub_Name testcase) ('; }')) } ) (C {(atf_add_test_case)} {(${ VSub_Name testcase)}) ] spids: [203 234] ) spids: [197 201] ) ] spids: [156] ) spids: [152 155] ) ] )