spec test index / oilshell.org
163 passed, 15 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
osh_.py | 6 Arith sub with word parts [osh_.py stdout] Expected '14\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, 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 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1360, in _EvalWordPart num = self.arith_ev.EvalToInt(part.anode) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt val = self.Eval(node) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 566, in Eval rhs = self.EvalToInt(node.right) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt val = self.Eval(node) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 408, in Eval return self.word_ev.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 6 Arith sub with word parts [osh_.cc stdout] Expected '14\n', got '4\n' stdout: 4stderr: |
osh_.py | 9 Backticks within arith sub [osh_.py stdout] Expected '3\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, 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 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1360, in _EvalWordPart num = self.arith_ev.EvalToInt(part.anode) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt val = self.Eval(node) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 565, in Eval lhs = self.EvalToInt(node.left) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 367, in EvalToInt val = self.Eval(node) File "/home/andy/git/oilshell/oil/osh/sh_expr_eval.py", line 408, in Eval return self.word_ev.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 9 Backticks within arith sub [osh_.cc stdout] Expected '3\n', got '2\n' stdout: 2stderr: |
osh | 10 Invalid string to int stdout: 5stderr: |
osh_.py | 10 Invalid string to int stdout: 5stderr: |
osh_.cc | 10 Invalid string to int stdout: 5stderr: |
osh | 35 Dynamic var names - result of runtime parse/eval stdout: 6stderr: |
osh_.py | 35 Dynamic var names - result of runtime parse/eval stdout: 6stderr: |
osh_.cc | 35 Dynamic var names - result of runtime parse/eval stdout: 6stderr: |
osh | 36 Bizarre recursive name evaluation - result of runtime parse/eval stdout: 6 1 1 1stderr: |
osh_.py | 36 Bizarre recursive name evaluation - result of runtime parse/eval stdout: 6 1 1 1stderr: |
osh_.cc | 36 Bizarre recursive name evaluation - result of runtime parse/eval stdout: 6 1 1 1stderr: |
osh_.cc | 38 Integer Overflow [osh_.cc stdout] Expected '999996000005999996000001\n', got '-15640831\n' stdout: -15640831stderr: |
osh | 46 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Expected first ) to end arith sub |
osh_.py | 46 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Expected first ) to end arith sub |
osh_.cc | 46 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Expected first ) to end arith sub |
osh | 49 Double subscript stdout: 2stderr: echo $(( a[1][1] )) ^ [ stdin ]:3: The [ operator doesn't apply to this expression |
osh_.py | 49 Double subscript stdout: 2stderr: echo $(( a[1][1] )) ^ [ stdin ]:3: The [ operator doesn't apply to this expression |
osh_.cc | 49 Double subscript stdout: 2stderr: echo $(( a[1][1] )) ^ [ stdin ]:3: The [ operator doesn't apply to this expression |