spec test index / oilshell.org
status | osh | |
pass | 15 | |
FAIL | 2 | |
total | 17 | |
case | osh | description |
0 | pass | Open proc (any number of args) |
1 | FAIL | Closed proc with no args, passed too many |
details | ||
2 | pass | Open proc has "$@" |
3 | pass | Closed proc doesn't have "$@" |
4 | pass | Proc with default args |
5 | pass | Proc with explicit args |
6 | pass | Proc with varargs |
7 | pass | varargs 2 |
8 | pass | Proc name-with-hyphen |
9 | pass | Proc with block arg |
10 | pass | proc returning wrong type |
11 | pass | proc returning invalid string |
12 | FAIL | Out param / setref |
details | ||
13 | pass | 'return' doesn't accept expressions |
14 | pass | procs are in same namespace as shell functions |
15 | pass | Nested proc is disallowed at parse time |
16 | pass | Procs defined inside compound statements (with redefine_proc) |
15 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 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/travis/build/oilshell/oil/bin/oil.py", line 358, in <module> sys.exit(main(sys.argv)) File "/home/travis/build/oilshell/oil/bin/oil.py", line 301, in main return AppBundleMain(argv) File "/home/travis/build/oilshell/oil/bin/oil.py", line 261, in AppBundleMain loader, line_input) File "/home/travis/build/oilshell/oil/core/shell.py", line 675, 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 224, in RunSimpleCommand status = self.cmd_ev.RunProc(proc_node, argv[1:]) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1637, in RunProc (proc.name, n_params, n_args)) TypeError: proc 'f' expected 0 arguments, but got 2 |
osh | 12 Out param / setref [osh stdout] Expected 'myvar=PREFIX-zzz\n', got 'myvar=PREFIX-\n' stdout: myvar=PREFIX-stderr: |