spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 3 | 3 | |
FAIL | 6 | 6 | |
total | 9 | 9 | |
case | osh | osh-cpp | description |
0 | pass | pass | Can read from ENV Dict |
1 | FAIL | FAIL | YSH doesn't have exported vars (declare -x) |
details | details | ||
2 | FAIL | FAIL | Temp bindings A=a B=b my-command push to ENV dict |
details | details | ||
3 | FAIL | FAIL | setglobal ENV.PYTHONPATH = 'foo' changes child process state |
details | details | ||
4 | FAIL | FAIL | export builtin still works |
details | details | ||
5 | FAIL | FAIL | PS4 environment variable is respected |
details | details | ||
6 | pass | pass | ENV works in different modules |
7 | FAIL | FAIL | HOME var |
details | details | ||
8 | pass | pass | exec builtin respects ENV |
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 6 failed under osh
osh | 1 YSH doesn't have exported vars (declare -x) [osh stdout] Expected 'OSH ok\nsh=null\n', got 'OSH ok\nsh=/home/uke/oil/bin/osh\n' stdout: OSH ok sh=/home/uke/oil/bin/oshstderr: |
osh-cpp | 1 YSH doesn't have exported vars (declare -x) [osh-cpp stdout] Expected 'OSH ok\nsh=null\n', got 'OSH ok\nsh=/home/uke/oil/_bin/cxx-asan/osh\n' stdout: OSH ok sh=/home/uke/oil/_bin/cxx-asan/oshstderr: |
osh | 2 Temp bindings A=a B=b my-command push to ENV dict [osh stdout] Expected '_A=a\n_B=b\n', got '' [osh status] Expected 0, got 1 stdout: stderr: _A=a _B=b env | grep '^_' | sort ^~~~ [ stdin ]:3: errexit PID 29698: command.Pipeline failed with status 1 |
osh-cpp | 2 Temp bindings A=a B=b my-command push to ENV dict [osh-cpp stdout] Expected '_A=a\n_B=b\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: _A=a _B=b env | grep '^_' | sort ^~~~ [ stdin ]:3: errexit PID 29715: command.Pipeline failed with status 1 |
osh | 3 setglobal ENV.PYTHONPATH = 'foo' changes child process state [osh stdout] Expected '', got '(Dict) {"TMP":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh","REPO_ROOT":"/home/uke/oil","PYTHONPATH":"foo","PWD":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh","SH":"/home/uke/oil/bin/osh","LC_ALL":"C.UTF-8","PATH":"/home/uke/oil/test/../spec/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LOCALE_ARCHIVE":"","OILS_GC_ON_EXIT":"1"}\npythonpath=foo\n' stdout: (Dict) {"TMP":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh","REPO_ROOT":"/home/uke/oil","PYTHONPATH":"foo","PWD":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh","SH":"/home/uke/oil/bin/osh","LC_ALL":"C.UTF-8","PATH":"/home/uke/oil/test/../spec/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LOCALE_ARCHIVE":"","OILS_GC_ON_EXIT":"1"} pythonpath=foostderr: |
osh-cpp | 3 setglobal ENV.PYTHONPATH = 'foo' changes child process state [osh-cpp stdout] Expected '', got '(Dict) {"TMP":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh-cpp","REPO_ROOT":"/home/uke/oil/test/..","SH":"/home/uke/oil/_bin/cxx-asan/osh","LC_ALL":"C.UTF-8","PATH":"/home/uke/oil/test/../spec/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LOCALE_ARCHIVE":"","OILS_GC_ON_EXIT":"1","LINES":"24","COLUMNS":"80","PYTHONPATH":"foo"}\npythonpath=foo\n' stdout: (Dict) {"TMP":"/home/uke/oil/_tmp/spec-tmp/ysh-env.test.sh.29603/03-osh-cpp","REPO_ROOT":"/home/uke/oil/test/..","SH":"/home/uke/oil/_bin/cxx-asan/osh","LC_ALL":"C.UTF-8","PATH":"/home/uke/oil/test/../spec/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LOCALE_ARCHIVE":"","OILS_GC_ON_EXIT":"1","LINES":"24","COLUMNS":"80","PYTHONPATH":"foo"} pythonpath=foostderr: |
osh | 4 export builtin still works [osh stdout] Expected 'pythonpath=foo\n', got 'pythonpath=/home/uke/oil:/home/uke/oil/vendor\n' stdout: pythonpath=/home/uke/oil:/home/uke/oil/vendorstderr: |
osh-cpp | 4 export builtin still works [osh-cpp stdout] Expected 'pythonpath=foo\n', got 'pythonpath=\n' stdout: pythonpath=stderr: |
osh | 5 PS4 environment variable is respected [osh stdout] Expected 'TODO\n', got '1\n2\n' stdout: 1 2stderr: %%% echo 1 %%% echo 2 |
osh-cpp | 5 PS4 environment variable is respected [osh-cpp stdout] Expected 'TODO\n', got '1\n2\n' stdout: 1 2stderr: %%% echo 1 %%% echo 2 |
osh | 7 HOME var [osh stdout] Expected '', got '/home/uke\n' [osh status] Expected 0, got 3 stdout: /home/ukestderr: echo $[ENV.HOME] ^ [ stdin ]:6: fatal: Dict entry 'HOME' not found |
osh-cpp | 7 HOME var [osh-cpp stdout] Expected '', got '/home/uke\n' [osh-cpp status] Expected 0, got 3 stdout: /home/ukestderr: echo $[ENV.HOME] ^ [ stdin ]:6: fatal: Dict entry 'HOME' not found |