spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 8 | 5 | 4 | |
FAIL | 0 | 3 | 4 | |
total | 8 | 8 | 8 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | String length |
1 | pass | pass | FAIL | Unicode string length (UTF-8) |
details | ||||
2 | pass | FAIL | FAIL | Unicode string length (spec/testdata/utf8-chars.txt) |
details | details | |||
3 | pass | FAIL | FAIL | String length with incomplete utf-8 |
details | details | |||
4 | pass | FAIL | FAIL | String length with invalid utf-8 continuation bytes |
details | details | |||
5 | pass | pass | pass | Length of undefined variable |
6 | pass | pass | pass | Length of undefined variable with nounset |
7 | pass | pass | pass | Length operator can't be followed by test operator |
17 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 Unicode string length (UTF-8) [osh_.cc stdout] Expected '3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed. |
osh_.py | 2 Unicode string length (spec/testdata/utf8-chars.txt) [osh_.py stdout] Expected '7\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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.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 | 2 Unicode string length (spec/testdata/utf8-chars.txt) [osh_.cc stdout] Expected '7\n', got '0\n' stdout: 0stderr: |
osh_.py | 3 String length with incomplete utf-8 [osh_.py stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1069, in _Dispatch status = self._Execute(node.body) # last one wins 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 1156, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList status = self._Execute(child) 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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.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 | 3 String length with incomplete utf-8 [osh_.cc stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])\n" stdout: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])stderr: Unhandled SimpleCommand |
osh_.py | 4 String length with invalid utf-8 continuation bytes [osh_.py stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1069, in _Dispatch status = self._Execute(node.body) # last one wins 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 1156, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1364, in _ExecuteList status = self._Execute(child) 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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.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 | 4 String length with invalid utf-8 continuation bytes [osh_.cc stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])\n" stdout: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])stderr: Unhandled SimpleCommand |