spec test index / oilshell.org
91 passed, 9 OK, 0 not implemented, 0 BUG, 23 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 0 Export sets a global variable [osh_.py stdout] Expected 'X\nX\n', got 'X\n' [osh_.py status] Expected 0, got 127 stdout: Xstderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found |
osh_.cc | 0 Export sets a global variable [osh_.cc stdout] Expected 'X\nX\n', got 'X\n' [osh_.cc status] Expected 0, got 127 stdout: Xstderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found |
osh_.py | 1 Export sets a global variable that persists after export -n [osh_.py stdout] Expected 'X\nX\nX\nNone\n', got 'X\nX\n' [osh_.py status] Expected 0, got 127 stdout: X Xstderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.cc | 1 Export sets a global variable that persists after export -n [osh_.cc stdout] Expected 'X\nX\nX\nNone\n', got 'X\nX\n' [osh_.cc status] Expected 0, got 127 stdout: X Xstderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.py | 4 Export a global variable and unset it [osh_.py stdout] Expected 'X\nX\ng=\nNone\n', got 'X\ng=\n' [osh_.py status] Expected 0, got 127 stdout: X g=stderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.cc | 4 Export a global variable and unset it [osh_.cc stdout] Expected 'X\nX\ng=\nNone\n', got 'X\ng=\n' [osh_.cc status] Expected 0, got 127 stdout: X g=stderr: printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py GLOBAL ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.py | 5 Export existing global variables [osh_.py stdout] Expected 'g1\ng2\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: printenv.py G1 G2 ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found |
osh_.cc | 5 Export existing global variables [osh_.cc stdout] Expected 'g1\ng2\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: printenv.py G1 G2 ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found |
osh_.py | 6 Export existing local variable [osh_.py stdout] Expected 'local1\nNone\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: printenv.py L1 ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py L1 ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.cc | 6 Export existing local variable [osh_.cc stdout] Expected 'local1\nNone\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: printenv.py L1 ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py L1 ^~~~~~~~~~~ [ stdin ]:7: 'printenv.py' not found |
osh_.py | 7 Export a local that shadows a global [osh_.py stdout] Expected 'local1\nNone\nglobal\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: printenv.py V ^~~~~~~~~~~ [ stdin ]:5: 'printenv.py' not found printenv.py V # exported local out of scope; global isn't exported yet ^~~~~~~~~~~ [ stdin ]:8: 'printenv.py' not found printenv.py V # now it's exported ^~~~~~~~~~~ [ stdin ]:10: 'printenv.py' not found |
osh_.cc | 7 Export a local that shadows a global [osh_.cc stdout] Expected 'local1\nNone\nglobal\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: printenv.py V ^~~~~~~~~~~ [ stdin ]:5: 'printenv.py' not found printenv.py V # exported local out of scope; global isn't exported yet ^~~~~~~~~~~ [ stdin ]:8: 'printenv.py' not found printenv.py V # now it's exported ^~~~~~~~~~~ [ stdin ]:10: 'printenv.py' not found |
osh_.py | 8 Export a variable before defining it [osh_.py stdout] Expected 'u\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: printenv.py U ^~~~~~~~~~~ [ stdin ]:3: 'printenv.py' not found |
osh_.cc | 8 Export a variable before defining it [osh_.cc stdout] Expected 'u\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: printenv.py U ^~~~~~~~~~~ [ stdin ]:3: 'printenv.py' not found |
osh_.py | 9 Unset exported variable, then define it again. It's NOT still exported. [osh_.py stdout] Expected 'u\nNone\nnewvalue\nNone\n', got 'newvalue\n' [osh_.py status] Expected 0, got 127 stdout: newvaluestderr: printenv.py U ^~~~~~~~~~~ [ stdin ]:3: 'printenv.py' not found printenv.py U ^~~~~~~~~~~ [ stdin ]:5: 'printenv.py' not found printenv.py U ^~~~~~~~~~~ [ stdin ]:8: 'printenv.py' not found |
osh_.cc | 9 Unset exported variable, then define it again. It's NOT still exported. [osh_.cc stdout] Expected 'u\nNone\nnewvalue\nNone\n', got 'newvalue\n' [osh_.cc status] Expected 0, got 127 stdout: newvaluestderr: printenv.py U ^~~~~~~~~~~ [ stdin ]:3: 'printenv.py' not found printenv.py U ^~~~~~~~~~~ [ stdin ]:5: 'printenv.py' not found printenv.py U ^~~~~~~~~~~ [ stdin ]:8: 'printenv.py' not found |
osh_.py | 10 Exporting a parent func variable (dynamic scope) [osh_.py stdout] Expected 'before inner\nNone\ninner: X\nX\nafter inner\nX\n', got 'before inner\ninner: X\nafter inner\n' [osh_.py status] Expected 0, got 127 stdout: before inner inner: X after innerstderr: printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:9: 'printenv.py' not found printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:12: 'printenv.py' not found |
osh_.cc | 10 Exporting a parent func variable (dynamic scope) [osh_.cc stdout] Expected 'before inner\nNone\ninner: X\nX\nafter inner\nX\n', got 'before inner\ninner: X\nafter inner\n' [osh_.cc status] Expected 0, got 127 stdout: before inner inner: X after innerstderr: printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:9: 'printenv.py' not found printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:4: 'printenv.py' not found printenv.py outer_var ^~~~~~~~~~~ [ stdin ]:12: 'printenv.py' not found |
osh_.py | 11 Dependent export setting [osh_.py stdout] Expected 'v=None\n', got 'v=\n' stdout: v=stderr: export FOO=foo v=$(printenv.py FOO) ^~~~~~~~~~~ [ stdin ]:1: 'printenv.py' not found |
osh_.cc | 11 Dependent export setting [osh_.cc stdout] Expected 'v=None\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. |
osh | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh_.py | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh_.cc | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh | 38 local after readonly [osh stdout] Expected u'', got 'y=0\ny=\n' [osh status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.py | 38 local after readonly [osh_.py stdout] Expected u'', got 'y=0\ny=\n' [osh_.py status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.cc | 38 local after readonly [osh_.cc stdout] Expected u'', got 'y=0\ny=\n' [osh_.cc status] Expected 1, got 0 stdout: y=0 y=stderr: |