spec test index / oilshell.org
186 passed, 9 ok, 4 known unimplemented, 0 known bugs, 2 failed, 0 skipped
| mksh | 4 [[ regex matching stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand |
| mksh | 5 [[ regex syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '=~' unexpected operator/operand |
| mksh | 14 Octal literals with -eq stdout: falsestderr: |
| mksh | 15 Hex literals with -eq stdout: falsestderr: _tmp/spec-bin/mksh: <stdin>[3]: 0x0f: bad number '0x0f' |
| bash | 18 -eq on strings stdout: true truestderr: |
| mksh | 18 -eq on strings stdout: true truestderr: |
| mksh | 20 [[ with op variable (compare with test-builtin.test.sh) stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: '$op' unexpected operator/operand |
| mksh | 26 Argument that looks like a real operator stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '-f' missing argument |
| osh | 26 Argument that looks like a real operator [osh status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last):
File "bin/osh", line 616, in <module>
main(sys.argv)
File "bin/osh", line 594, in main
sys.exit(AppBundleMain(argv))
File "bin/osh", line 568, in AppBundleMain
status = OshMain(argv0, main_argv, login_shell)
File "bin/osh", line 385, in OshMain
status = ex.ExecuteAndRunExitTrap(node)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1239, in ExecuteAndRunExitTrap
status = self.Execute(node)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1234, in Execute
status, _ = self.ExecuteAndCatch(node, fork_external=fork_external)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1192, in ExecuteAndCatch
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1164, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 893, in _Dispatch
status = self._ExecuteList(node.children)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1185, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 1164, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 761, in _Dispatch
result = self.bool_ev.Eval(node.expr)
File "/home/andy/git/oilshell/oil/bin/../core/expr_eval.py", line 494, in Eval
s = self._EvalCompoundWord(node.child)
File "/home/andy/git/oilshell/oil/bin/../core/expr_eval.py", line 465, in _EvalCompoundWord
val = self.word_ev.EvalWordToString(word, do_fnmatch=do_fnmatch)
File "/home/andy/git/oilshell/oil/bin/../core/word_eval.py", line 803, in EvalWordToString
for p in word.parts:
AttributeError: 'TokenWord' object has no attribute 'parts'
|
| osh_ALT | 26 Argument that looks like a real operator [osh_ALT status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/andy/git/oilshell/oil/bin/oil.py", line 616, in <module>
main(sys.argv)
File "/home/andy/git/oilshell/oil/bin/oil.py", line 594, in main
sys.exit(AppBundleMain(argv))
File "/home/andy/git/oilshell/oil/bin/oil.py", line 568, in AppBundleMain
status = OshMain(argv0, main_argv, login_shell)
File "/home/andy/git/oilshell/oil/bin/oil.py", line 385, in OshMain
status = ex.ExecuteAndRunExitTrap(node)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1239, in ExecuteAndRunExitTrap
status = self.Execute(node)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1234, in Execute
status, _ = self.ExecuteAndCatch(node, fork_external=fork_external)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1192, in ExecuteAndCatch
status = self._Execute(node, fork_external=fork_external)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1164, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1109, in _Dispatch
print('sys\t%.3f' % sys_, file=sys.stderr)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1185, in _ExecuteList
status = self._Execute(child) # last status wins
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1164, in _Execute
status, check_errexit = self._Dispatch(node, fork_external)
File "/home/andy/git/oilshell/oil/core/cmd_exec.py", line 1109, in _Dispatch
print('sys\t%.3f' % sys_, file=sys.stderr)
File "/home/andy/git/oilshell/oil/core/expr_eval.py", line 494, in Eval
s = self._EvalCompoundWord(node.child)
File "/home/andy/git/oilshell/oil/core/expr_eval.py", line 465, in _EvalCompoundWord
val = self.word_ev.EvalWordToString(word, do_fnmatch=do_fnmatch)
File "/home/andy/git/oilshell/oil/core/word_eval.py", line 803, in EvalWordToString
for p in word.parts:
AttributeError: 'TokenWord' object has no attribute 'parts'
FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre3/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
|
| osh-byterun | 26 Argument that looks like a real operator [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last):
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 88, in <module>
main(sys.argv)
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 72, in main
sys.exit(AppBundleMain(argv))
File "/home/andy/git/oilshell/oil/bin/opy_.py", line 64, in AppBundleMain
return opy_main.OpyCommandMain(main_argv)
File "/home/andy/git/oilshell/oil/opy/opy_main.py", line 351, in OpyCommandMain
num_ticks = ovm.run_code_object(co, opy_argv)
File "/home/andy/git/oilshell/oil/opy/byterun/execfile.py", line 36, in run_code_object
pyvm2.run_code(vm, code, f_globals=main_mod.__dict__)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 88, in run_code
val = vm.run_frame(frame)
File "/home/andy/git/oilshell/oil/opy/byterun/pyvm2.py", line 327, in run_frame
raise exctype, value, tb
AttributeError: 'TokenWord' object has no attribute 'parts'
|
| osh | 30 -eq with arithmetic expression! [osh stdout] Expected u'true\ntrue\n', got '' [osh status] Expected 0, got 1 stdout: stderr: osh warning: Invalid integer constant '1+2' osh warning: Invalid integer constant '1+2' |
| osh_ALT | 30 -eq with arithmetic expression! [osh_ALT stdout] Expected u'true\ntrue\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: osh warning: Invalid integer constant '1+2' osh warning: Invalid integer constant '1+2' |
| osh-byterun | 30 -eq with arithmetic expression! [osh-byterun stdout] Expected u'true\ntrue\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: osh warning: Invalid integer constant '1+2' osh warning: Invalid integer constant '1+2' |
| mksh | 33 [[ '(' foo ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'foo' unexpected operator/operand |
| mksh | 35 [[ -z ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: syntax error: 'echo' unexpected operator/operand |
| mksh | 37 [[ -z '>' a ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '--' unexpected operator/operand |
| mksh | 39 [[ ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'newline' unexpected operator/operand |
| mksh | 40 [[ && ]] is syntax error stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: syntax error: '&&' expression expected |