spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 18 | 8 | 4 | |
FAIL | 0 | 10 | 14 | |
total | 18 | 18 | 18 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | builtin |
1 | pass | FAIL | FAIL | command sub |
details | details | |||
2 | pass | FAIL | FAIL | command sub with builtin |
details | details | |||
3 | pass | FAIL | FAIL | pipeline |
details | details | |||
4 | pass | FAIL | FAIL | pipeline with builtin |
details | details | |||
5 | pass | pass | pass | and-or chains |
6 | pass | FAIL | FAIL | here doc with var |
details | details | |||
7 | pass | FAIL | FAIL | here doc without var |
details | details | |||
8 | pass | FAIL | FAIL | here doc with builtin |
details | details | |||
9 | pass | FAIL | FAIL | Redirect external command |
details | details | |||
10 | pass | FAIL | FAIL | Redirect with builtin |
details | details | |||
11 | pass | pass | FAIL | Here doc with redirect |
details | ||||
12 | pass | pass | FAIL | "$@" "$*" |
details | ||||
13 | pass | pass | FAIL | $@ $* |
details | ||||
14 | pass | pass | FAIL | failed command |
details | ||||
15 | pass | FAIL | FAIL | subshell |
details | details | |||
16 | pass | pass | pass | for loop |
17 | pass | pass | pass | vars |
30 passed, 0 OK, 0 not implemented, 0 BUG, 24 failed, 0 timeouts, 0 cases skipped
osh_.py | 1 command sub [osh_.py stdout] Expected '3\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 1 command sub [osh_.cc stdout] Expected '3\n', got '\n' stdout: stderr: |
osh_.py | 2 command sub with builtin [osh_.py stdout] Expected 'hi\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, 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 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 2 command sub with builtin [osh_.cc stdout] Expected 'hi\n', got '\n' stdout: stderr: |
osh_.py | 3 pipeline [osh_.py stdout] Expected '1\n', got '' stdout: stderr: |
osh_.cc | 3 pipeline [osh_.cc stdout] Expected '1\n', got '' stdout: stderr: |
osh_.py | 4 pipeline with builtin [osh_.py stdout] Expected '1\n', got '' stdout: stderr: |
osh_.cc | 4 pipeline with builtin [osh_.cc stdout] Expected '1\n', got '' stdout: stderr: |
osh_.py | 6 here doc with var [osh_.py stdout] Expected u'"two\none\n', got '' stdout: stderr: |
osh_.cc | 6 here doc with var [osh_.cc stdout] Expected u'"two\none\n', got '(cmd_value.Argv argv:[tac] arg_spids:[3])\n' stdout: (cmd_value.Argv argv:[tac] arg_spids:[3])stderr: Unhandled SimpleCommand |
osh_.py | 7 here doc without var [osh_.py stdout] Expected u'"two\n$v\n', got '' stdout: stderr: |
osh_.cc | 7 here doc without var [osh_.cc stdout] Expected u'"two\n$v\n', got '(cmd_value.Argv argv:[tac] arg_spids:[0])\n' stdout: (cmd_value.Argv argv:[tac] arg_spids:[0])stderr: Unhandled SimpleCommand |
osh_.py | 8 here doc with builtin [osh_.py stdout] Expected 'var = value\n', got 'var = \n' stdout: var =stderr: |
osh_.cc | 8 here doc with builtin [osh_.cc stdout] Expected 'var = value\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed. |
osh_.py | 9 Redirect external command [osh_.py stderr] Expected u'', got 'cat: /expr3.txt: No such file or directory\n' [osh_.py status] Expected 0, got 1 stdout: 3stderr: cat: /expr3.txt: No such file or directory |
osh_.cc | 9 Redirect external command [osh_.cc stdout] Expected '3\n', got "(cmd_value.Argv argv:[expr 3] arg_spids:[0 2])\n(cmd_value.Argv argv:[cat '/expr3.txt'] arg_spids:[9 11])\n" [osh_.cc stderr] Expected u'', got 'Unhandled SimpleCommand\nUnhandled SimpleCommand\n' stdout: (cmd_value.Argv argv:[expr 3] arg_spids:[0 2]) (cmd_value.Argv argv:[cat '/expr3.txt'] arg_spids:[9 11])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 10 Redirect with builtin [osh_.py stdout] Expected 'hi\n', got 'hi\nhi\n' stdout: hi histderr: |
osh_.cc | 10 Redirect with builtin [osh_.cc stdout] Expected 'hi\n', got "hi\n(cmd_value.Argv argv:[cat '_tmp/hi.txt'] arg_spids:[8 10])\n" stdout: hi (cmd_value.Argv argv:[cat '_tmp/hi.txt'] arg_spids:[8 10])stderr: Unhandled SimpleCommand |
osh_.cc | 11 Here doc with redirect [osh_.cc stdout] Expected '8 _tmp/smoke1.txt\n', got "(cmd_value.Argv argv:[cat] arg_spids:[0])\n(cmd_value.Argv argv:[wc -c '_tmp/smoke1.txt'] arg_spids:[12 14 16])\n" stdout: (cmd_value.Argv argv:[cat] arg_spids:[0]) (cmd_value.Argv argv:[wc -c '_tmp/smoke1.txt'] arg_spids:[12 14 16])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 12 "$@" "$*" [osh_.cc stdout] Expected "['a b', 'c d', 'a b c d']\n", got "(cmd_value.Argv argv:[argv.py 'a b' 'c d' 'a b c d'] arg_spids:[8 10 10 14])\n" stdout: (cmd_value.Argv argv:[argv.py 'a b' 'c d' 'a b c d'] arg_spids:[8 10 10 14])stderr: Unhandled SimpleCommand |
osh_.cc | 13 $@ $* [osh_.cc stdout] Expected "['a', 'b', 'c', 'd', 'a', 'b', 'c', 'd']\n", got '(cmd_value.Argv argv:[argv.py a b c d a b c d] arg_spids:[7 9 9 9 9 11 11 11 11])\n' stdout: (cmd_value.Argv argv:[argv.py a b c d a b c d] arg_spids:[7 9 9 9 9 11 11 11 11])stderr: Unhandled SimpleCommand |
osh_.cc | 14 failed command [osh_.cc status] Expected 2, got 0 stdout: (cmd_value.Argv argv:[ls '/nonexistent'] arg_spids:[0 2])stderr: Unhandled SimpleCommand |
osh_.py | 15 subshell [osh_.py stdout] Expected '1\n2\n', got '' stdout: stderr: |
osh_.cc | 15 subshell [osh_.cc stdout] Expected '1\n2\n', got '' stdout: stderr: |