| status | ysh | ysh-cpp | |
| pass | 14 | 13 | |
| FAIL | 1 | 2 | |
| total | 15 | 15 | |
| case | ysh | ysh-cpp | description |
| 0 | pass | pass | ysh --location-str --location-start-line |
| 1 | pass | pass | ysh --eval |
| 2 | pass | pass | ysh --eval-pure can evaluate funcs and procs |
| 3 | FAIL | FAIL | ysh --eval-pure can't run impure |
| details | details | ||
| 4 | pass | pass | ysh --eval cannot load file |
| 5 | pass | pass | ysh --eval parse error |
| 6 | pass | pass | ysh --eval runtime error |
| 7 | pass | pass | ysh --eval exit status |
| 8 | pass | FAIL | ysh --eval respects _this_dir and $0 |
| details | |||
| 9 | pass | pass | Multiple ysh --eval values |
| 10 | pass | pass | --debug-file |
| 11 | pass | pass | Filename quoting |
| 12 | pass | pass | shopt --set verbose_errexit |
| 13 | pass | pass | YSH shows options correctly (bug fix) |
| 14 | pass | pass | --tool syntax-tree respects frontend/syntax_abbrev.py |
27 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| ysh | 3 ysh --eval-pure can't run impure [ysh status] Expected 1 Got 127 stdout: stderr: proc my-proc { echo "my-proc" }
^~~~
pure.ysh:2: Command 'echo' not found in pure mode (OILS-ERR-102)
pure.ysh:2: errexit PID 41882: Command failed with status 127
$[ENV.SH] --eval-pure pure.ysh --eval-pure impure.ysh -c ''
^~
[ stdin ]:9: errexit PID 41873: Command failed with status 127
|
| ysh-cpp | 3 ysh --eval-pure can't run impure [ysh-cpp status] Expected 1 Got 127 stdout: stderr: proc my-proc { echo "my-proc" }
^~~~
pure.ysh:2: Command 'echo' not found in pure mode (OILS-ERR-102)
pure.ysh:2: errexit PID 41895: Command failed with status 127
$[ENV.SH] --eval-pure pure.ysh --eval-pure impure.ysh -c ''
^~
[ stdin ]:9: errexit PID 41894: Command failed with status 127
|
| ysh-cpp | 8 ysh --eval respects _this_dir and $0 [ysh-cpp stdout] Expected 'one\ntwo\nthree AA\ndollar0 = three.ysh\nflag -c\n' Got 'one\ntwo\nthree AA\n' [ysh-cpp status] Expected 0 Got 1 stdout: one two three AAstderr: echo "dollar0 = $(basename $x)"
^
/home/uke/oil/_tmp/spec-tmp/ysh-usage.test.sh/08-ysh-cpp/code/three.ysh:7: Invalid word while parsing command list
$[ENV.SH] --eval $dir/one.ysh --eval $dir/three.ysh -c 'echo flag -c'
^~
[ stdin ]:20: errexit PID 42109: Command failed with status 1
|