spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 12 | 11 | 11 | |
FAIL | 1 | 2 | 2 | |
total | 13 | 13 | 13 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | command -v |
1 | pass | pass | pass | command -v with multiple names |
2 | pass | pass | pass | command -v doesn't find non-executable file |
3 | pass | pass | pass | command skips function lookup |
4 | pass | pass | pass | command command seq 3 |
5 | pass | pass | pass | command command -v seq |
6 | pass | FAIL | FAIL | history usage |
details | details | |||
7 | FAIL | FAIL | FAIL | history -d to delete history item |
details | details | details | ||
8 | pass | pass | pass | $(command type ls) |
9 | pass | pass | pass | builtin |
10 | pass | pass | pass | builtin ls not found |
11 | pass | pass | pass | builtin no args |
12 | pass | pass | pass | builtin command echo hi |
34 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 6 history usage [osh_.py stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\nstatus=2\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/uke/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/osh_eval.py", line 34, in main None) File "/home/uke/oil/core/shell_native.py", line 521, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 332, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1649, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1487, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 730, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/uke/oil/osh/cmd_eval.py", line 564, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/uke/oil/core/executor.py", line 240, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 47 |
osh_.cc | 6 history usage [osh_.cc stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\nstatus=2\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'KeyError*' |
osh | 7 history -d to delete history item [osh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n' stdout: status=2 status=2 status=2stderr: history -d 1 ^~~~~~~ [ stdin ]:3: 'history' couldn't find item 1 history -d -1 ^~ [ stdin ]:6: 'history' got invalid integer for -d: -1 history -d -2 ^~ [ stdin ]:8: 'history' got invalid integer for -d: -2 |
osh_.py | 7 history -d to delete history item [osh_.py stdout] Expected 'status=0\nstatus=1\nstatus=1\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/uke/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/osh_eval.py", line 34, in main None) File "/home/uke/oil/core/shell_native.py", line 521, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 332, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1649, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1487, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 730, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/uke/oil/osh/cmd_eval.py", line 564, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/uke/oil/core/executor.py", line 240, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 47 |
osh_.cc | 7 history -d to delete history item [osh_.cc stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'KeyError*' |