Results for ysh-builtins.test.sh

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

Details on runs that didn't PASS

osh7 write --j8

[osh stdout] Expected "'\xce\xbc'\n", got '"j\\\\u{3bc}"\n'

stdout:
"j\\u{3bc}"
stderr:
osh8 write --j8 --unicode

[osh stdout] Expected "'\xce\xbc'\n'\\u{3bc}'\n'\\xce\\xbc'\n", got '"\\\\u{3bc}"\n"\\\\u{3bc}"\n"\\\\u{3bc}"\n'

stdout:
"\\u{3bc}"
"\\u{3bc}"
"\\u{3bc}"
stderr:
osh17 read --line --qsn accepts optional $''

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

stdout:
$'foo'
stderr:
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'
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'
osh22 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'