spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 11 | 11 | |
FAIL | 3 | 3 | |
total | 14 | 14 | |
case | osh | osh_ALT | description |
0 | pass | pass | Int |
1 | pass | pass | Float |
2 | pass | pass | Null |
3 | pass | pass | Bool |
4 | pass | pass | String |
5 | pass | pass | Range |
6 | pass | pass | Eggex (reference type) |
7 | pass | pass | SparseArray, new representation for bash array |
8 | pass | pass | BashArray, short |
9 | FAIL | FAIL | BashArray, long |
details | details | ||
10 | pass | pass | BashAssoc, short |
11 | FAIL | FAIL | BashAssoc, long |
details | details | ||
12 | pass | pass | Simple Cycles |
13 | FAIL | FAIL | Complex Cycles |
details | details |
22 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 9 BashArray, long [osh stdout] Expected "(BashArray 'world' null '*.py')\n(BashArray\n 'Lorem' 'ipsum' 'dolor' 'sit' 'amet,'\n 'consectetur' 'adipiscing' 'elit,' 'sed' 'do'\n 'eiusmod.'\n)\n" Got "(BashArray 'world' null '*.py')\n(BashArray\n" [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (BashArray 'world' null '*.py') (BashArraystderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |
osh_ALT | 9 BashArray, long [osh_ALT stdout] Expected "(BashArray 'world' null '*.py')\n(BashArray\n 'Lorem' 'ipsum' 'dolor' 'sit' 'amet,'\n 'consectetur' 'adipiscing' 'elit,' 'sed' 'do'\n 'eiusmod.'\n)\n" Got "(BashArray 'world' null '*.py')\n(BashArray\n" [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: (BashArray 'world' null '*.py') (BashArraystderr: Traceback (most recent call last): File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook sys.exit(oils_for_unix.main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 375, in Batch return status File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch raise # 'eval break' and 'source return.sh', etc. File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute errexit_loc = process_sub_st.locs[i] File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc frag.is_flat, frag.measure)) AttributeError: 'file' object has no attribute 'write_spaces' FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 11 BashAssoc, long [osh stdout] Expected "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n ['Lorem']='ipsum'\n ['dolor']='sit amet,'\n ['consectetur adipiscing']='elit, sed'\n ['do']='eiusmod.'\n)\n" Got "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n" [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (BashAssoc) (BashAssoc ['1']='one') (BashAssoc ['1']='one' ['two']='2' ['3']='three') (BashAssocstderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |
osh_ALT | 11 BashAssoc, long [osh_ALT stdout] Expected "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n ['Lorem']='ipsum'\n ['dolor']='sit amet,'\n ['consectetur adipiscing']='elit, sed'\n ['do']='eiusmod.'\n)\n" Got "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n" [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: (BashAssoc) (BashAssoc ['1']='one') (BashAssoc ['1']='one' ['two']='2' ['3']='three') (BashAssocstderr: Traceback (most recent call last): File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook sys.exit(oils_for_unix.main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 375, in Batch return status File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch raise # 'eval break' and 'source return.sh', etc. File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute errexit_loc = process_sub_st.locs[i] File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc frag.is_flat, frag.measure)) AttributeError: 'file' object has no attribute 'write_spaces' FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 13 Complex Cycles [osh stdout] Expected '(Dict)\n{\n nothing: null,\n simple_cycle: [[[...]]],\n tricky_cycle: [{...}],\n dag: [[1, 2, [...]], [1, 2, [...]]],\n key_alpha: {omega: {alpha: {...}}},\n key_omega: {alpha: {omega: {...}}}\n}\n' Got '(Dict)\n' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (Dict)stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |
osh_ALT | 13 Complex Cycles [osh_ALT stdout] Expected '(Dict)\n{\n nothing: null,\n simple_cycle: [[[...]]],\n tricky_cycle: [{...}],\n dag: [[1, 2, [...]], [1, 2, [...]]],\n key_alpha: {omega: {alpha: {...}}},\n key_omega: {alpha: {omega: {...}}}\n}\n' Got '(Dict)\n' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: (Dict)stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook sys.exit(oils_for_unix.main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 375, in Batch return status File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch raise # 'eval break' and 'source return.sh', etc. File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute errexit_loc = process_sub_st.locs[i] File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc frag.is_flat, frag.measure)) AttributeError: 'file' object has no attribute 'write_spaces' FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |