spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 12 | 8 | 7 | |
FAIL | 1 | 5 | 6 | |
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 | FAIL | FAIL | command -v doesn't find non-executable file |
details | details | |||
3 | pass | FAIL | FAIL | command skips function lookup |
details | details | |||
4 | pass | FAIL | FAIL | command command seq 3 |
details | details | |||
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 | FAIL | $(command type ls) |
details | ||||
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 |
27 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 2 command -v doesn't find non-executable file [osh_.py stdout] Expected 'status=1\n/executable\nstatus=0\n', got 'status=1\nstatus=1\n' stdout: status=1 status=1stderr: touch: cannot touch '/non-executable': Permission denied touch: cannot touch '/executable': Permission denied chmod: cannot access '/executable': No such file or directory |
osh_.cc | 2 command -v doesn't find non-executable file [osh_.cc stdout] Expected 'status=1\n/executable\nstatus=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: touch: cannot touch '/non-executable': Permission denied touch: cannot touch '/executable': Permission denied chmod: cannot access '/executable': No such file or directory osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 3 command skips function lookup [osh_.py stdout] Expected '3\n1\n2\n3\n1\n2\n3\n', got '3\n' [osh_.py status] Expected 0, got 127 stdout: 3stderr: command seq 3 ^~~ [ stdin ]:6: 'seq' not found ( command seq 3 ) ^~~ [ stdin ]:7: 'seq' not found |
osh_.cc | 3 command skips function lookup [osh_.cc stdout] Expected '3\n1\n2\n3\n1\n2\n3\n', got '3\n3\n' [osh_.cc status] Expected 0, got 127 stdout: 3 3stderr: command seq 3 ^~~ [ stdin ]:6: 'seq' not found ( command seq 3 ) ^~~ [ stdin ]:7: 'seq' not found |
osh_.py | 4 command command seq 3 [osh_.py stdout] Expected '1\n2\n3\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: command command seq 3 ^~~ [ stdin ]:1: 'seq' not found |
osh_.cc | 4 command command seq 3 [osh_.cc stdout] Expected '1\n2\n3\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: command command seq 3 ^~~ [ stdin ]:1: 'seq' not found |
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/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 39, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 471, 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 623, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 230, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 122, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 46 |
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: osh_eval.dbg: mycpp/mylib.h:674: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
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 ]:2: 'history' couldn't find item 1 history -d -1 ^~ [ stdin ]:4: 'history' got invalid integer for -d: -1 history -d -2 ^~ [ stdin ]:6: '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/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 39, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 471, 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 623, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 230, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 122, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 46 |
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: osh_eval.dbg: mycpp/mylib.h:674: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.cc | 8 $(command type ls) [osh_.cc stdout] Expected 'FUNCTION\nstatus=0\n', got 'FUNCTION\n' [osh_.cc status] Expected 0, got -6 stdout: FUNCTIONstderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |