spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 9 | 7 | 3 | |
FAIL | 0 | 2 | 6 | |
total | 9 | 9 | 9 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | FAIL | Process sub input |
details | ||||
1 | pass | pass | pass | Process sub from external process to stdin |
2 | pass | pass | pass | Process sub from shell to stdin |
3 | pass | FAIL | FAIL | Non-linear pipeline with >() |
details | details | |||
4 | pass | pass | pass | $(<file) idiom with process sub |
5 | pass | pass | FAIL | status code is available |
details | ||||
6 | pass | pass | FAIL | shopt -s process_sub_fail |
details | ||||
7 | pass | pass | FAIL | process subs and pipelines together |
details | ||||
8 | pass | FAIL | FAIL | process sub in background & |
details | details |
19 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
osh_.cc | 0 Process sub input [osh_.cc status] Expected 0, got -6 stdout: 1 2 2 3stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2) timeout: the monitored command dumped core |
osh_.py | 3 Non-linear pipeline with >() [osh_.py stdout] Expected 'OUT\nwarning: e2\no2\no1\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 66, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 34, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 486, 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 1643, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 709, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 548, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 242, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 33 |
osh_.cc | 3 Non-linear pipeline with >() [osh_.cc stdout] Expected 'OUT\nwarning: e2\no2\no1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'KeyError*' timeout: the monitored command dumped core |
osh_.cc | 5 status code is available [osh_.cc stdout] Expected '1\n2\n1\n2\n3\nstatus=2 3\ndone\n', got '1\n2\n1\n2\n3\n' [osh_.cc status] Expected 0, got -6 stdout: 1 2 1 2 3stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2) timeout: the monitored command dumped core |
osh_.cc | 6 shopt -s process_sub_fail [osh_.cc stdout] Expected 'a\nb\nstatus=0 ps=2 3\n__\na\nb\nstatus=3 ps=2 3\na\nb\n', got 'a\nb\n' [osh_.cc status] Expected 3, got -6 stdout: a bstderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2) timeout: the monitored command dumped core |
osh_.cc | 7 process subs and pipelines together [osh_.cc stdout] Expected '1\n2\n1\n2\n3\nstatus=4\nprocess_sub=2 3\npipeline=0 4\n__\n', got '1\n2\n1\n2\n3\n' [osh_.cc status] Expected 0, got -6 stdout: 1 2 1 2 3stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2) timeout: the monitored command dumped core |
osh_.py | 8 process sub in background & [osh_.py stdout] Expected '1\n2\n3\nsync\nfork\n', got '1\n2\n3\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: 1 2 3stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 34, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 486, 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 1643, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1043, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1546, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1481, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 709, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 548, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 242, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 129, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 33 |
osh_.cc | 8 process sub in background & [osh_.cc stdout] Expected '1\n2\n3\nsync\nfork\n', got '1\n2\n3\n' [osh_.cc status] Expected 0, got -6 stdout: 1 2 3stderr: terminate called after throwing an instance of 'KeyError*' timeout: the monitored command dumped core |