*** Running test-abuild OK test-abuild *** Running test-and-or OK test-and-or *** Running test-autoconf-backtick OK test-autoconf-backtick *** Running test-case-in-subshell OK test-case-in-subshell *** Running test-command-sub OK test-command-sub *** Running test-command-sub-2 OK test-command-sub-2 *** Running test-comments OK test-comments *** Running test-complex-here-docs OK test-complex-here-docs *** Running test-configure ./configure: Wrote _build/detected-cpp-config.h ./configure: Wrote _build/detected-config.sh ./configure: Wrote _build/detected-config.h ./configure: Wrote _build/detected-cpp-config.h ./configure: Wrote _build/detected-config.sh ./configure: Wrote _build/detected-config.h OK test-configure *** Running test-configure-bug two two OK test-configure-bug *** Running test-count shopt -s lastpipe ^~~~~ metrics/source-code.sh:146: 'shopt' got invalid option 'lastpipe' --- _tmp/shebang.txt 2024-10-28 03:07:41.271426116 +0000 +++ _tmp/osh.txt 2024-10-28 03:07:41.271426116 +0000 @@ -1,577 +0,0 @@ -mycpp Translator - 38 mycpp/crash.py - 60 mycpp/compare_pairs.py - 99 mycpp/ir_pass.py - 114 mycpp/format_strings.py - 177 mycpp/util.py - 238 mycpp/visitor.py - 270 mycpp/mops.py - 423 mycpp/mycpp_main.py - 465 mycpp/debug_pass.py - 532 mycpp/const_pass.py - 532 mycpp/mylib.py - 559 mycpp/control_flow_pass.py - 610 mycpp/pass_state.py - 3107 mycpp/cppgen_pass.py - 7224 total - -mycpp Test Data - 0 mycpp/examples/__init__.py - 13 mycpp/examples/invalid_print.py - 15 mycpp/examples/invalid_format_args.py - 18 mycpp/examples/invalid_global.py - 20 mycpp/examples/invalid_format_strings.py - 31 mycpp/examples/invalid_condition.py - 31 mycpp/examples/invalid_types.py - 31 mycpp/examples/invalid_types_2.py - 33 mycpp/examples/test_small_str.py - 38 mycpp/examples/invalid_except.py - 38 mycpp/examples/invalid_try_else.py - 44 mycpp/examples/invalid_default_args.py - 45 mycpp/examples/test_arith_ops.py - 47 mycpp/examples/lexer_main.py - 49 mycpp/examples/fib_recursive.py - 49 mycpp/examples/varargs.py - 53 mycpp/examples/fib_iter.py - 54 mycpp/examples/tuple_return_value.py - 61 mycpp/examples/invalid_python.py - 61 mycpp/examples/test_hoist.py - 62 mycpp/examples/cgi.py - 62 mycpp/examples/test_globals.py - 64 mycpp/examples/files.py - 65 mycpp/examples/asdl_generated.py - 65 mycpp/examples/test_ctx_pattern.py - 66 mycpp/examples/test_conditional.py - 70 mycpp/examples/escape.py - 74 mycpp/examples/test_integers.py - 75 mycpp/examples/test_default_args.py - 78 mycpp/examples/cartesian.py - 80 mycpp/examples/test_switch.py - 81 mycpp/examples/modules.py - 84 mycpp/examples/invalid_switch.py - 101 mycpp/examples/test_iterators.py - 106 mycpp/examples/pgen2_demo.py - 109 mycpp/examples/length.py - 113 mycpp/examples/control_flow.py - 131 mycpp/examples/test_io_os_error.py - 177 mycpp/examples/loops.py - 187 mycpp/examples/gc_stack_roots.py - 211 mycpp/examples/test_cast.py - 212 mycpp/examples/test_classes_gc.py - 221 mycpp/examples/scoped_resource.py - 271 mycpp/examples/parse.py - 272 mycpp/examples/test_strings.py - 289 mycpp/examples/containers.py - 298 mycpp/examples/classes.py - 4355 total - -Zephyr ASDL - 11 asdl/util.py - 51 asdl/pybase.py - 67 asdl/runtime.py - 136 asdl/visitor.py - 238 asdl/ast.py - 299 asdl/asdl_main.py - 515 asdl/front_end.py - 535 asdl/format.py - 611 asdl/gen_python.py - 826 asdl/gen_cpp.py - 3289 total - -pgen2 Parser Generator - 67 pgen2/pnode.py - 101 pgen2/driver.py - 149 pgen2/token.py - 225 pgen2/parse.py - 303 pgen2/grammar.py - 430 pgen2/pgen.py - 579 pgen2/tokenize.py - 1854 total - -Other Code Generators - 66 cpp/embedded_file_gen.py - 94 core/optview_gen.py - 94 frontend/option_gen.py - 99 osh/arith_parse_gen.py - 105 frontend/signal_gen.py - 245 ysh/grammar_gen.py - 500 frontend/lexer_gen.py - 540 frontend/flag_gen.py - 651 frontend/consts_gen.py - 658 doctools/help_gen.py - 3052 total - -Yaks - 104 yaks/gen_cpp.py - 156 yaks/yaks_main.py - 250 yaks/transform.py - 510 total - -Hand-written C++ Code - 11 cpp/translation_stubs.h - 16 cpp/osh_tdop.cc - 18 cpp/embedded_file.h - 18 cpp/fanos.h - 22 cpp/pylib.h - 34 cpp/data_lang.h - 38 cpp/libc.h - 44 cpp/pgen2.cc - 48 cpp/preamble.h - 49 cpp/fanos_shared.h - 50 cpp/osh.h - 52 cpp/osh_tdop.h - 57 cpp/fanos.cc - 58 cpp/pylib.cc - 73 cpp/frontend_pyreadline.h - 86 cpp/pgen2.h - 92 cpp/frontend_match.h - 151 cpp/frontend_flag_spec.h - 155 cpp/frontend_match.cc - 161 cpp/osh.cc - 177 cpp/stdlib.h - 231 cpp/frontend_flag_spec.cc - 241 cpp/libc.cc - 258 cpp/stdlib.cc - 271 cpp/data_lang.cc - 288 cpp/core.h - 336 cpp/frontend_pyreadline.cc - 436 cpp/core.cc - 3471 total - -Garbage-Collected Runtime - 22 mycpp/hash.h - 24 mycpp/runtime.h - 24 mycpp/test_common.h - 39 mycpp/probes.h - 45 mycpp/hash.cc - 58 mycpp/gc_slab.h - 70 mycpp/gc_mops.cc - 90 mycpp/comparators.h - 92 mycpp/common.h - 119 mycpp/gc_mops.h - 151 mycpp/gc_tuple.h - 175 mycpp/gc_builtins.h - 179 mycpp/gc_obj.h - 219 mycpp/gc_str.h - 258 mycpp/gc_alloc.h - 294 mycpp/mark_sweep_heap.h - 303 mycpp/gc_mylib.cc - 381 mycpp/gc_mylib.h - 438 mycpp/mark_sweep_heap.cc - 461 mycpp/gc_builtins.cc - 471 mycpp/gc_dict.h - 521 mycpp/gc_list.h - 645 mycpp/gc_str.cc - 5079 total - -Unit tests in C++ - 32 cpp/pgen2_test.cc - 50 cpp/osh_test.cc - 52 cpp/pylib_test.cc - 62 mycpp/bump_leak_heap_test.cc - 71 cpp/unicode_test.cc - 87 cpp/frontend_match_test.cc - 128 mycpp/gc_mops_test.cc - 139 mycpp/gc_tuple_test.cc - 150 mycpp/float_test.cc - 154 cpp/frontend_flag_spec_test.cc - 158 cpp/stdlib_test.cc - 178 cpp/data_lang_test.cc - 206 cpp/data_race_test.cc - 215 cpp/obj_layout_test.cc - 222 mycpp/gc_stress_test.cc - 327 mycpp/gc_mylib_test.cc - 370 mycpp/mark_sweep_heap_test.cc - 403 cpp/libc_test.cc - 447 mycpp/gc_builtins_test.cc - 449 cpp/core_test.cc - 479 mycpp/gc_heap_test.cc - 502 mycpp/small_str_test.cc - 561 mycpp/gc_list_test.cc - 745 mycpp/gc_dict_test.cc - 1558 mycpp/gc_str_test.cc - 7745 total - -Incremental C++ Build - 16 display/NINJA_subgraph.py - 19 pea/NINJA_subgraph.py - 32 osh/NINJA_subgraph.py - 39 ysh/NINJA_subgraph.py - 56 asdl/NINJA_subgraph.py - 58 core/NINJA_subgraph.py - 66 data_lang/NINJA_subgraph.py - 79 prebuilt/NINJA_subgraph.py - 93 yaks/NINJA_subgraph.py - 137 NINJA-config.sh - 141 bin/NINJA_subgraph.py - 175 frontend/NINJA_subgraph.py - 227 cpp/NINJA_subgraph.py - 255 build/ninja_lib_test.py - 364 build/ninja-rules-py.sh - 390 build/ninja-rules-cpp.sh - 432 build/ninja_main.py - 443 mycpp/NINJA_subgraph.py - 555 build/ninja_lib.py - 3577 total - -OSH (and common libraries) - 11 pyext/fastfunc.pyi - 15 display/ansi.py - 18 pyext/libc.pyi - 21 pyext/fastlex.pyi - 24 core/num.py - 30 display/pretty.asdl - 32 pyext/line_input.pyi - 58 core/optview.py - 61 frontend/types.asdl - 68 frontend/flag_util.py - 94 frontend/signal_def.py - 117 frontend/py_readline.py - 119 pyext/fanos.c - 127 builtin/misc_osh.py - 133 pyext/fastfunc.c - 135 osh/bool_stat.py - 141 frontend/syntax_abbrev.py - 142 builtin/readline_osh.py - 166 frontend/builtin_def.py - 168 core/util.py - 182 builtin/io_osh.py - 188 core/runtime.asdl - 193 osh/history.py - 197 osh/arith_parse.py - 201 bin/oils_for_unix.py - 210 pyext/posix_.pyi - 220 core/value.asdl - 225 core/pyutil.py - 272 osh/bool_parse.py - 276 frontend/reader.py - 292 builtin/bracket_osh.py - 303 display/pretty.py - 309 osh/word_compile.py - 310 frontend/match.py - 311 osh/split.py - 319 builtin/trap_osh.py - 320 core/alloc.py - 342 core/vm.py - 342 osh/tdop.py - 345 core/error.py - 349 builtin/dirs_osh.py - 349 frontend/flag_spec.py - 362 osh/prompt.py - 389 pyext/fastlex.c - 399 frontend/consts.py - 403 core/main_loop.py - 405 frontend/parse_lib.py - 416 frontend/option_def.py - 421 pyext/libc.c - 448 core/pyos.py - 455 frontend/lexer.py - 494 osh/glob_.py - 501 display/pp_value.py - 508 builtin/completion_osh.py - 528 builtin/read_osh.py - 539 osh/braces.py - 545 osh/string_ops.py - 547 builtin/printf_osh.py - 549 frontend/flag_def.py - 571 frontend/location.py - 573 builtin/pure_osh.py - 575 builtin/assign_osh.py - 578 core/comp_ui.py - 596 builtin/process_osh.py - 602 display/ui.py - 651 frontend/syntax.asdl - 675 frontend/args.py - 684 frontend/typed_args.py - 749 core/executor.py - 767 core/dev.py - 805 osh/word_.py - 809 frontend/id_kind_def.py - 1137 frontend/lexer_def.py - 1233 osh/sh_expr_eval.py - 1255 core/shell.py - 1516 core/completion.py - 1972 core/process.py - 2219 osh/word_parse.py - 2287 osh/cmd_eval.py - 2435 osh/word_eval.py - 2862 osh/cmd_parse.py - 2968 core/state.py - 44163 total - -YSH - 32 builtin/method_other.py - 69 builtin/completion_ysh.py - 95 builtin/method_dict.py - 100 builtin/method_list.py - 139 builtin/json_ysh.py - 141 builtin/method_type.py - 141 builtin/module_ysh.py - 151 builtin/func_hay.py - 186 builtin/func_eggex.py - 215 builtin/method_io.py - 227 builtin/func_reflect.py - 227 builtin/pure_ysh.py - 301 builtin/io_ysh.py - 308 builtin/error_ysh.py - 387 ysh/expr_parse.py - 393 ysh/regex_translate.py - 429 builtin/hay_ysh.py - 541 ysh/grammar.pgen2 - 560 ysh/val_ops.py - 587 builtin/method_str.py - 597 ysh/func_proc.py - 737 builtin/func_misc.py - 848 builtin/meta_oils.py - 1578 ysh/expr_eval.py - 1721 ysh/expr_to_ast.py - 10710 total - -Data Languages - 27 data_lang/pyj8.py - 28 data_lang/j8_libc.h - 31 data_lang/nil8.asdl - 54 data_lang/j8_lite.py - 170 data_lang/utf8.h - 221 data_lang/j8_libc.c - 314 data_lang/j8.h - 1387 data_lang/j8.py - 2232 total - -Tools - 25 tools/fmt.py - 31 tools/readlink.py - 149 tools/deps.py - 1125 tools/ysh_ify.py - 1330 total - -Spec Tests - 11 spec/comments.test.sh - 16 spec/builtin-times.test.sh - 19 spec/ysh-bin.test.sh - 23 spec/let.test.sh - 23 spec/subshell.test.sh - 24 spec/empty-bodies.test.sh - 25 spec/ysh-stdlib.test.sh - 28 spec/ysh-tuple.test.sh - 29 spec/ysh-source.test.sh - 30 spec/vars-bash.test.sh - 31 spec/osh-bugs.test.sh - 37 spec/interactive-parse.test.sh - 37 spec/ysh-interactive.test.sh - 37 spec/ysh-keywords.test.sh - 37 spec/ysh-stdlib-args.test.sh - 42 spec/explore-parsing.test.sh - 42 spec/ysh-expr-sub.test.sh - 43 spec/var-num.test.sh - 45 spec/array-basic.test.sh - 45 spec/ysh-var-sub.test.sh - 45 spec/zsh-idioms.test.sh - 48 spec/ysh-reserved.test.sh - 50 spec/ysh-special-vars.test.sh - 53 spec/assoc-zsh.test.sh - 54 spec/ysh-cmd-lang.test.sh - 54 spec/ysh-env.test.sh - 55 spec/if_.test.sh - 56 spec/ysh-namespaces.test.sh - 57 spec/blog-other1.test.sh - 59 spec/ysh-demo.test.sh - 60 spec/blog2.test.sh - 60 spec/var-sub.test.sh - 61 spec/assign-dialects.test.sh - 62 spec/word-eval.test.sh - 64 spec/command-parsing.test.sh - 71 spec/nocasematch-match.test.sh - 77 spec/ysh-usage.test.sh - 85 spec/ysh-builtin-process.test.sh - 86 spec/ysh-funcs-external.test.sh - 86 spec/ysh-method-io.test.sh - 94 spec/sh-usage.test.sh - 95 spec/arith-dynamic.test.sh - 95 spec/blog1.test.sh - 105 spec/assign-deferred.test.sh - 106 spec/func-parsing.test.sh - 106 spec/ysh-options-assign.test.sh - 114 spec/whitespace.test.sh - 116 spec/ysh-TODO-deprecate.test.sh - 117 spec/builtin-type.test.sh - 120 spec/ysh-dict.test.sh - 124 spec/ysh-builtin-help.test.sh - 126 spec/smoke.test.sh - 136 spec/ysh-place.test.sh - 141 spec/builtin-special.test.sh - 141 spec/ysh-user-feedback.test.sh - 143 spec/toysh.test.sh - 144 spec/ysh-word-eval.test.sh - 145 spec/ysh-prompt.test.sh - 147 spec/ysh-command-sub.test.sh - 152 spec/sh-func.test.sh - 153 spec/posix.test.sh - 158 spec/nul-bytes.test.sh - 159 spec/globignore.test.sh - 159 spec/type-compat.test.sh - 161 spec/builtin-misc.test.sh - 163 spec/ysh-dev.test.sh - 168 spec/ysh-builtin-ctx.test.sh - 169 spec/hay-isolation.test.sh - 173 spec/for-expr.test.sh - 177 spec/ysh-list.test.sh - 179 spec/ysh-closures.test.sh - 179 spec/ysh-multiline.test.sh - 182 spec/ysh-control-flow.test.sh - 183 spec/ysh-builtin-shopt.test.sh - 184 spec/background.test.sh - 184 spec/tilde.test.sh - 184 spec/ysh-unicode.test.sh - 185 spec/ysh-expr-bool.test.sh - 186 spec/builtin-bind.test.sh - 186 spec/fatal-errors.test.sh - 189 spec/array-compat.test.sh - 190 spec/ysh-convert.test.sh - 192 spec/builtin-bash.test.sh - 192 spec/ysh-for.test.sh - 194 spec/command_.test.sh - 196 spec/nix-idioms.test.sh - 196 spec/unicode.test.sh - 198 spec/builtin-history.test.sh - 204 spec/process-sub.test.sh - 204 spec/ysh-completion.test.sh - 205 spec/dparen.test.sh - 206 spec/shell-grammar.test.sh - 213 spec/ysh-func-builtin.test.sh - 216 spec/arith-context.test.sh - 220 spec/var-op-len.test.sh - 220 spec/ysh-int-float.test.sh - 221 spec/ysh-with-sh.test.sh - 226 spec/parse-errors.test.sh - 230 spec/serialize.test.sh - 231 spec/quote.test.sh - 234 spec/pipeline.test.sh - 241 spec/builtin-dirs.test.sh - 241 spec/ysh-proc-meta.test.sh - 244 spec/case_.test.sh - 245 spec/ysh-augmented.test.sh - 245 spec/ysh-case.test.sh - 248 spec/builtin-echo.test.sh - 253 spec/prompt.test.sh - 257 spec/hay-meta.test.sh - 263 spec/ysh-object.test.sh - 277 spec/strict-options.test.sh - 278 spec/ysh-slice-range.test.sh - 280 spec/exit-status.test.sh - 285 spec/command-sub.test.sh - 287 spec/introspect.test.sh - 295 spec/ysh-bugs.test.sh - 303 spec/append.test.sh - 304 spec/builtin-cd.test.sh - 306 spec/redirect-command.test.sh - 308 spec/redirect-multi.test.sh - 312 spec/var-sub-quote.test.sh - 326 spec/builtin-type-bash.test.sh - 334 spec/ble-idioms.test.sh - 339 spec/ysh-blocks.test.sh - 343 spec/interactive.test.sh - 344 spec/toysh-posix.test.sh - 345 spec/builtin-eval-source.test.sh - 347 spec/builtin-getopts.test.sh - 356 spec/ysh-builtin-meta.test.sh - 357 spec/var-op-strip.test.sh - 366 spec/builtin-trap.test.sh - 369 spec/xtrace.test.sh - 370 spec/here-doc.test.sh - 384 spec/extglob-files.test.sh - 388 spec/glob.test.sh - 391 spec/ysh-printing.test.sh - 397 spec/var-op-bash.test.sh - 400 spec/extglob-match.test.sh - 403 spec/var-op-slice.test.sh - 405 spec/bugs.test.sh - 413 spec/var-op-patsub.test.sh - 416 spec/ysh-expr-compare.test.sh - 421 spec/word-split.test.sh - 423 spec/ysh-assign.test.sh - 436 spec/ysh-builtin-error.test.sh - 438 spec/dbracket.test.sh - 442 spec/ysh-expr.test.sh - 474 spec/loop.test.sh - 485 spec/redirect.test.sh - 489 spec/ysh-builtin-module.test.sh - 496 spec/ysh-func.test.sh - 502 spec/brace-expansion.test.sh - 509 spec/var-ref.test.sh - 520 spec/var-op-test.test.sh - 532 spec/errexit.test.sh - 571 spec/alias.test.sh - 581 spec/builtin-bracket.test.sh - 588 spec/builtin-process.test.sh - 591 spec/ysh-xtrace.test.sh - 593 spec/ysh-string.test.sh - 595 spec/ysh-methods.test.sh - 596 spec/builtin-completion.test.sh - 614 spec/ysh-expr-arith.test.sh - 620 spec/builtin-meta.test.sh - 631 spec/regex.test.sh - 637 spec/nameref.test.sh - 645 spec/ble-features.test.sh - 647 spec/builtin-trap-err.test.sh - 655 spec/hay.test.sh - 657 spec/builtin-trap-bash.test.sh - 661 spec/ysh-builtin-eval.test.sh - 674 spec/assign.test.sh - 676 spec/ysh-builtins.test.sh - 707 spec/builtin-vars.test.sh - 711 spec/ysh-regex.test.sh - 763 spec/ysh-options.test.sh - 768 spec/vars-special.test.sh - 768 spec/ysh-scope.test.sh - 770 spec/builtin-read.test.sh - 797 spec/assoc.test.sh - 803 spec/array.test.sh - 814 spec/errexit-osh.test.sh - 814 spec/ysh-proc.test.sh - 879 spec/sh-options.test.sh - 881 spec/assign-extended.test.sh - 939 spec/ysh-regex-api.test.sh - 998 spec/arith.test.sh - 1109 spec/builtin-printf.test.sh - 1251 spec/ysh-json.test.sh - 56619 total - -Gold Tests - 6 test/gold/strip-op-char-class.sh - 9 test/gold/abuild.sh - 12 test/gold/command-sub-2.sh - 13 test/gold/configure-bug.sh - 22 test/gold/comments.sh - 23 test/gold/lineno.sh - 24 test/gold/de1.sh - 24 test/gold/readonly.sh - 26 test/gold/glob.sh - 27 test/gold/and-or.sh - 28 test/gold/declare.sh - 32 test/gold/nix.sh - 33 test/gold/char-class.sh - 36 test/gold/echo-e.sh - 37 test/gold/case-in-subshell.sh - 39 test/gold/command-sub.sh - 42 test/gold/dollar-sq.sh - 50 test/gold/autoconf-backtick.sh - 57 test/gold/word-eval.sh - 61 test/gold/readlink.sh - 65 test/gold/export.sh - 121 test/gold/errexit.sh - 126 test/gold/scope.sh - 139 test/gold/errexit-confusion.sh - 192 test/gold/complex-here-docs.sh - 1531 test/gold/big-here-doc.sh - 2775 total - -Generated C++ Code - 6 _gen/frontend/help_meta.h - 46 _gen/frontend/types.asdl_c.h - 412 _gen/frontend/id_kind.asdl_c.h - 492 _gen/frontend/help_meta.cc - 1323 _gen/_tmp/match.re2c-input.h - 24784 _gen/frontend/match.re2c.h - 27063 total - FAIL FAIL test-count