spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 7 | 4 | 2 | |
ok | 3 | 2 | 1 | |
FAIL | 0 | 4 | 7 | |
total | 10 | 10 | 10 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | printf %q newline |
details | details | |||
1 | pass | pass | pass | printf %q spaces |
2 | ok | FAIL | FAIL | printf %q quotes |
details | details | details | ||
3 | ok | ok | ok | printf %q unprintable |
details | details | details | ||
4 | ok | ok | FAIL | printf %q unicode |
details | details | details | ||
5 | pass | pass | pass | printf %q invalid unicode |
6 | pass | FAIL | FAIL | set |
details | details | |||
7 | pass | FAIL | FAIL | declare |
details | details | |||
8 | pass | pass | FAIL | ${var@Q} |
details | ||||
9 | pass | pass | FAIL | xtrace |
details |
13 passed, 6 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 printf %q newline [osh_.py stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n", got "$'one\\ntwo'\n" [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: $'one\ntwo'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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1326, in _EvalWordPart self._EvalDoubleQuoted(part.parts, part_vals) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted self._EvalWordPart(p, part_vals, quoted=True) 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 | 0 printf %q newline [osh_.cc stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n", got "$'one\\ntwo'\n" [osh_.cc status] Expected 0, got 1 stdout: $'one\ntwo'stderr: |
osh | 2 printf %q quotes stdout: $'\'"' roundtrip-okstderr: |
osh_.py | 2 printf %q quotes [osh_.py stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n', got '$\'\\\'"\'\n' [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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1326, in _EvalWordPart self._EvalDoubleQuoted(part.parts, part_vals) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted self._EvalWordPart(p, part_vals, quoted=True) 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 printf %q quotes [osh_.cc stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n', got '$\'\\\'"\'\n' [osh_.cc status] Expected 0, got 1 stdout: $'\'"'stderr: |
osh | 3 printf %q unprintable stdout: $'\xff'stderr: |
osh_.py | 3 printf %q unprintable stdout: $'\xff'stderr: |
osh_.cc | 3 printf %q unprintable stdout: $'\xff'stderr: |
osh | 4 printf %q unicode stdout: 'μ'stderr: |
osh_.py | 4 printf %q unicode stdout: 'μ'stderr: |
osh_.cc | 4 printf %q unicode [osh_.cc stdout] Expected "'\xce\xbc'\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed. |
osh_.py | 6 set [osh_.py stdout] Expected "zz=$'one\\ntwo'\n", got '' stdout: stderr: |
osh_.cc | 6 set [osh_.cc stdout] Expected "zz=$'one\\ntwo'\n", got '' stdout: stderr: |
osh_.py | 7 declare [osh_.py stdout] Expected "zz=$'one\\ntwo'\ndeclare -- zz=$'one\\ntwo'\n", got "declare -- zz=$'one\\ntwo'\n" stdout: declare -- zz=$'one\ntwo'stderr: |
osh_.cc | 7 declare [osh_.cc stdout] Expected "zz=$'one\\ntwo'\ndeclare -- zz=$'one\\ntwo'\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 8 ${var@Q} [osh_.cc stdout] Expected "$'one\\ntwo \xce\xbc'\n$'one\\ntwo \xce\xbc'\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed. |
osh_.cc | 9 xtrace [osh_.cc stderr] Expected "+ echo $'one\\ntwo'\n", got 'set 2\n' stdout: one twostderr: set 2 |