spec test index / oilshell.org
status | ysh | ysh_ALT | |
pass | 4 | 3 | |
FAIL | 4 | 5 | |
total | 8 | 8 | |
case | ysh | ysh_ALT | description |
0 | pass | pass | default prompt doesn't confuse OSH and YSH |
1 | pass | FAIL | promptVal() with various values |
details | |||
2 | pass | pass | promptVal() with invalid chars |
3 | pass | pass | ysh respects PS1 |
4 | FAIL | FAIL | ysh respects renderPrompt() over PS1 |
details | details | ||
5 | FAIL | FAIL | renderPrompt() doesn't return string |
details | details | ||
6 | FAIL | FAIL | renderPrompt() raises error |
details | details | ||
7 | FAIL | FAIL | renderPrompt() has wrong signature |
details | details |
7 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped 4 failed under osh
ysh_ALT | 1 promptVal() with various values [ysh_ALT stdout] Expected 'x=$\npass\n', got 'x=$\n' [ysh_ALT status] Expected 0, got 3 stdout: x=$stderr: assert [x === ENV.PWD] ^ [ stdin ]:9: fatal: Dict entry 'PWD' not found |
ysh | 4 ysh respects renderPrompt() over PS1 [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'hi$ hi$ ', got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43577: command.Simple failed with status 1\n" [ysh status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43577: command.Simple failed with status 1 |
ysh_ALT | 4 ysh respects renderPrompt() over PS1 [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'hi$ hi$ ', got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43580: command.Simple failed with status 1\n" [ysh_ALT status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43580: command.Simple failed with status 1 |
ysh | 5 renderPrompt() doesn't return string [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'<Error: renderPrompt() should return Str, got List> <Error: renderPrompt() should return Str, got List> ' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43581: command.Simple failed with status 1\n" [ysh status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43581: command.Simple failed with status 1 |
ysh_ALT | 5 renderPrompt() doesn't return string [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'<Error: renderPrompt() should return Str, got List> <Error: renderPrompt() should return Str, got List> ' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43584: command.Simple failed with status 1\n" [ysh_ALT status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43584: command.Simple failed with status 1 |
ysh | 6 renderPrompt() raises error [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43585: command.Simple failed with status 1\n" [ysh status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43585: command.Simple failed with status 1 |
ysh_ALT | 6 renderPrompt() raises error [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43588: command.Simple failed with status 1\n" [ysh_ALT status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43588: command.Simple failed with status 1 |
ysh | 7 renderPrompt() has wrong signature [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u"<Runtime error: Func 'renderPrompt' takes no positional args, but got 1><Runtime error: Func 'renderPrompt' takes no positional args, but got 1>" Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43589: command.Simple failed with status 1\n" [ysh status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43589: command.Simple failed with status 1 |
ysh_ALT | 7 renderPrompt() has wrong signature [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u"<Runtime error: Func 'renderPrompt' takes no positional args, but got 1><Runtime error: Func 'renderPrompt' takes no positional args, but got 1>" Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43592: command.Simple failed with status 1\n" [ysh_ALT status] Expected 0, got 1 stdout: stderr: export PS1='myprompt\$ ' ^~~~~~ [ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported) [ stdin ]:1: errexit PID 43592: command.Simple failed with status 1 |