spec test index / oilshell.org
| status | osh | osh_.py | osh_.cc | |
| FAIL | 9 | 9 | 9 | |
| total | 9 | 9 | 9 | |
| case | osh | osh_.py | osh_.cc | description |
| 0 | FAIL | FAIL | FAIL | typeset a[3]=4 |
| details | details | details | ||
| 1 | FAIL | FAIL | FAIL | typeset -a a[1]=a a[3]=c |
| details | details | details | ||
| 2 | FAIL | FAIL | FAIL | local a[3]=4 |
| details | details | details | ||
| 3 | FAIL | FAIL | FAIL | readonly a[7]=8 |
| details | details | details | ||
| 4 | FAIL | FAIL | FAIL | export a[7]=8 |
| details | details | details | ||
| 5 | FAIL | FAIL | FAIL | 'builtin' prefix is allowed on assignments |
| details | details | details | ||
| 6 | FAIL | FAIL | FAIL | 'command' prefix is allowed on assignments |
| details | details | details | ||
| 7 | FAIL | FAIL | FAIL | 'builtin' prefix and array is a parse error |
| details | details | details | ||
| 8 | FAIL | FAIL | FAIL | 'command' prefix and array is a parse error |
| details | details | details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 27 failed, 0 timeouts, 0 cases skipped 9 failed under osh
| osh | 0 typeset a[3]=4 [osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: typeset a[3]=4 a[5]=6
^~
[ stdin ]:1: fatal: Invalid variable name 'a[3]=4'
|
| osh_.py | 0 typeset a[3]=4 [osh_.py stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh_.py status] Expected 0, got 1 stdout: stderr: typeset a[3]=4 a[5]=6
^~
[ stdin ]:1: fatal: Invalid variable name 'a[3]=4'
|
| osh_.cc | 0 typeset a[3]=4 [osh_.cc stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: typeset a[3]=4 a[5]=6 ^~~~~~~ [ stdin ]:1: fatal: Invalid variable name 'a[3]=4' dumb_alloc: gNumNew = 1679 gNumDelete = 122 gMemPos = 59136 gNumMalloc = 36 gNumFree = 0 gMemPos2 = 9792 |
| osh | 1 typeset -a a[1]=a a[3]=c [osh stdout] Expected "['x', 'z']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: typeset -a a[1*1]=x a[1+2]=z
^~
[ stdin ]:1: fatal: Invalid variable name 'a[1*1]=x'
|
| osh_.py | 1 typeset -a a[1]=a a[3]=c [osh_.py stdout] Expected "['x', 'z']\n", got '' [osh_.py status] Expected 0, got 1 stdout: stderr: typeset -a a[1*1]=x a[1+2]=z
^~
[ stdin ]:1: fatal: Invalid variable name 'a[1*1]=x'
|
| osh_.cc | 1 typeset -a a[1]=a a[3]=c [osh_.cc stdout] Expected "['x', 'z']\n", got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: typeset -a a[1*1]=x a[1+2]=z ^~~~~~~ [ stdin ]:1: fatal: Invalid variable name 'a[1*1]=x' dumb_alloc: gNumNew = 1703 gNumDelete = 132 gMemPos = 60208 gNumMalloc = 42 gNumFree = 0 gMemPos2 = 9888 |
| osh | 2 local a[3]=4 [osh stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: local a[3]=4 a[5]=6
^~
[ stdin ]:2: fatal: Invalid variable name 'a[3]=4'
|
| osh_.py | 2 local a[3]=4 [osh_.py stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh_.py status] Expected 0, got 1 stdout: stderr: local a[3]=4 a[5]=6
^~
[ stdin ]:2: fatal: Invalid variable name 'a[3]=4'
|
| osh_.cc | 2 local a[3]=4 [osh_.cc stdout] Expected "status=0\n['3', '5', '4', '6']\n", got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: local a[3]=4 a[5]=6
^~~~~
[ stdin ]:2: fatal: Invalid variable name 'a[3]=4'
dumb_alloc:
gNumNew = 1880
gNumDelete = 166
gMemPos = 64784
gNumMalloc = 79
gNumFree = 0
gMemPos2 = 10480
|
| osh | 3 readonly a[7]=8 [osh stdout] Expected "status=0\n['7', '8']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: readonly b[7]=8
^~
[ stdin ]:1: fatal: Invalid variable name 'b[7]=8'
|
| osh_.py | 3 readonly a[7]=8 [osh_.py stdout] Expected "status=0\n['7', '8']\n", got '' [osh_.py status] Expected 0, got 1 stdout: stderr: readonly b[7]=8
^~
[ stdin ]:1: fatal: Invalid variable name 'b[7]=8'
|
| osh_.cc | 3 readonly a[7]=8 [osh_.cc stdout] Expected "status=0\n['7', '8']\n", got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: readonly b[7]=8 ^~~~~~~~ [ stdin ]:1: fatal: Invalid variable name 'b[7]=8' dumb_alloc: gNumNew = 1661 gNumDelete = 112 gMemPos = 58544 gNumMalloc = 32 gNumFree = 0 gMemPos2 = 9712 |
| osh | 4 export a[7]=8 [osh stdout] Expected 'status=2\n[]\nNone\n', got '' [osh status] Expected 0, got 1 stdout: stderr: export a[7]=8
^~
[ stdin ]:1: fatal: Invalid variable name 'a[7]=8'
|
| osh_.py | 4 export a[7]=8 [osh_.py stdout] Expected 'status=2\n[]\nNone\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: export a[7]=8
^~
[ stdin ]:1: fatal: Invalid variable name 'a[7]=8'
|
| osh_.cc | 4 export a[7]=8 [osh_.cc stdout] Expected 'status=2\n[]\nNone\n', got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: export a[7]=8 ^~~~~~ [ stdin ]:1: fatal: Invalid variable name 'a[7]=8' dumb_alloc: gNumNew = 1661 gNumDelete = 112 gMemPos = 58544 gNumMalloc = 32 gNumFree = 0 gMemPos2 = 9712 |
| osh | 5 'builtin' prefix is allowed on assignments [osh stdout] Expected 'e=E\n', got 'e=\n' stdout: e=stderr: builtin export e='E'
^~~~~~
[ stdin ]:1: Can't run assignment builtin recursively
|
| osh_.py | 5 'builtin' prefix is allowed on assignments [osh_.py stdout] Expected 'e=E\n', got 'e=\n' stdout: e=stderr: builtin export e='E'
^~~~~~
[ stdin ]:1: Can't run assignment builtin recursively
|
| osh_.cc | 5 'builtin' prefix is allowed on assignments [osh_.cc stdout] Expected 'e=E\n', got 'e=\n' stdout: e=stderr: builtin export e='E'
^~~~~~
[ stdin ]:1: Can't run assignment builtin recursively
dumb_alloc:
gNumNew = 1900
gNumDelete = 148
gMemPos = 64944
gNumMalloc = 144
gNumFree = 0
gMemPos2 = 11520
|
| osh | 6 'command' prefix is allowed on assignments [osh stdout] Expected 'r1=R1\nr2=R2\n', got 'r1=R1\nr2=\n' stdout: r1=R1 r2=stderr: command readonly r2='R2' # but not this
^~~~~~~~
[ stdin ]:2: Can't run assignment builtin recursively
|
| osh_.py | 6 'command' prefix is allowed on assignments [osh_.py stdout] Expected 'r1=R1\nr2=R2\n', got 'r1=R1\nr2=\n' stdout: r1=R1 r2=stderr: command readonly r2='R2' # but not this
^~~~~~~~
[ stdin ]:2: Can't run assignment builtin recursively
|
| osh_.cc | 6 'command' prefix is allowed on assignments [osh_.cc stdout] Expected 'r1=R1\nr2=R2\n', got 'r1=R1\nr2=\n' stdout: r1=R1 r2=stderr: command readonly r2='R2' # but not this
^~~~~~~~
[ stdin ]:2: Can't run assignment builtin recursively
dumb_alloc:
gNumNew = 2152
gNumDelete = 194
gMemPos = 72240
gNumMalloc = 214
gNumFree = 0
gMemPos2 = 12656
|
| osh | 7 'builtin' prefix and array is a parse error [osh status] Expected 2, got 1 stdout: stderr: builtin typeset a=(1 2 3)
^
[ stdin ]:1: fatal: Unexpected array literal
|
| osh_.py | 7 'builtin' prefix and array is a parse error [osh_.py status] Expected 2, got 1 stdout: stderr: builtin typeset a=(1 2 3)
^
[ stdin ]:1: fatal: Unexpected array literal
|
| osh_.cc | 7 'builtin' prefix and array is a parse error [osh_.cc status] Expected 2, got 1 stdout: stderr: builtin typeset a=(1 2 3) ^~~~~~~ [ stdin ]:1: fatal: Unexpected array literal dumb_alloc: gNumNew = 1760 gNumDelete = 123 gMemPos = 61440 gNumMalloc = 88 gNumFree = 0 gMemPos2 = 10624 |
| osh | 8 'command' prefix and array is a parse error [osh status] Expected 2, got 1 stdout: stderr: command typeset a=(1 2 3)
^
[ stdin ]:1: fatal: Unexpected array literal
|
| osh_.py | 8 'command' prefix and array is a parse error [osh_.py status] Expected 2, got 1 stdout: stderr: command typeset a=(1 2 3)
^
[ stdin ]:1: fatal: Unexpected array literal
|
| osh_.cc | 8 'command' prefix and array is a parse error [osh_.cc status] Expected 2, got 1 stdout: stderr: command typeset a=(1 2 3) ^~~~~~~ [ stdin ]:1: fatal: Unexpected array literal dumb_alloc: gNumNew = 1760 gNumDelete = 123 gMemPos = 61440 gNumMalloc = 88 gNumFree = 0 gMemPos2 = 10624 |