spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 14 | 13 | 10 | |
FAIL | 0 | 1 | 4 | |
total | 14 | 14 | 14 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | strict_arith option |
1 | pass | FAIL | FAIL | Sourcing a script that returns at the top level |
details | details | |||
2 | pass | pass | FAIL | top level control flow |
details | ||||
3 | pass | pass | FAIL | errexit and top-level control flow |
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 | pass | FAIL | empty argv WITHOUT strict_argv |
details | ||||
9 | pass | pass | pass | empty argv WITH strict_argv |
10 | pass | pass | pass | Arrays are incorrectly compared, but strict_array prevents it |
11 | pass | pass | pass | automatically creating arrays WITHOUT strict_array |
12 | pass | pass | pass | automatically creating arrays are INDEXED, not associative |
13 | pass | pass | pass | simple_eval_builtin |
37 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
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/travis/build/oilshell/oil/bin/osh_eval.py", line 68, in <module> sys.exit(main(sys.argv)) File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 36, in main None) File "/home/travis/build/oilshell/oil/core/shell_native.py", line 476, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch status = self._Execute(node) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/travis/build/oilshell/oil/core/executor.py", line 193, in RunSimpleCommand status = self.RunBuiltin(builtin_id, cmd_val) File "/home/travis/build/oilshell/oil/core/executor.py", line 121, 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 '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: mycpp/mylib.h:674: V Dict<K, V>::index(K) [with K = int; V = vm::_Builtin*]: Assertion `0' failed. |
osh_.cc | 2 top level control flow [osh_.cc stdout] Expected 'SUBSHELL\nBREAK\nCONTINUE\nRETURN\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
osh_.cc | 3 errexit and top-level control flow [osh_.cc stdout] Expected 'SUBSHELL\n', got '' [osh_.cc status] Expected 2, got -6 stdout: stderr: osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed. |
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: osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |