spec test index / oilshell.org
68 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 3 Named captures with _match [osh stdout] Expected "['2020', '08']\n", got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 312, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 260, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 220, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 633, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1476, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1220, in _Dispatch status = self._ExecuteList(if_arm.action) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1379, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 599, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1910, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1870, in SimpleEvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1524, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1487, in _EvalWordPart s = str(func(*pos_args, **named_args)) File "/home/andy/git/oilshell/oil/oil_lang/funcs_builtin.py", line 74, in __call__ raise TypeError('Expected an integer') TypeError: Expected an integer |
osh_ALT | 3 Named captures with _match [osh_ALT stdout] Expected "['2020', '08']\n", got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 287, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 260, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 220, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 633, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 174, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1476, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1220, in _Dispatch status = self._ExecuteList(if_arm.action) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1379, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1323, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 636, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1910, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1870, in SimpleEvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1524, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1506, in _EvalWordPart part_vals.append(part_val) File "/home/andy/git/oilshell/oil/oil_lang/funcs_builtin.py", line 74, in __call__ raise TypeError('Expected an integer') TypeError: Expected an integer FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.7/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 5 _start() and _end() [osh stdout] Expected 'start=3 end=6\nstart=3 end=6\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError('_start',) |
osh_ALT | 5 _start() and _end() [osh_ALT stdout] Expected 'start=3 end=6\nstart=3 end=6\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError('_start',) |
osh | 11 Range with escaped characters [osh stdout] Expected ' 5b 00 2d 0f 5d 0a\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 312, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 260, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 220, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 633, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 153, in Batch node = c_parser.ParseLogicalLine() # can raise ParseError File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2227, in ParseLogicalLine node = self._ParseCommandLine() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2089, in _ParseCommandLine child = self.ParseAndOr() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2019, in ParseAndOr child = self.ParsePipeline() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1965, in ParsePipeline child = self.ParseCommand() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1890, in ParseCommand return self.ParseCompoundCommand() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1641, in ParseCompoundCommand n9 = self.w_parser.ParsePlaceMutation(kw_token, self.var_checker) File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 940, in ParsePlaceMutation enode, last_token = self.parse_ctx.ParsePlaceMutation(kw_token, self.lexer) File "/home/andy/git/oilshell/oil/frontend/parse_lib.py", line 352, in ParsePlaceMutation ast_node = self.tr.MakePlaceMutation(pnode) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 685, in MakePlaceMutation rhs = self.Expr(children[2]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 451, in Expr return self._Tuple(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 226, in _Tuple return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 456, in Expr return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 483, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 487, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 492, in Expr return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 499, in Expr return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 506, in Expr return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 518, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 522, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 526, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 530, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 534, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 538, in Expr return self._AssocBinary(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 544, in Expr return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 556, in Expr node = self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 447, in Expr return self._Atom(children) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 309, in _Atom r = self._Regex(children[1]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1488, in _Regex return self._Regex(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1504, in _Regex r = self._ReAtom(children[i]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1360, in _ReAtom return re.ClassLiteral(False, self._ClassLiteral(p_child)) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1283, in _ClassLiteral terms = [self._ClassLiteralTerm(c) for c in p_node.children[1:-1]] File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1263, in _ClassLiteralTerm start = self._RangeChar(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1177, in _RangeChar raise AssertionError('TODO') AssertionError: TODO |
osh_ALT | 11 Range with escaped characters [osh_ALT stdout] Expected ' 5b 00 2d 0f 5d 0a\n', got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 287, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 260, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 220, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 633, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 153, in Batch node = c_parser.ParseLogicalLine() # can raise ParseError File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2227, in ParseLogicalLine node = self._ParseCommandLine() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2089, in _ParseCommandLine child = self.ParseAndOr() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2019, in ParseAndOr child = self.ParsePipeline() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1965, in ParsePipeline child = self.ParseCommand() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1890, in ParseCommand return self.ParseCompoundCommand() File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1641, in ParseCompoundCommand n9 = self.w_parser.ParsePlaceMutation(kw_token, self.var_checker) File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 940, in ParsePlaceMutation enode, last_token = self.parse_ctx.ParsePlaceMutation(kw_token, self.lexer) File "/home/andy/git/oilshell/oil/frontend/parse_lib.py", line 352, in ParsePlaceMutation ast_node = self.tr.MakePlaceMutation(pnode) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 685, in MakePlaceMutation rhs = self.Expr(children[2]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 226, in _Tuple return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 103, in _AssocBinary return self.Expr(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 608, in Expr return expr.Var(tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 309, in _Atom r = self._Regex(children[1]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1488, in _Regex return self._Regex(children[0]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1504, in _Regex r = self._ReAtom(children[i]) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1360, in _ReAtom return re.ClassLiteral(False, self._ClassLiteral(p_child)) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1283, in _ClassLiteral terms = [self._ClassLiteralTerm(c) for c in p_node.children[1:-1]] File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1269, in _ClassLiteralTerm return self._NameInClass(children[0].tok, children[1].tok) File "/home/andy/git/oilshell/oil/oil_lang/expr_to_ast.py", line 1193, in _RangeChar p_die(RANGE_POINT_TOO_LONG, token=tok) AssertionError: TODO FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.7/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 15 Named Capture With ~ Assigns Variable [osh stdout] Expected '([[:digit:]]+)\nyes\nTODO MONTH\n', got '([[:digit:]]+)\nyes\n' [osh status] Expected 0, got 1 stdout: ([[:digit:]]+) yesstderr: = month ^~~~~ [ stdin ]:6: fatal: Undefined variable 'month' |
osh_ALT | 15 Named Capture With ~ Assigns Variable [osh_ALT stdout] Expected '([[:digit:]]+)\nyes\nTODO MONTH\n', got '([[:digit:]]+)\nyes\n' [osh_ALT status] Expected 0, got 1 stdout: ([[:digit:]]+) yesstderr: = month ^~~~~ [ stdin ]:6: fatal: Undefined variable 'month' |