spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 4 | 3 | 1 | |
FAIL | 0 | 1 | 3 | |
total | 4 | 4 | 4 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | --debug-file |
1 | pass | pass | FAIL | crash dump |
details | ||||
2 | pass | FAIL | FAIL | crash dump with source |
details | details | |||
3 | pass | pass | FAIL | help osh and oil |
details |
8 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 crash dump [osh_.cc stdout] Expected 'status=1\nstatus=0\n', got 'status=1\nstatus=1\n' [osh_.cc stderr] Found 'Traceback (most recent' stdout: status=1 status=1stderr: echo $(( 1 / 0 )) ^~~~ [ -c flag ]:4: fatal: Divide by zero Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/json/tool.py", line 40, in <module> main() File "/usr/lib/python2.7/json/tool.py", line 21, in main infile = open(sys.argv[1], 'rb') IOError: [Errno 2] No such file or directory: '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/*.json' |
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/andy/git/oilshell/oil/bin/osh_eval.py", line 68, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 36, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 477, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, 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 1557, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1395, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 694, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 531, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 218, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 125, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 31 + set -o errexit + ok=0 + test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/10727-osh-crash-dump.json' + python -m json.tool '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/10727-osh-crash-dump.json' + echo 'OK /home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/10727-osh-crash-dump.json' OK /home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/10727-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 'status=129\n' [osh_.cc status] Expected 0, got -6 stdout: status=129stderr: terminate called after throwing an instance of 'KeyError*' + set -o errexit + ok=0 + test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/10727-osh-crash-dump.json' osh_eval.opt.stripped: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 3 help osh and oil [osh_.cc stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'TODO\nosh 0\nTODO\noil 0\nTODO\nindex ZZZ 0\n' stdout: TODO osh 0 TODO oil 0 TODO index ZZZ 0stderr: |