Results for ysh-builtins.test.sh

statusoshosh-cpp
pass 2825
FAIL 36
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 :y is allowed
13pass pass read (&x) is usage error
14pass FAIL read --line --with-eol
details
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 FAIL Can simulate read --all-lines with a proc and value.Place
details
21pass pass read --all
22pass FAIL read --line from directory is an error (EISDIR)
details
23pass pass read --all from directory is an error (EISDIR)
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)
53 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh-cpp14 read --line --with-eol

[osh-cpp stdout] Expected 'reply=1\nreply=2\nreply=3\nmyline=a\nmyline=b\n' Got "reply=write a b | while read --line --with-eol (&myline) {\nreply= write --end '' myline=$myline\nreply=}\nreply=1\nreply=2\nreply=3\n"

stdout:
reply=write a b | while read --line --with-eol (&myline) {
reply=  write --end '' myline=$myline
reply=}
reply=1
reply=2
reply=3
stderr:
osh15 read --line --j8

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

stdout:
u'foo'
stderr:
osh-cpp15 read --line --j8

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

stdout:
stderr: 
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'
osh-cpp20 Can simulate read --all-lines with a proc and value.Place

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

stdout:
stderr: 
osh-cpp22 read --line from directory is an error (EISDIR)

[osh-cpp stdout] Expected 'status=1\n', got ''

stdout:
stderr: