spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 9 | 9 | |
FAIL | 4 | 4 | |
total | 13 | 13 | |
case | osh | osh_ALT | description |
0 | pass | pass | Open proc (any number of args) |
1 | FAIL | FAIL | Closed proc with no args, passed too many |
details | details | ||
2 | pass | pass | Open proc has "$@" |
3 | pass | pass | Closed proc doesn't have "$@" |
4 | pass | pass | Proc with default args |
5 | pass | pass | Proc with explicit args |
6 | pass | pass | Proc with varargs |
7 | pass | pass | varargs 2 |
8 | pass | pass | Proc name-with-hyphen |
9 | pass | pass | Proc with block arg |
10 | FAIL | FAIL | proc returning wrong type |
details | details | ||
11 | FAIL | FAIL | proc returning invalid string |
details | details | ||
12 | FAIL | FAIL | Out param / setref |
details | details |
18 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 1 Closed proc with no args, passed too many [osh stderr] Found 'Traceback (most recent' stdout: status=42stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 380, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 324, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 283, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 640, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1440, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1320, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, 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/core/executor.py", line 225, in RunSimpleCommand status = self.cmd_ev.RunOilProc(val.obj, argv[1:]) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1577, in RunOilProc (node.name.val, n_params, n_args)) TypeError: proc 'f' expected 0 arguments, but got 2 |
osh_ALT | 1 Closed proc with no args, passed too many [osh_ALT stderr] Found 'Traceback (most recent' stdout: status=42stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 355, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 324, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 316, in AppBundleMain return readlink.main(main_argv) File "/home/andy/git/oilshell/oil/core/shell.py", line 640, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 174, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1440, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1320, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 583, in _Dispatch status = self._Execute(node.child) 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/core/executor.py", line 225, in RunSimpleCommand status = self.cmd_ev.RunOilProc(val.obj, argv[1:]) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1577, in RunOilProc (node.name.val, n_params, n_args)) TypeError: proc 'f' expected 0 arguments, but got 2 FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.2/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 10 proc returning wrong type [osh status] Expected 0, got 1 stdout: stderr: ['one', 'two'] |
osh_ALT | 10 proc returning wrong type [osh_ALT status] Expected 0, got 1 stdout: stderr: ['one', 'two'] |
osh | 11 proc returning invalid string [osh status] Expected 0, got 1 stdout: stderr: not an integer status |
osh_ALT | 11 proc returning invalid string [osh_ALT status] Expected 0, got 1 stdout: stderr: not an integer status |
osh | 12 Out param / setref [osh status] Expected 0, got 1 stdout: stderr: setref out = "PREFIX-$in" ^~~~~~ [ stdin ]:2: fatal: setref isn't implemented |
osh_ALT | 12 Out param / setref [osh_ALT status] Expected 0, got 1 stdout: stderr: setref out = "PREFIX-$in" ^~~~~~ [ stdin ]:2: fatal: setref isn't implemented |