spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 9 | 9 | 7 | |
FAIL | 3 | 3 | 5 | |
total | 12 | 12 | 12 | |
case | osh | osh_.py | osh_.cc | description |
0 | FAIL | FAIL | FAIL | set -o verbose prints unevaluated code |
details | details | details | ||
1 | pass | pass | pass | xtrace with unprintable chars |
2 | pass | pass | FAIL | xtrace with unicode chars |
details | ||||
3 | pass | pass | pass | xtrace with tabs |
4 | pass | pass | pass | xtrace with whitespace, quotes, and backslash |
5 | pass | pass | pass | xtrace with newlines |
6 | pass | pass | FAIL | xtrace written before command executes |
details | ||||
7 | FAIL | FAIL | FAIL | PS4 is scoped |
details | details | details | ||
8 | FAIL | FAIL | FAIL | xtrace with variables in PS4 |
details | details | details | ||
9 | pass | pass | pass | PS4 with unterminated ${ |
10 | pass | pass | pass | PS4 with unterminated $( |
11 | pass | pass | pass | PS4 with runtime error |
25 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 0 set -o verbose prints unevaluated code [osh stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n' stdout: foo barstderr: Warning: set -o verbose not implemented |
osh_.py | 0 set -o verbose prints unevaluated code [osh_.py stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n' stdout: foo barstderr: Warning: set -o verbose not implemented |
osh_.cc | 0 set -o verbose prints unevaluated code [osh_.cc stdout] Expected 'foo\nbar\n', got 'foo\n' [osh_.cc stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got "Warning: set -o verbose not implemented\nosh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: foostderr: Warning: set -o verbose not implemented osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 2 xtrace with unicode chars [osh_.cc stderr] Expected "+ echo '[\xce\xbc]' '[\xce\xbc]'\n", got "+ echo $'[\xce\xbc]' $'[\xce\xbc]'\n" stdout: [μ] [μ]stderr: + echo $'[μ]' $'[μ]' |
osh_.cc | 6 xtrace written before command executes [osh_.cc stderr] Expected '+ echo one\none\n+ echo two\ntwo\n', got "osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh | 7 PS4 is scoped [osh stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got "+ echo one\n+ f\n+ 'TODO: trace string for assignment'\n- echo func\n+ echo two\n" stdout: one func twostderr: + echo one + f + 'TODO: trace string for assignment' - echo func + echo two |
osh_.py | 7 PS4 is scoped [osh_.py stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got "+ echo one\n+ f\n+ 'TODO: trace string for assignment'\n- echo func\n+ echo two\n" stdout: one func twostderr: + echo one + f + 'TODO: trace string for assignment' - echo func + echo two |
osh_.cc | 7 PS4 is scoped [osh_.cc stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got '+ echo one\n' stdout: one func twostderr: + echo one |
osh | 8 xtrace with variables in PS4 [osh stderr] Expected '+1:echo one\n+2:echo two\n', got '+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)\n+1:echo one\n+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)\n+2:echo two\n' stdout: one twostderr: +1:(lvalue.Named name:x spids:[11]) = (value.Str s:1) +1:echo one +2:(lvalue.Named name:x spids:[21]) = (value.Str s:2) +2:echo two |
osh_.py | 8 xtrace with variables in PS4 [osh_.py stderr] Expected '+1:echo one\n+2:echo two\n', got '+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)\n+1:echo one\n+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)\n+2:echo two\n' stdout: one twostderr: +1:(lvalue.Named name:x spids:[11]) = (value.Str s:1) +1:echo one +2:(lvalue.Named name:x spids:[21]) = (value.Str s:2) +2:echo two |
osh_.cc | 8 xtrace with variables in PS4 [osh_.cc stderr] Expected '+1:echo one\n+2:echo two\n', got '' stdout: one twostderr: |