spec test index / oilshell.org
status | osh | |
FAIL | 16 | |
total | 16 | |
case | osh | description |
0 | FAIL | cd accepts a block, runs it in different dir |
details | ||
1 | FAIL | cd with block: requires explicit command |
details | ||
2 | FAIL | cd passed block with return 1 |
details | ||
3 | FAIL | cd passed a block defined in a different scope |
details | ||
4 | FAIL | io->eval() and io.captureStdout() passed a block in different scope |
details | ||
5 | FAIL | block doesn't have its own scope |
details | ||
6 | FAIL | redirects allowed in words, typed args, and after block |
details | ||
7 | FAIL | block literal in expression mode: ^(echo $PWD) |
details | ||
8 | FAIL | block arg as typed expression |
details | ||
9 | FAIL | Pass invalid typed args |
details | ||
10 | FAIL | Pass too many typed args |
details | ||
11 | FAIL | 'builtin' and 'command' with block |
details | ||
12 | FAIL | Consistency: Exit Status and Blocks |
details | ||
13 | FAIL | Consistency: Unwanted Blocks Are Errors |
details | ||
14 | FAIL | Block with Bare Assignments |
details | ||
15 | FAIL | Proc that doesn't take a block |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped 16 failed under osh
osh | 0 cd accepts a block, runs it in different dir [osh stdout] Expected '/\nOLDPWD=\ndone\nPWD=/tmp\npwd builtin: /tmp\n' Got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 1 cd with block: requires explicit command [osh stdout] Expected '/tmp\n', got '' [osh status] Expected 2, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 2 cd passed block with return 1 [osh stdout] Expected 'block\n', got '' [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 3 cd passed a block defined in a different scope [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 4 io->eval() and io.captureStdout() passed a block in different scope [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 5 block doesn't have its own scope [osh stdout] Expected 'x=1\nx=42\nx=42\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 6 redirects allowed in words, typed args, and after block [osh stdout] Expected '1 /tmp\n2 /tmp\n3 /tmp\n4 /tmp\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 7 block literal in expression mode: ^(echo $PWD) [osh stdout] Expected '1\none\ntwo\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 8 block arg as typed expression [osh stdout] Expected '/tmp\n/tmp\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 9 Pass invalid typed args [osh status] Expected 3, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 10 Pass too many typed args [osh status] Expected 3, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 11 'builtin' and 'command' with block [osh stdout] Expected 'builtin /\ncommand /\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 12 Consistency: Exit Status and Blocks [osh stdout] Expected 'cd=0\nshopt=0\n FOO=foo\nshvar=0\ntry=0\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 13 Consistency: Unwanted Blocks Are Errors [osh stdout] Expected 'true 2\nfalse 2\necho block 2\necho args 2\ncommand echo 2\nbuiltin echo 2\npushd 2\n' Got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 14 Block with Bare Assignments [osh stdout] Expected 'rule foo-python\nrule foo-cc\nrule bar-python\nrule bar-cc\n' Got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
osh | 15 Proc that doesn't take a block [osh stdout] Expected 'task name=spam\nno block\nstatus=44\n\ntask name=foo\nrunning\nblock\nstatus=33\n' Got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |