spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 6 | 6 | |
FAIL | 3 | 3 | |
total | 9 | 9 | |
case | osh | osh_ALT | description |
0 | pass | pass | integers expression and augmented assignment |
1 | pass | pass | command sub $(echo hi) |
2 | pass | pass | shell array @(a 'b c') |
3 | pass | pass | Shell arrays support tilde detection, static globbing, brace detection |
4 | pass | pass | augmented assignment doesn't work on shell arrays |
5 | FAIL | FAIL | Splice in a Python list (i.e. Oil Obj var in word evaluator) |
details | details | ||
6 | pass | pass | Set $HOME using 'var' (i.e. Oil string var in word evaluator) |
7 | FAIL | FAIL | Use shell var in Oil expression |
details | details | ||
8 | FAIL | FAIL | Length in two different contexts |
details | details |
12 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 5 Splice in a Python list (i.e. Oil Obj var in word evaluator) [osh stdout] Expected "['one', 'two']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: argv.py @mylist ^~~~~~~ [ stdin ]:3: fatal: Can't splice non-array 'mylist' |
osh_ALT | 5 Splice in a Python list (i.e. Oil Obj var in word evaluator) [osh_ALT stdout] Expected "['one', 'two']\n", got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: argv.py @mylist ^~~~~~~ [ stdin ]:3: fatal: Can't splice non-array 'mylist' |
osh | 7 Use shell var in Oil expression [osh stdout] Expected '3\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 914, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 872, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 842, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 652, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 159, in Batch is_return, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1282, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1230, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 818, in _Dispatch py_val = self.expr_ev.EvalRHS(node.rhs) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 147, in EvalRHS raise NotImplementedError(node.__class__.__name__) NotImplementedError: expr__FuncCall |
osh_ALT | 7 Use shell var in Oil expression [osh_ALT stdout] Expected '3\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 901, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 872, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 842, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 652, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1282, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1230, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1172, in _Dispatch libc.print_time(real, user, sys_) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 147, in EvalRHS raise NotImplementedError(node.__class__.__name__) NotImplementedError: expr__FuncCall FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.7.pre3/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 8 Length in two different contexts [osh stdout] Expected 'shell=5\noil=20\n', got 'shell=5\n' [osh status] Expected 0, got 2 stdout: shell=5stderr: [??? no location ???] Expected ), got (token id:Lit_Chars val:x span_id:40) |
osh_ALT | 8 Length in two different contexts [osh_ALT stdout] Expected 'shell=5\noil=20\n', got 'shell=5\n' [osh_ALT status] Expected 0, got 2 stdout: shell=5stderr: [??? no location ???] Expected ), got (token id:Lit_Chars val:x span_id:40) |