(CommandList children: [ (C {(set)} {(-o)} {(nounset)}) (C {(set)} {(-o)} {(pipefail)}) (C {(set)} {(-o)} {(errexit)}) (C {(source)} {(test/common.sh)}) (C {(export)} {(Lit_VarLike 'PYTHONPATH=') (.)}) (FuncDef name: unit body: (BraceGroup children:[(C {(DQ ($ VSub_At '$@'))})] spids:[74]) spids: [70 73] ) (FuncDef name: delete-pyc body: (BraceGroup children: [ (AndOr children: [ (Pipeline children: [ (C {(find)} {(.)} {(-name)} {(SQ <'*.pyc'>)}) (C {(xargs)} {(--no-run-if-empty)} {(--)} {(rm)}) ] negated: False ) (C {(true)}) ] op_id: Op_DPipe ) ] spids: [93] ) spids: [89 92] ) (Assignment keyword: Assign_Readonly pairs: [ (assign_pair lhs: (LhsName name:PY_273) op: Equal rhs: {(TildeSubPart prefix:'') (/src/languages/Python-2.7.3/python)} spids: [125] ) ] spids: [123] ) (Assignment keyword: Assign_Readonly pairs: [ (assign_pair lhs: (LhsName name:PY_272) op: Equal rhs: {(TildeSubPart prefix:'') (/src/languages/Python-2.7.2/python)} spids: [131] ) ] spids: [129] ) (Assignment keyword: Assign_Readonly pairs: [ (assign_pair lhs: (LhsName name:PY_27) op: Equal rhs: {(TildeSubPart prefix:'') (/src/languages/Python-2.7/python)} spids: [137] ) ] spids: [135] ) (FuncDef name: banner body: (BraceGroup children: [(C {(echo)} {(-----)}) (C {(echo)} {(DQ ($ VSub_At '$@'))}) (C {(echo)} {(----)})] spids: [153] ) spids: [149 152] ) (FuncDef name: tests-to-run body: (BraceGroup children: [ (ForEach iter_name: t iter_words: [ (BracedWordTree parts: [ (BracedAltPart words: [{(build)} {(test)} {(native)} {(asdl)} {(core)} {(osh)} {(tools)}] ) (/) (Lit_Other '*') (_test.py) ] ) ] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Name '$t')} right: {(Lit_Other '*') (arith_parse_test.py)} ) ) terminator: <Op_Semi ';'> ) ] action: [(ControlFlow token:<ControlFlow_Continue continue>)] spids: [16777215 233] ) ] spids: [16777215 239] ) (C {(echo)} {($ VSub_Name '$t')}) ] spids: [212 247] ) spids: [191 210] ) ] spids: [179] ) spids: [175 178] ) (FuncDef name: run-test-and-maybe-abort body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:t) op: Equal rhs: {($ VSub_Number '$1')} spids: [264] ) ] spids: [262] ) (C {(echo)}) (C {(echo)} {(DQ ('[') ($ VSub_Name '$t') (']'))}) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children: [ (SimpleCommand words: [{($ VSub_Name '$t')}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/dev/null)} spids: [286] ) ] ) ] negated: True ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)}) (C {(echo)} {(DQ ('*** ') ($ VSub_Name '$t') (' FAILED ***'))}) (C {(echo)}) (ControlFlow token: <ControlFlow_Return return> arg_word: {(255)} ) ] spids: [16777215 290] ) ] spids: [16777215 316] ) ] spids: [259] ) spids: [255 258] ) (FuncDef name: all body: (BraceGroup children: [ (TimeBlock pipeline: (Pipeline children: [ (C {(tests-to-run)}) (C {(xargs)} {(-n)} {(1)} {(--)} {($ VSub_Number '$0')} {(run-test-and-maybe-abort)}) ] negated: False ) ) (C {(echo)}) (C {(echo)} {(DQ ('All unit tests passed.'))}) ] spids: [329] ) spids: [325 328] ) (FuncDef name: run-test-and-log body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:tasks_csv) op: Equal rhs: {($ VSub_Number '$1')} spids: [382] ) ] spids: [380] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:t) op: Equal rhs: {($ VSub_Number '$2')} spids: [388] ) ] spids: [386] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:log) op: Equal rhs: {(_tmp/unit/) ($ VSub_Name '$t') (.txt)} spids: [399] ) ] spids: [397] ) (C {(mkdir)} {(-p)} { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Name '$log')})]) left_token: <Left_CommandSub '$('> spids: [409 413] ) } ) (SimpleCommand words: [ {(benchmarks/time.py)} {(--out)} {($ VSub_Name '$tasks_csv')} {(--field)} {($ VSub_Name '$t')} {(--field)} {(DQ ($ VSub_Name '$t') (.txt))} {(--)} {($ VSub_Name '$t')} ] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$log')} spids: [442] ) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[445]) ] ) ] spids: [377] ) spids: [373 376] ) (FuncDef name: run-all-and-log body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:out_dir) op:Equal rhs:{(_tmp/unit)} spids:[460])] spids: [458] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$out_dir')}) (C {(rm)} {(-r)} {(-f)} {($ VSub_Name '$out_dir') (/) (Lit_Other '*')}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:tasks_csv) op: Equal rhs: {($ VSub_Name '$out_dir') (/tasks.csv)} spids: [485] ) ] spids: [483] ) (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:status) op:Equal rhs:{(0)} spids:[493])] spids: [491] ) (SimpleCommand words: [{(echo)} {(SQ <'status,elapsed_secs,test,test_HREF'>)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$tasks_csv')} spids: [513] ) ] ) (AndOr children: [ (TimeBlock pipeline: (Pipeline children: [ (C {(tests-to-run)}) (C {(xargs)} {(-n)} {(1)} {(--)} {($ VSub_Number '$0')} {(run-test-and-log)} {($ VSub_Name '$tasks_csv')} ) ] negated: False ) ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:status) op:Equal rhs:{(1)} spids:[540])] spids: [540] ) ] op_id: Op_DPipe ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {($ VSub_Name '$status')} {(-ne)} {(0)}) terminator: <Op_Semi ';'> ) ] action: [ (C {(cat)} {($ VSub_Name '$tasks_csv')}) (C {(echo)}) (C {(echo)} {(DQ ('*** Some tests failed. See ') ($ VSub_Name '$tasks_csv') (' ***'))} ) (C {(echo)}) (ControlFlow token: <ControlFlow_Return return> arg_word: {($ VSub_Name '$status')} ) ] spids: [16777215 556] ) ] spids: [16777215 585] ) (C {(echo)}) (C {(echo)} {(DQ ('All unit tests passed.'))}) ] spids: [455] ) spids: [451 454] ) (C {(source)} {(benchmarks/common.sh)}) (FuncDef name: print-report body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:in_dir) op: Equal rhs: { (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(_tmp) (Lit_Slash /) (unit)} ) spids: [628 634] ) } spids: [627] ) ] spids: [625] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:base_url) op: Equal rhs: {(SQ <../../web>)} spids: [639] ) ] spids: [637] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('<!DOCTYPE html>\n') ('<html>\n') (' <head>\n') (' <title>Unit Test Results</title>\n') (' <script type=') (Right_DoubleQuote '"') (text/javascript) (Right_DoubleQuote '"') (' src=') (Right_DoubleQuote '"') ($ VSub_Name '$base_url') (/table/table-sort.js) (Right_DoubleQuote '"') ('></script>\n') (' <link rel=') (Right_DoubleQuote '"') (stylesheet) (Right_DoubleQuote '"') (' type=') (Right_DoubleQuote '"') (text/css) (Right_DoubleQuote '"') (' href=') (Right_DoubleQuote '"') ($ VSub_Name '$base_url') (/table/table-sort.css) (Right_DoubleQuote '"') (' />\n') (' <link rel=') (Right_DoubleQuote '"') (stylesheet) (Right_DoubleQuote '"') (' type=') (Right_DoubleQuote '"') (text/css) (Right_DoubleQuote '"') (' href=') (Right_DoubleQuote '"') ($ VSub_Name '$base_url') (/benchmarks.css) (Right_DoubleQuote '"') (' />\n') ('\n') (' </head>\n') (' <body>\n') (' <p id=') (Right_DoubleQuote '"') (home-link) (Right_DoubleQuote '"') ('>\n') (' <a href=') (Right_DoubleQuote '"') (/) (Right_DoubleQuote '"') ('>oilshell.org</a>\n') (' </p>\n') (' <h2>Unit Test Results</h2>\n') ('\n') ) } do_expansion: True here_end: EOF was_filled: True spids: [652] ) ] ) (C {(csv2html)} {($ VSub_Name '$in_dir') (/report.csv)}) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ (' </body>\n') ('</html>\n'))} do_expansion: True here_end: EOF was_filled: True spids: [724] ) ] ) ] spids: [622] ) spids: [618 621] ) (FuncDef name: write-report body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:out) op: Equal rhs: {(_tmp/unit/index.html)} spids: [762] ) ] spids: [760] ) (C {(test/report.R)} {(unit)} {(_tmp/unit)} {(_tmp/unit)}) (SimpleCommand words: [{(print-report)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$out')} spids: [777] ) ] ) (C {(echo)} {(DQ ('Wrote ') ($ VSub_Name '$out'))}) ] spids: [757] ) spids: [753 756] ) (FuncDef name: run-for-release body: (BraceGroup children:[(C {(run-all-and-log)}) (C {(write-report)})] spids:[799]) spids: [795 798] ) (C {(DQ ($ VSub_At '$@'))}) ] )