Results for builtin-bash.test.sh

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

Details on runs that didn't PASS

osh-cpp1 bad help topic

[osh-cpp stdout] Expected 'help=1\ngrep=0\n', got 'TODO\nhelp=0\ngrep=1\n'

stdout:
TODO
help=0
grep=1
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-cpp22 mapfile (delimiter): -d delim

[osh-cpp 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
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-cpp23 mapfile (delimiter): -d '' (null-separated)

[osh-cpp 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
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-cpp26 mapfile (store position): -O start

[osh-cpp 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
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-cpp27 mapfile (input range): -s start -n count

[osh-cpp 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