spec test index / oilshell.org
82 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 4 _start() and _end() [osh stdout] Expected 'start=3 end=6\nstart=3 end=6\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 224, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 199, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 146, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/andy/git/oilshell/oil/core/shell.py", line 830, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 347, 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 1709, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1533, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1413, in _Dispatch status = self._ExecuteList(if_arm.action) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1612, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1533, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 696, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2094, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2054, in SimpleEvalWordSequence2 self._EvalWordToParts(w, part_vals, 0) # not quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1655, in _EvalWordToParts self._EvalWordPart(p, word_part_vals, eval_flags) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1606, in _EvalWordPart part_val = self.expr_ev.EvalInlineFunc(part) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 357, in EvalInlineFunc s = Stringify(func(*pos_args, **named_args), word_part=part) File "/home/andy/git/oilshell/oil/oil_lang/funcs_builtin.py", line 108, in __call__ raise NotImplementedError('_start') NotImplementedError: _start |
osh_ALT | 4 _start() and _end() [osh_ALT stdout] Expected 'start=3 end=6\nstart=3 end=6\n', got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 32, in _cpython_main_hook sys.exit(oils_for_unix.main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 199, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 146, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/andy/git/oilshell/oil/core/shell.py", line 830, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 355, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1709, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1533, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1413, in _Dispatch status = self._ExecuteList(if_arm.action) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1612, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1533, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 765, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2094, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2054, in SimpleEvalWordSequence2 self._EvalWordToParts(w, part_vals, 0) # not quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1655, in _EvalWordToParts self._EvalWordPart(p, word_part_vals, eval_flags) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1606, in _EvalWordPart part_val = self.expr_ev.EvalInlineFunc(part) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 357, in EvalInlineFunc s = Stringify(func(*pos_args, **named_args), word_part=part) File "/home/andy/git/oilshell/oil/oil_lang/funcs_builtin.py", line 108, in __call__ raise NotImplementedError('_start') NotImplementedError: _start FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.15.0/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 13 Named captures with _match [osh stdout] Expected "['2020', '08']\n", got '' [osh status] Expected 0, got 3 stdout: stderr: argv.py $_match('year') $_match('month') ^~~~~~~ [ stdin ]:6: fatal: Type error in expression: Expected an integer, got 'year' |
osh_ALT | 13 Named captures with _match [osh_ALT stdout] Expected "['2020', '08']\n", got '' [osh_ALT status] Expected 0, got 3 stdout: stderr: argv.py $_match('year') $_match('month') ^~~~~~~ [ stdin ]:6: fatal: Type error in expression: Expected an integer, got 'year' |
osh | 15 Named Capture With ~ Assigns Variable [osh stdout] Expected '([[:digit:]]+)\nyes\nTODO MONTH\n', got '([[:digit:]]+)\nyes\n' [osh status] Expected 0, got 1 stdout: ([[:digit:]]+) yesstderr: = month ^~~~~ [ stdin ]:7: fatal: Undefined variable 'month' |
osh_ALT | 15 Named Capture With ~ Assigns Variable [osh_ALT stdout] Expected '([[:digit:]]+)\nyes\nTODO MONTH\n', got '([[:digit:]]+)\nyes\n' [osh_ALT status] Expected 0, got 1 stdout: ([[:digit:]]+) yesstderr: = month ^~~~~ [ stdin ]:7: fatal: Undefined variable 'month' |
osh | 22 Match non-ASCII byte denoted using $'\xff' (TODO: LANG=C) [osh stdout] Expected ' 5b ff 5d 0a\nyes\nno\n', got '' [osh status] Expected 0, got 1 stdout: stderr: var pat = /[ $'\xff' ]/; ^~ [ stdin ]:2: fatal: Use unquoted char literal for byte 255, which is >= 128 (avoid confusing a set of bytes with a sequence) |
osh_ALT | 22 Match non-ASCII byte denoted using $'\xff' (TODO: LANG=C) [osh_ALT stdout] Expected ' 5b ff 5d 0a\nyes\nno\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: var pat = /[ $'\xff' ]/; ^~ [ stdin ]:2: fatal: Use unquoted char literal for byte 255, which is >= 128 (avoid confusing a set of bytes with a sequence) |