| status | ysh | ysh-cpp | |
| pass | 9 | 2 | |
| FAIL | 0 | 7 | |
| total | 9 | 9 | |
| case | ysh | ysh-cpp | description |
| 0 | pass | FAIL | captureStdout() is like $() |
| details | |||
| 1 | pass | FAIL | captureStdout() failure |
| details | |||
| 2 | pass | FAIL | io->eval() is like eval builtin |
| details | |||
| 3 | pass | FAIL | captureAll() is like $() but captures stderr and status |
| details | |||
| 4 | pass | FAIL | captureAll() doesn't fail |
| details | |||
| 5 | pass | FAIL | io->eval() with failing command - caller must handle |
| details | |||
| 6 | pass | FAIL | io->eval() with exit |
| details | |||
| 7 | pass | pass | io.glob() respects shell filters |
| 8 | pass | pass | io.libcGlob() does not respect shell filters |
11 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| ysh-cpp | 0 captureStdout() is like $() [ysh-cpp stdout] Expected '(Str) "one\\ncaptured"\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^(echo one; echo $captured)
^
[ stdin ]:3: Invalid word while parsing command list
|
| ysh-cpp | 1 captureStdout() failure [ysh-cpp stdout] Expected '(Dict) {"status":1,"code":4,"message":"captureStdout(): command failed with status 1"}\n' Got '' [ysh-cpp status] Expected 4 Got 2 stdout: stderr: var c = ^(echo one; false; echo two)
^
[ stdin ]:1: Invalid word while parsing command list
|
| ysh-cpp | 2 io->eval() is like eval builtin [ysh-cpp stdout] Expected 'one\ntwo\nstatus=null\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: var c = ^(echo one; echo two)
^
[ stdin ]:1: Invalid word while parsing command list
|
| ysh-cpp | 3 captureAll() is like $() but captures stderr and status [ysh-cpp stdout] Expected '(Dict) {"stdout":"stdout\\ncaptured\\n\\u0000","stderr":"stderr\\ncaptured\\n","status":42}\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: )
^
[ stdin ]:10: Unexpected EOF while parsing command
|
| ysh-cpp | 4 captureAll() doesn't fail [ysh-cpp stdout] Expected '(Dict) {"code":0}\n(Dict) {"stdout":"out\\n","stderr":"err\\n","status":1}\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: var c = ^(shopt --unset verbose_errexit; echo out; echo err >&2; false; echo two)
^
[ stdin ]:1: Invalid word while parsing command list
|
| ysh-cpp | 5 io->eval() with failing command - caller must handle [ysh-cpp stdout] Expected 'one\n(Dict) {"code":1}\none\n' Got '' [ysh-cpp status] Expected 1 Got 2 stdout: stderr: var c = ^(echo one; false; echo two)
^
[ stdin ]:1: Invalid word while parsing command list
|
| ysh-cpp | 6 io->eval() with exit [ysh-cpp stdout] Expected 'one\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: var c = ^(echo one; exit; echo two)
^
[ stdin ]:1: Invalid word while parsing command list
|