Results for builtin-bash.test.sh

statusoshosh_.pyosh_.cc
pass 252518
FAIL 4411
total292929
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL help
details
1pass pass FAIL bad help topic
details
2pass pass pass type -t -> function
3pass pass pass type -t -> alias
4pass pass pass type -t -> builtin
5pass pass pass type -t -> keyword
6pass pass pass type -t control flow
7pass pass pass type -t -> file
8pass pass pass type -t doesn't find non-executable (like command -v)
9pass pass pass type -t -> not found
10pass pass pass type -> not found
11pass pass pass type -p and -P builtin -> file
12pass pass pass type -p builtin -> not found
13pass pass pass type -p builtin -> not a file
14pass pass pass type -P builtin -> not found
15pass pass pass type -P builtin -> not a file
16pass pass pass type -P builtin -> not a file but file found
17pass pass pass type -f builtin -> not found
18pass pass pass type -f builtin -> function and file exists
19pass pass FAIL mapfile
details
20pass pass FAIL readarray (synonym for mapfile)
details
21pass pass FAIL mapfile (array name): arr
details
22FAIL FAIL FAIL mapfile (delimiter): -d delim
detailsdetailsdetails
23FAIL FAIL FAIL mapfile (delimiter): -d '' (null-separated)
detailsdetailsdetails
24pass pass FAIL mapfile (truncate delim): -t
details
25pass pass FAIL mapfile -t doesn't remove \r
details
26FAIL FAIL FAIL mapfile (store position): -O start
detailsdetailsdetails
27FAIL FAIL FAIL mapfile (input range): -s start -n count
detailsdetailsdetails
28pass pass pass mapfile / readarray stdin TODO: Fix me.
68 passed, 0 OK, 0 not implemented, 0 BUG, 19 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh_.cc0 help

[osh_.cc stderr] Expected 'status=0\nstatus=0\nstatus=0\n', got 'TODO\nstatus=0\nTODO\nstatus=0\nTODO\nstatus=0\n'

stdout:
stderr: 
TODO
status=0
TODO
status=0
TODO
status=0
osh_.cc1 bad help topic

[osh_.cc stdout] Expected 'help=1\ngrep=0\n', got 'TODO\nhelp=0\ngrep=1\n'

stdout:
TODO
help=0
grep=1
stderr:
osh_.cc19 mapfile

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\nn=4\n[mapfile is a builtin\n]\n[1\n]\n[3\n]\n[5\n]\n'

stdout:
mapfile is a builtin
n=4
[mapfile is a builtin
]
[1
]
[3
]
[5
]
stderr:
osh_.cc20 readarray (synonym for mapfile)

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'readarray is a builtin\nn=4\n[readarray is a builtin\n]\n[1\n]\n[3\n]\n[5\n]\n'

stdout:
readarray is a builtin
n=4
[readarray is a builtin
]
[1
]
[3
]
[5
]
stderr:
osh_.cc21 mapfile (array name): arr

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\nn=4\n[mapfile is a builtin\n]\n[1\n]\n[3\n]\n[5\n]\n'

stdout:
mapfile is a builtin
n=4
[mapfile is a builtin
]
[1
]
[3
]
[5
]
stderr:
osh22 mapfile (delimiter): -d delim

[osh stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d : arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.py22 mapfile (delimiter): -d delim

[osh_.py stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d : arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.cc22 mapfile (delimiter): -d delim

[osh_.cc stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'mapfile is a builtin\nn=0\n[]\n'

stdout:
mapfile is a builtin
n=0
[]
stderr:
    mapfile -d : arr
            ^~
[ stdin ]:3: 'mapfile' dynamic_fmt_dummy
osh23 mapfile (delimiter): -d '' (null-separated)

[osh stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d '' arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.py23 mapfile (delimiter): -d '' (null-separated)

[osh_.py stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d '' arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.cc23 mapfile (delimiter): -d '' (null-separated)

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\nn=0\n[]\n'

stdout:
mapfile is a builtin
n=0
[]
stderr:
    mapfile -d '' arr
            ^~
[ stdin ]:3: 'mapfile' dynamic_fmt_dummy
osh_.cc24 mapfile (truncate delim): -t

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\nn=4\n[mapfile is a builtin]\n[1]\n[3]\n[5]\n'

stdout:
mapfile is a builtin
n=4
[mapfile is a builtin]
[1]
[3]
[5]
stderr:
osh_.cc25 mapfile -t doesn't remove \r

[osh_.cc stdout] Expected "['1\\r', '3\\r', '5\\r']\n", got "['mapfile is a builtin', '1\\r', '3\\r', '5\\r']\nmapfile is a builtin\n"

stdout:
['mapfile is a builtin', '1\r', '3\r', '5\r']
mapfile is a builtin
stderr:
osh26 mapfile (store position): -O start

[osh stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'n=3\n[x]\n[y]\n[z]\n'

stdout:
n=3
[x]
[y]
[z]
stderr:
    mapfile -O 2 -t arr
            ^~
[ stdin ]:4: 'mapfile' doesn't accept flag -O
osh_.py26 mapfile (store position): -O start

[osh_.py stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'n=3\n[x]\n[y]\n[z]\n'

stdout:
n=3
[x]
[y]
[z]
stderr:
    mapfile -O 2 -t arr
            ^~
[ stdin ]:4: 'mapfile' doesn't accept flag -O
osh_.cc26 mapfile (store position): -O start

[osh_.cc stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'mapfile is a builtin\nn=3\n[x]\n[y]\n[z]\n'

stdout:
mapfile is a builtin
n=3
[x]
[y]
[z]
stderr:
    mapfile -O 2 -t arr
            ^~
[ stdin ]:4: 'mapfile' dynamic_fmt_dummy
osh27 mapfile (input range): -s start -n count

[osh stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -s 5 -n 3 -t arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -s
osh_.py27 mapfile (input range): -s start -n count

[osh_.py stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -s 5 -n 3 -t arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -s
osh_.cc27 mapfile (input range): -s start -n count

[osh_.cc stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'mapfile is a builtin\nn=0\n[]\n'

stdout:
mapfile is a builtin
n=0
[]
stderr:
    mapfile -s 5 -n 3 -t arr
            ^~
[ stdin ]:3: 'mapfile' dynamic_fmt_dummy