spec test index / oilshell.org
| status | osh | osh_.py | osh_.cc | |
| pass | 3 | 2 | 0 | |
| FAIL | 1 | 2 | 4 | |
| total | 4 | 4 | 4 | |
| case | osh | osh_.py | osh_.cc | description |
| 0 | pass | pass | FAIL | --debug-file |
| details | ||||
| 1 | pass | pass | FAIL | crash dump |
| details | ||||
| 2 | pass | FAIL | FAIL | crash dump with source |
| details | details | |||
| 3 | FAIL | FAIL | FAIL | help osh and oil |
| details | details | details |
5 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| osh_.cc | 0 --debug-file [osh_.cc stdout] Expected 'yes\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 | 1 crash dump [osh_.cc stdout] Expected 'status=1\nstatus=0\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_.py | 2 crash dump with source [osh_.py stderr] Found 'Traceback (most recent' stdout: status=1 OKstderr: 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 230, in RunSimpleCommand
return 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: 31
+ set -o errexit
+ ok=0
+ test -s '/home/travis/build/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/27251-osh-crash-dump.json'
+ python -m json.tool '/home/travis/build/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/27251-osh-crash-dump.json'
+ echo 'OK /home/travis/build/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/27251-osh-crash-dump.json'
OK /home/travis/build/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/27251-osh-crash-dump.json
+ (( ++ok ))
+ test 1 -ge 1
+ echo OK
|
| osh_.cc | 2 crash dump with source [osh_.cc stdout] Expected 'status=1\nOK\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 | 3 help osh and oil [osh stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'osh 1\noil 1\nindex ZZZ 1\n' stdout: osh 1 oil 1 index ZZZ 1stderr: help osh > $TMP/osh.txt
^~~
[ stdin ]:1: no help topics match 'osh'
help oil > $TMP/oil.txt
^~~
[ stdin ]:3: no help topics match 'oil'
help index ZZZ > $TMP/index.txt
^~~~~
[ stdin ]:6: no help topics match 'index'
|
| osh_.py | 3 help osh and oil [osh_.py stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'osh 1\noil 1\nindex ZZZ 1\n' stdout: osh 1 oil 1 index ZZZ 1stderr: help osh > $TMP/osh.txt
^~~
[ stdin ]:1: no help topics match 'osh'
help oil > $TMP/oil.txt
^~~
[ stdin ]:3: no help topics match 'oil'
help index ZZZ > $TMP/index.txt
^~~~~
[ stdin ]:6: no help topics match 'index'
|
| osh_.cc | 3 help osh and oil [osh_.cc stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |