spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 11 | 6 | 6 | |
FAIL | 3 | 8 | 8 | |
total | 14 | 14 | 14 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | strict_arith option |
1 | FAIL | FAIL | FAIL | Sourcing a script that returns at the top level |
details | details | details | ||
2 | FAIL | FAIL | FAIL | top level control flow |
details | details | details | ||
3 | FAIL | FAIL | FAIL | errexit and top-level control flow |
details | details | details | ||
4 | pass | pass | pass | shopt -s strict_control_flow |
5 | pass | pass | pass | return at top level is an error |
6 | pass | pass | pass | continue at top level is NOT an error |
7 | pass | pass | pass | break at top level is NOT an error |
8 | pass | FAIL | FAIL | empty argv WITHOUT strict_argv |
details | details | |||
9 | pass | FAIL | FAIL | empty argv WITH strict_argv |
details | details | |||
10 | pass | pass | pass | Arrays are incorrectly compared, but strict_array prevents it |
11 | pass | FAIL | FAIL | automatically creating arrays WITHOUT strict_array |
details | details | |||
12 | pass | FAIL | FAIL | automatically creating arrays are INDEXED, not associative |
details | details | |||
13 | pass | FAIL | FAIL | strict_eval_builtin |
details | details |
23 passed, 0 OK, 0 not implemented, 0 BUG, 19 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 1 Sourcing a script that returns at the top level [osh stdout] Expected 'one\nreturn-helper.sh\n42\ntwo\n', got 'one\n1\ntwo\n' stdout: one 1 twostderr: . spec/testdata/return-helper.sh ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ stdin ]:2: source 'spec/testdata/return-helper.sh' failed: No such file or directory |
osh_.py | 1 Sourcing a script that returns at the top level [osh_.py stdout] Expected 'one\nreturn-helper.sh\n42\ntwo\n', got 'one\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: onestderr: 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 317, 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: 2 |
osh_.cc | 1 Sourcing a script that returns at the top level [osh_.cc stdout] Expected 'one\nreturn-helper.sh\n42\ntwo\n', got 'one\n' [osh_.cc status] Expected 0, got -6 stdout: onestderr: osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh | 2 top level control flow [osh stdout] Expected 'SUBSHELL\nBREAK\nCONTINUE\nRETURN\n', got '' [osh status] Expected 0, got 1 stdout: stderr: osh: Couldn't open 'spec/testdata/top-level-control-flow.sh': No such file or directory |
osh_.py | 2 top level control flow [osh_.py stdout] Expected 'SUBSHELL\nBREAK\nCONTINUE\nRETURN\n', got "(cmd_value.Argv argv:['spec/testdata/top-level-control-flow.sh'] arg_spids:[2])\n" stdout: (cmd_value.Argv argv:['spec/testdata/top-level-control-flow.sh'] arg_spids:[2])stderr: Unhandled SimpleCommand |
osh_.cc | 2 top level control flow [osh_.cc stdout] Expected 'SUBSHELL\nBREAK\nCONTINUE\nRETURN\n', got "(cmd_value.Argv argv:['spec/testdata/top-level-control-flow.sh'] arg_spids:[2])\n" stdout: (cmd_value.Argv argv:['spec/testdata/top-level-control-flow.sh'] arg_spids:[2])stderr: Unhandled SimpleCommand |
osh | 3 errexit and top-level control flow [osh stdout] Expected 'SUBSHELL\n', got '' [osh status] Expected 2, got 1 stdout: stderr: osh: Couldn't open 'spec/testdata/top-level-control-flow.sh': No such file or directory |
osh_.py | 3 errexit and top-level control flow [osh_.py stdout] Expected 'SUBSHELL\n', got "(cmd_value.Argv argv:[-o errexit 'spec/testdata/top-level-control-flow.sh'] arg_spids:[2 4 6])\n" [osh_.py status] Expected 2, got 0 stdout: (cmd_value.Argv argv:[-o errexit 'spec/testdata/top-level-control-flow.sh'] arg_spids:[2 4 6])stderr: Unhandled SimpleCommand |
osh_.cc | 3 errexit and top-level control flow [osh_.cc stdout] Expected 'SUBSHELL\n', got "(cmd_value.Argv argv:[-o errexit 'spec/testdata/top-level-control-flow.sh'] arg_spids:[2 4 6])\n" [osh_.cc status] Expected 2, got 0 stdout: (cmd_value.Argv argv:[-o errexit 'spec/testdata/top-level-control-flow.sh'] arg_spids:[2 4 6])stderr: Unhandled SimpleCommand |
osh_.py | 8 empty argv WITHOUT strict_argv [osh_.py stdout] Expected 'status=0\nVarSub\nCommandSub\nVarSub FAILED\nCommandSub FAILED\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 313, in RunSimpleCommand arg0 = cmd_val.argv[0] IndexError: list index out of range |
osh_.cc | 8 empty argv WITHOUT strict_argv [osh_.cc stdout] Expected 'status=0\nVarSub\nCommandSub\nVarSub FAILED\nCommandSub FAILED\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) |
osh_.py | 9 empty argv WITH strict_argv [osh_.py stderr] Found 'Traceback (most recent' stdout: emptystderr: 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 313, in RunSimpleCommand arg0 = cmd_val.argv[0] IndexError: list index out of range |
osh_.cc | 9 empty argv WITH strict_argv [osh_.cc status] Expected 1, got -6 stdout: emptystderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) |
osh_.py | 11 automatically creating arrays WITHOUT strict_array [osh_.py stdout] Expected "['x', 'y']\n", got '(cmd_value.Argv argv:[argv.py x y] arg_spids:[14 16 16])\n' stdout: (cmd_value.Argv argv:[argv.py x y] arg_spids:[14 16 16])stderr: Unhandled SimpleCommand |
osh_.cc | 11 automatically creating arrays WITHOUT strict_array [osh_.cc stdout] Expected "['x', 'y']\n", got '(cmd_value.Argv argv:[argv.py x y] arg_spids:[14 16 16])\n' stdout: (cmd_value.Argv argv:[argv.py x y] arg_spids:[14 16 16])stderr: Unhandled SimpleCommand |
osh_.py | 12 automatically creating arrays are INDEXED, not associative [osh_.py stdout] Expected "['zzz', 'x', 'y']\n", got '(cmd_value.Argv argv:[argv.py zzz x y] arg_spids:[36 38 38 38])\n' stdout: (cmd_value.Argv argv:[argv.py zzz x y] arg_spids:[36 38 38 38])stderr: Unhandled SimpleCommand |
osh_.cc | 12 automatically creating arrays are INDEXED, not associative [osh_.cc stdout] Expected "['zzz', 'x', 'y']\n", got '(cmd_value.Argv argv:[argv.py zzz x y] arg_spids:[36 38 38 38])\n' stdout: (cmd_value.Argv argv:[argv.py zzz x y] arg_spids:[36 38 38 38])stderr: Unhandled SimpleCommand |
osh_.py | 13 strict_eval_builtin [osh_.py stdout] Expected 'status=0\none\nstatus=0\ntwo\nstatus=0\n---\nstatus=2\nstatus=2\ntwo\nstatus=0\n---\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 1062, in _Dispatch status = self._Execute(node.body) # last one wins 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 1149, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1357, in _ExecuteList status = self._Execute(child) 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 317, 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: 4 |
osh_.cc | 13 strict_eval_builtin [osh_.cc stdout] Expected 'status=0\none\nstatus=0\ntwo\nstatus=0\n---\nstatus=2\nstatus=2\ntwo\nstatus=0\n---\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. |