spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 7 | 0 | 0 | |
FAIL | 0 | 7 | 7 | |
total | 7 | 7 | 7 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | 'exit' in oshrc (regression) |
details | details | |||
1 | pass | FAIL | FAIL | fatal errors continue |
details | details | |||
2 | pass | FAIL | FAIL | interactive shell loads rcfile (when combined with -c) |
details | details | |||
3 | pass | FAIL | FAIL | interactive shell runs PROMPT_COMMAND after each command |
details | details | |||
4 | pass | FAIL | FAIL | parse error in PROMPT_COMMAND |
details | details | |||
5 | pass | FAIL | FAIL | runtime error in PROMPT_COMMAND |
details | details | |||
6 | pass | FAIL | FAIL | Error message with bad oshrc file (currently ignored) |
details | details |
7 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 'exit' in oshrc (regression) [osh_.py stdout] Expected 'one\n', got "(cmd_value.Argv argv:[cat] arg_spids:[0])\n(cmd_value.Argv argv:[--rcfile '/oshrc' -i -c 'echo hello'] arg_spids:[16 18 21 23 25])\n" [osh_.py status] Expected 42, got 0 stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) (cmd_value.Argv argv:[--rcfile '/oshrc' -i -c 'echo hello'] arg_spids:[16 18 21 23 25])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 0 'exit' in oshrc (regression) [osh_.cc stdout] Expected 'one\n', got "(cmd_value.Argv argv:[cat] arg_spids:[0])\n(cmd_value.Argv argv:[--rcfile '/oshrc' -i -c 'echo hello'] arg_spids:[16 18 21 23 25])\n" [osh_.cc status] Expected 42, got 0 stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) (cmd_value.Argv argv:[--rcfile '/oshrc' -i -c 'echo hello'] arg_spids:[16 18 21 23 25])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 1 fatal errors continue [osh_.py stdout] Expected 'one\n', got "(cmd_value.Argv\n argv: [--rcfile '/dev/null' -i -c '\\necho $(( 1 / 0 ))\\necho one\\nexit 42\\n']\n arg_spids: [2 4 6 8 10]\n)\n" [osh_.py status] Expected 42, got 0 stdout: (cmd_value.Argv argv: [--rcfile '/dev/null' -i -c '\necho $(( 1 / 0 ))\necho one\nexit 42\n'] arg_spids: [2 4 6 8 10] )stderr: Unhandled SimpleCommand |
osh_.cc | 1 fatal errors continue [osh_.cc stdout] Expected 'one\n', got "(cmd_value.Argv\n argv: [--rcfile '/dev/null' -i -c '\\necho $(( 1 / 0 ))\\necho one\\nexit 42\\n']\n arg_spids: [2 4 6 8 10]\n)\n" [osh_.cc status] Expected 42, got 0 stdout: (cmd_value.Argv argv: [--rcfile '/dev/null' -i -c '\necho $(( 1 / 0 ))\necho one\nexit 42\n'] arg_spids: [2 4 6 8 10] )stderr: Unhandled SimpleCommand |
osh_.py | 2 interactive shell loads rcfile (when combined with -c) [osh_.py stdout] Expected '1\nRCFILE\n2\n', got "(cmd_value.Argv argv:[-c 'echo 1'] arg_spids:[2 4])\n(cmd_value.Argv argv:[cat] arg_spids:[8])\n(cmd_value.Argv argv:[--rcfile '/rcfile' -i -c 'echo 2'] arg_spids:[22 24 27 29 31])\n" stdout: (cmd_value.Argv argv:[-c 'echo 1'] arg_spids:[2 4]) (cmd_value.Argv argv:[cat] arg_spids:[8]) (cmd_value.Argv argv:[--rcfile '/rcfile' -i -c 'echo 2'] arg_spids:[22 24 27 29 31])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 2 interactive shell loads rcfile (when combined with -c) [osh_.cc stdout] Expected '1\nRCFILE\n2\n', got "(cmd_value.Argv argv:[-c 'echo 1'] arg_spids:[2 4])\n(cmd_value.Argv argv:[cat] arg_spids:[8])\n(cmd_value.Argv argv:[--rcfile '/rcfile' -i -c 'echo 2'] arg_spids:[22 24 27 29 31])\n" stdout: (cmd_value.Argv argv:[-c 'echo 1'] arg_spids:[2 4]) (cmd_value.Argv argv:[cat] arg_spids:[8]) (cmd_value.Argv argv:[--rcfile '/rcfile' -i -c 'echo 2'] arg_spids:[22 24 27 29 31])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 3 interactive shell runs PROMPT_COMMAND after each command [osh_.py stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got '' stdout: stderr: |
osh_.cc | 3 interactive shell runs PROMPT_COMMAND after each command [osh_.cc stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got '' stdout: stderr: |
osh_.py | 4 parse error in PROMPT_COMMAND [osh_.py stdout] Expected 'one\ntwo\n^D\n', got '' stdout: stderr: |
osh_.cc | 4 parse error in PROMPT_COMMAND [osh_.cc stdout] Expected 'one\ntwo\n^D\n', got '' stdout: stderr: |
osh_.py | 5 runtime error in PROMPT_COMMAND [osh_.py stdout] Expected 'one\ntwo\n^D\n', got '' stdout: stderr: |
osh_.cc | 5 runtime error in PROMPT_COMMAND [osh_.cc stdout] Expected 'one\ntwo\n^D\n', got '' stdout: stderr: |
osh_.py | 6 Error message with bad oshrc file (currently ignored) [osh_.py stdout] Expected 'hi\nstatus=0\nbad_oshrc:\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 341, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 23 |
osh_.cc | 6 Error message with bad oshrc file (currently ignored) [osh_.cc stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |