Results for ysh-usage.test.sh

statusyshysh-cpp
pass 1413
FAIL 12
total1515
caseyshysh-cppdescription
0pass pass ysh --location-str --location-start-line
1pass pass ysh --eval
2pass pass ysh --eval-pure can evaluate funcs and procs
3FAIL FAIL ysh --eval-pure can't run impure
detailsdetails
4pass pass ysh --eval cannot load file
5pass pass ysh --eval parse error
6pass pass ysh --eval runtime error
7pass pass ysh --eval exit status
8pass FAIL ysh --eval respects _this_dir and $0
details
9pass pass Multiple ysh --eval values
10pass pass --debug-file
11pass pass Filename quoting
12pass pass shopt --set verbose_errexit
13pass pass YSH shows options correctly (bug fix)
14pass 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

Details on runs that didn't PASS

ysh3 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 41860: Command failed with status 127
  $[ENV.SH] --eval-pure pure.ysh --eval-pure impure.ysh -c ''
  ^~
[ stdin ]:9: errexit PID 41840: Command failed with status 127
ysh-cpp3 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 41884: Command failed with status 127
  $[ENV.SH] --eval-pure pure.ysh --eval-pure impure.ysh -c ''
  ^~
[ stdin ]:9: errexit PID 41880: Command failed with status 127
ysh-cpp8 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 AA
stderr:
    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 42095: Command failed with status 1