Results for oil-builtins.test.sh

statusosh
pass 30
FAIL 3
total33
caseoshdescription
0pass append onto a=(1 2)
1pass append onto var a = %(1 2)
2pass append with invalid type
3pass append with invalid var name
4pass write -sep, -end, -n, varying flag syntax
5pass write --qsn
6pass write --qsn --unicode
7pass write -e not supported
8pass write syntax error
9pass write --
10pass read flag usage
11pass read :x :y is allowed
12pass Idiom for returning 'read'
13pass read --line --with-eol
14pass read --line --qsn
15pass read --line --with-eol --qsn
16pass read --qsn usage
17FAIL read --all-lines
details
18FAIL read --all-lines --with-eol
details
19FAIL read --all-lines --qsn --with-eol
details
20pass read --all
21pass read -0 is like read -r -d ''
22pass shopt supports long flags
23pass shopt supports 'set' options
24pass shopt and block
25pass shopt and block status
26pass shopt usage error
27pass shopt --print
28pass simple_test_builtin
29pass long flags to test
30pass push-registers
31pass module
32pass runproc
30 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh17 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'
osh18 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'
osh19 read --all-lines --qsn --with-eol

[osh stdout] Expected 'foo\nbar\none\ntwo\n', got '@lines\n'

stdout:
@lines
stderr:
  read --all-lines --qsn --with-eol :lines << EOF
       ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'