Results for ysh-builtins.test.sh

statusoshosh-cpp
pass 2626
FAIL 55
total3131
caseoshosh-cppdescription
0pass pass append onto BashArray a=(1 2)
1pass pass append onto var a = :| 1 2 |
2pass pass append onto var a = ['1', '2']
3pass pass append without typed arg
4pass pass append passed invalid type
5pass pass write --sep, --end, -n, varying flag syntax
6pass pass write --json
7pass pass write --j8
8pass pass write -e not supported
9pass pass write syntax error
10pass pass write --
11pass pass read flag usage
12pass pass read (&x) is usage error
13FAIL FAIL Mixing read --line with read -r
detailsdetails
14FAIL FAIL read --line --with-eol
detailsdetails
15FAIL FAIL read --line --j8
detailsdetails
16pass pass echo builtin should disallow typed args - literal
17pass pass echo builtin should disallow typed args - variable
18FAIL FAIL read --all-lines
detailsdetails
19FAIL FAIL read --all-lines --with-eol
detailsdetails
20pass pass Can simulate read --all-lines with a proc and value.Place
21pass pass read --all
22pass pass read --all from directory is an error (EISDIR)
23pass pass read --num-bytes
24pass pass read -0 is like read -r -d ''
25pass pass simple_test_builtin
26pass pass long flags to test
27pass pass push-registers
28pass pass push-registers usage
29pass pass fopen
30pass pass type(x)
52 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

osh13 Mixing read --line with read -r

[osh stdout] Expected 'TODO\n', got 'read -r\nREPLY=1\nREPLY=2\n\nread --line\n_reply=\n_reply=\n\nMixed\nREPLY=1\nREPLY=2\n_reply=\nREPLY=3\n'

stdout:
read -r
REPLY=1
REPLY=2

read --line
_reply=
_reply=

Mixed
REPLY=1
REPLY=2
_reply=
REPLY=3
stderr:
    read --line
    ^~~~
/home/uke/oil/spec/testdata/ysh-read-0.sh:14: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
    read --line
    ^~~~
/home/uke/oil/spec/testdata/ysh-read-0.sh:17: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
    read --line
    ^~~~
/home/uke/oil/spec/testdata/ysh-read-0.sh:30: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh-cpp13 Mixing read --line with read -r

[osh-cpp stdout] Expected 'TODO\n', got 'read -r\nREPLY=1\nREPLY=2\n\nread --line\n_reply=\n_reply=\n\nMixed\nREPLY=1\nREPLY=2\n_reply=\nREPLY=3\n'

stdout:
read -r
REPLY=1
REPLY=2

read --line
_reply=
_reply=

Mixed
REPLY=1
REPLY=2
_reply=
REPLY=3
stderr:
    read --line
    ^~~~
/home/uke/oil/test/../spec/testdata/ysh-read-0.sh:14: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
    read --line
    ^~~~
/home/uke/oil/test/../spec/testdata/ysh-read-0.sh:17: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
    read --line
    ^~~~
/home/uke/oil/test/../spec/testdata/ysh-read-0.sh:30: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh14 read --line --with-eol

[osh stdout] Expected 'reply=1\nreply=2\nreply=3\nmyline=a\nmyline=b\n' Got ''

stdout:
stderr: 
  seq 3 | while read --line {
                ^~~~
/home/uke/oil/spec/testdata/ysh-read-1.sh:6: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
  write a b | while read --line --with-eol (&myline) {
                    ^~~~
/home/uke/oil/spec/testdata/ysh-read-1.sh:9: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh-cpp14 read --line --with-eol

[osh-cpp stdout] Expected 'reply=1\nreply=2\nreply=3\nmyline=a\nmyline=b\n' Got ''

stdout:
stderr: 
  seq 3 | while read --line {
                ^~~~
/home/uke/oil/test/../spec/testdata/ysh-read-1.sh:6: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
  write a b | while read --line --with-eol (&myline) {
                    ^~~~
/home/uke/oil/test/../spec/testdata/ysh-read-1.sh:9: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh15 read --line --j8

[osh stdout] Expected 'foo\n', got '\n'

stdout:
stderr: 
  echo $'u\'foo\'' | read --line --j8
                     ^~~~
[ stdin ]:1: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh-cpp15 read --line --j8

[osh-cpp stdout] Expected 'foo\n', got '\n'

stdout:
stderr: 
  echo $'u\'foo\'' | read --line --j8
                     ^~~~
[ stdin ]:1: 'read' no longer supports --line; please use read -r instead (unbuffered I/O)
osh18 read --all-lines

[osh stdout] Expected '1 2 3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh-cpp18 read --all-lines

[osh-cpp stdout] Expected '1 2 3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh19 read --all-lines --with-eol

[osh stdout] Expected '1\n2\n3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines --with-eol :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh-cpp19 read --all-lines --with-eol

[osh-cpp stdout] Expected '1\n2\n3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines --with-eol :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'