Results for oil-builtins.test.sh

statusoshosh-cpp
pass 3022
FAIL 412
total3434
caseoshosh-cppdescription
0pass pass append onto a=(1 2)
1pass FAIL append onto var a = %(1 2)
details
2pass FAIL append onto var a = ['1', '2']
details
3pass pass append with invalid type
4pass pass append with invalid var name
5pass FAIL write --sep, --end, -n, varying flag syntax
details
6pass pass write --qsn
7pass pass write --qsn --unicode
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 FAIL Idiom for returning 'read'
details
14pass FAIL read --line --with-eol
details
15pass FAIL read --line --qsn
details
16FAIL FAIL read --line --qsn accepts optional $''
detailsdetails
17pass FAIL read --line --with-eol --qsn
details
18pass pass read --qsn usage
19FAIL FAIL read --all-lines
detailsdetails
20FAIL FAIL read --all-lines --with-eol
detailsdetails
21FAIL FAIL read --all-lines --qsn --with-eol
detailsdetails
22pass pass read --all
23pass FAIL read --line from directory is an error (EISDIR)
details
24pass pass read --all from directory is an error (EISDIR)
25pass pass read -0 is like read -r -d ''
26pass pass simple_test_builtin
27pass pass long flags to test
28pass pass push-registers
29pass pass push-registers usage
30pass pass module
31pass pass runproc
32pass pass runproc typed args
33pass pass fopen
52 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh-cpp1 append onto var a = %(1 2)

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

stdout:
stderr: 
  append a '3 4' '5'  # : is optional
         ^
[ stdin ]:3: 'a' isn't an array
  argv.py @a
          ^~
[ stdin ]:4: fatal: Can't splice 'a'
osh-cpp2 append onto var a = ['1', '2']

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

stdout:
stderr: 
  append a '3 4' '5'  # : is optional
         ^
[ stdin ]:3: 'a' isn't an array
  argv.py @a
          ^~
[ stdin ]:4: fatal: Can't splice 'a'
osh-cpp5 write --sep, --end, -n, varying flag syntax

[osh-cpp stdout] Expected 'a b\nc d\n.\na b\nc d\n.\na bc d\n.\na b_c d\na b_c d END\na b_c d END\nxy\n' Got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write @a
        ^~
[ stdin ]:3: fatal: Can't splice 'a'
osh-cpp13 Idiom for returning 'read'

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

stdout:
z=
stderr:
osh-cpp14 read --line --with-eol

[osh-cpp stdout] Expected 'line=1\nline=2\nline=3\nline=a\nline=b\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
osh: cpp/core.cc:76: Str* pyos::ReadLine(): Assertion `0' failed.
timeout: the monitored command dumped core
osh-cpp15 read --line --qsn

[osh-cpp stdout] Expected "'foo\\n'\n'foo\\tbar hex=\\u{1} mu=\\u{3bc}'\n'$'\n" Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
osh: cpp/core.cc:76: Str* pyos::ReadLine(): Assertion `0' failed.
timeout: the monitored command dumped core
osh16 read --line --qsn accepts optional $''

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

stdout:
$'foo'
stderr:
osh-cpp16 read --line --qsn accepts optional $''

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

stdout:
stderr: 
osh: cpp/core.cc:76: Str* pyos::ReadLine(): Assertion `0' failed.
timeout: the monitored command dumped core
osh-cpp17 read --line --with-eol --qsn

[osh-cpp stdout] Expected "'foo\\n'\n", got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
osh: cpp/core.cc:76: Str* pyos::ReadLine(): Assertion `0' failed.
timeout: the monitored command dumped core
osh19 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-cpp19 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'
osh20 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-cpp20 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'
osh21 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'
osh-cpp21 read --all-lines --qsn --with-eol

[osh-cpp 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'
osh-cpp23 read --line from directory is an error (EISDIR)

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

stdout:
stderr: 
osh: cpp/core.cc:76: Str* pyos::ReadLine(): Assertion `0' failed.
timeout: the monitored command dumped core