Results for builtin-bash.test.sh

statusoshosh_.pyosh_.cc
pass 241913
FAIL 4915
total282828
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL help
details
1pass FAIL FAIL bad help topic
detailsdetails
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 FAIL FAIL type -t -> file
detailsdetails
8pass pass FAIL type -t doesn't find non-executable (like command -v)
details
9pass FAIL FAIL type -t -> not found
detailsdetails
10pass pass pass type -p and -P builtin -> file
11pass pass pass type -p builtin -> not found
12pass pass pass type -p builtin -> not a file
13pass pass pass type -P builtin -> not found
14pass pass pass type -P builtin -> not a file
15pass pass pass type -P builtin -> not a file but file found
16pass pass pass type -f builtin -> not found
17pass pass pass type -f builtin -> function and file exists
18pass pass FAIL mapfile
details
19pass pass FAIL readarray (synonym for mapfile)
details
20pass pass FAIL mapfile (array name): arr
details
21FAIL FAIL FAIL mapfile (delimiter): -d delim
detailsdetailsdetails
22FAIL FAIL FAIL mapfile (delimiter): -d '' (null-separated)
detailsdetailsdetails
23pass pass FAIL mapfile (truncate delim): -t
details
24pass FAIL FAIL mapfile -t doesn't remove \r
detailsdetails
25FAIL FAIL FAIL mapfile (store position): -O start
detailsdetailsdetails
26FAIL FAIL FAIL mapfile (input range): -s start -n count
detailsdetailsdetails
27pass FAIL FAIL mapfile / readarray stdin TODO: Fix me.
detailsdetails
56 passed, 0 OK, 0 not implemented, 0 BUG, 28 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 "osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
TODO
stderr:
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py1 bad help topic

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

stdout:
help=1
grep=1
stderr:
  help ZZZ 2>$TMP/err.txt
           ^~
[ stdin ]:1: Can't open '/err.txt': Permission denied
cat: /err.txt: No such file or directory
osh_.cc1 bad help topic

[osh_.cc stdout] Expected 'help=1\ngrep=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py7 type -t -> file

[osh_.py stdout] Expected 'file\nfile\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
type: 'find' not found
type: 'xargs' not found
osh_.cc7 type -t -> file

[osh_.cc stdout] Expected 'file\nfile\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
type: 'find' not found
type: 'xargs' not found
osh_.cc8 type -t doesn't find non-executable (like command -v)

[osh_.cc stdout] Expected u'', got 'file\n'
[osh_.cc status] Expected 1, got 0

stdout:
file
stderr:
touch: cannot touch '/non-executable': Permission denied
osh_.py9 type -t -> not found

[osh_.py stdout] Expected 'builtin\nfile\nstatus=1\n', got 'builtin\nstatus=1\n'

stdout:
builtin
status=1
stderr:
type: 'ZZZ' not found
type: 'find' not found
type: '=' not found
osh_.cc9 type -t -> not found

[osh_.cc stdout] Expected 'builtin\nfile\nstatus=1\n', got 'builtin\nstatus=1\n'

stdout:
builtin
status=1
stderr:
type: 'ZZZ' not found
type: 'find' not found
type: '=' not found
osh_.cc18 mapfile

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc19 readarray (synonym for mapfile)

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc20 mapfile (array name): arr

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh21 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_.py21 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_.cc21 mapfile (delimiter): -d delim

[osh_.cc stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh22 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_.py22 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_.cc22 mapfile (delimiter): -d '' (null-separated)

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc23 mapfile (truncate delim): -t

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py24 mapfile -t doesn't remove \r

[osh_.py stdout] Expected "['1\\r', '3\\r', '5\\r']\n", got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
    argv.py "${arr[@]}"
    ^~~~~~~
[ stdin ]:4: 'argv.py' not found
osh_.cc24 mapfile -t doesn't remove \r

[osh_.cc stdout] Expected "['1\\r', '3\\r', '5\\r']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh25 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_.py25 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_.cc25 mapfile (store position): -O start

[osh_.cc stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh26 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_.py26 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_.cc26 mapfile (input range): -s start -n count

[osh_.cc stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py27 mapfile / readarray stdin TODO: Fix me.

[osh_.py stdout] Expected '2\n3\n', got '0\n0\n'

stdout:
0
0
stderr:
  seq 2 | mapfile m
  ^~~
[ stdin ]:2: 'seq' not found
  seq 3 | readarray r
  ^~~
[ stdin ]:3: 'seq' not found
osh_.cc27 mapfile / readarray stdin TODO: Fix me.

[osh_.cc stdout] Expected '2\n3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.