Results for ysh-builtins.test.sh

statusoshosh_ALT
pass 3231
FAIL 34
total3535
caseoshosh_ALTdescription
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
13pass pass read --raw-line
14pass pass read --raw-line handles line without end, --with-eol
15pass pass Mixing read --raw-line with read -r
16pass pass read --raw-line --with-eol
17FAIL FAIL read --raw-line --j8
detailsdetails
18pass pass echo builtin should disallow typed args - literal
19pass pass echo builtin should disallow typed args - variable
20FAIL FAIL read --all-lines
detailsdetails
21FAIL FAIL read --all-lines --with-eol
detailsdetails
22pass pass Can simulate read --all-lines with a proc and value.Place
23pass pass read --all
24pass pass read --all from directory is an error (EISDIR)
25pass pass read --num-bytes
26pass pass read -0 is like read -r -d ''
27pass pass read -0 myvar doesn't do anything with IFS
28pass pass simple_test_builtin
29pass pass long flags to test
30pass pass push-registers
31pass pass push-registers usage
32pass pass fopen
33pass pass type(x)
34pass FAIL source ///osh/two.sh and $LIB_OSH
details
63 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 --raw-line --j8

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

stdout:
stderr: 
  echo $'u\'foo\'' | read --raw-line --j8
                                     ^~~~
[ stdin ]:1: 'read' got invalid flag '--j8'
osh_ALT17 read --raw-line --j8

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

stdout:
stderr: 
  echo $'u\'foo\'' | read --raw-line --j8
                                     ^~~~
[ stdin ]:1: 'read' got invalid flag '--j8'
osh20 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_ALT20 read --all-lines

[osh_ALT 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'
osh21 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_ALT21 read --all-lines --with-eol

[osh_ALT 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_ALT34 source ///osh/two.sh and $LIB_OSH

[osh_ALT stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\n', got 'status=2\nstatus=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
status=2
stderr:
  source ///osh/two.sh
         ^
[ stdin ]:1: source failed: No builtin file 'stdlib/osh/two.sh'
  source $LIB_OSH/two.sh
         ^~~~~~~~
[ stdin ]:4: source failed: No builtin file 'stdlib/osh/two.sh'
  source ///
         ^
[ stdin ]:7: source failed: No builtin file 'stdlib/'
  source ///x
         ^
[ stdin ]:9: source failed: No builtin file 'stdlib/x'