spec test index / oilshell.org
status | osh | |
FAIL | 20 | |
total | 20 | |
case | osh | description |
0 | FAIL | Customize PS4 |
details | ||
1 | FAIL | xtrace_details doesn't show [[ ]] etc. |
details | ||
2 | FAIL | xtrace_details AND xtrace_rich on |
details | ||
3 | FAIL | proc and shell function |
details | ||
4 | FAIL | eval |
details | ||
5 | FAIL | source |
details | ||
6 | FAIL | external and builtin |
details | ||
7 | FAIL | subshell |
details | ||
8 | FAIL | command sub |
details | ||
9 | FAIL | process sub (nondeterministic) |
details | ||
10 | FAIL | pipeline (nondeterministic) |
details | ||
11 | FAIL | singleton pipeline |
details | ||
12 | FAIL | Background pipeline (separate code path) |
details | ||
13 | FAIL | Background process with fork and & (nondeterministic) |
details | ||
14 | FAIL | Here doc |
details | ||
15 | FAIL | Two here docs |
details | ||
16 | FAIL | Here doc greater than 4096 bytes |
details | ||
17 | FAIL | Control Flow |
details | ||
18 | FAIL | use builtin and invokable module |
details | ||
19 | FAIL | Encoded argv uses shell encoding, not J8 |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 20 failed, 0 timeouts, 0 cases skipped 20 failed under osh
osh | 0 Customize PS4 [osh stdout] Expected '1\n2\n3\n', got '' [osh stderr] Expected '5 . builtin echo 1\n5 . builtin echo 2\n6 . builtin echo 3\n' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 xtrace_details doesn't show [[ ]] etc. [osh stderr] Expected '. builtin cd /\n', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 2 xtrace_details AND xtrace_rich on [osh stderr] Expected "| command 12345: env 'false'\n; process 12345: status 1\n. builtin set '+x'\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 3 proc and shell function [osh stderr] Expected "> proc shfunc 1\n . builtin ':' 1\n< proc shfunc\n> proc p 2\n . builtin ':' 2\n< proc p\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 eval [osh stdout] Expected '1\n2\n', got '' [osh stderr] Expected '> eval\n . builtin echo 1\n . builtin echo 2\n< eval\n' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 source [osh stdout] Expected '$1 = a\n$1 = x\n', got '' [osh stderr] Expected "> source lib.sh a b c\n . builtin echo '$1 = a'\n< source lib.sh\n> source lib.sh x $'\\xfe' $'\\xff'\n . builtin echo '$1 = x'\n< source lib.sh\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 external and builtin [osh stderr] Expected "| command 12345: env 'false'\n; process 12345: status 1\n. builtin 'true'\n. builtin set '+x'\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 subshell [osh stderr] Expected " . 12345 builtin ':' p\n + 12345 exit 3\n . 12345 builtin ':' 1\n < 12345 proc p\n > 12345 proc p\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 3\n| forkwait 12345\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 command sub [osh stdout] Expected 'foo=bar\n', got '' [osh stderr] Expected " . 12345 builtin echo bar\n. builtin echo 'foo=bar'\n. builtin set '+x'\n; process 12345: status 0\n| command sub 12345\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 process sub (nondeterministic) [osh stdout] Expected '1\n2\n1\n', got '' [osh stderr] Expected " . 12345 builtin echo 1\n . 12345 exec seq 2\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: cat /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 10 pipeline (nondeterministic) [osh stdout] Expected '2\n', got '' [osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec sort\n < 12345 proc myfunc\n > 12345 proc myfunc\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 11 singleton pipeline [osh stderr] Expected ". builtin ':' begin\n. builtin 'false'\n. builtin ':' end\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 Background pipeline (separate code path) [osh stdout] Expected 'status=0\n', got '' [osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec grep ZZZ\n . 12345 exec sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n[%1] PGID 12345 Done\n| part 12345\n| part 12345\n| part 12345\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 Background process with fork and & (nondeterministic) [osh stderr] Expected " . 12345 exec sleep 0.1\n . 12345 exec sleep 0.1\n ; process 12345: status 0\n ; process 12345: status 0\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'ysh:upgrade'\n< wait\n< wait\n> wait\n> wait\n[%1] PID 12345 Done\n[%1] PID 12345 Done\n| fork 12345\n| fork 12345\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 Here doc [osh stdout] Expected '2\n3\n', got '' [osh stderr] Expected ". builtin ':' begin\n| command 12345: tac\n; process 12345: status 0\n. builtin set '+x'\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 Two here docs [osh stdout] Expected 'xx\nyy\nzz\n', got '' [osh stderr] Expected "| command 12345: cat - /dev/fd/3\n; process 12345: status 0\n. builtin set '+x'\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 16 Here doc greater than 4096 bytes [osh stdout] Expected '2002 big-here.sh\n2000\n', got '' [osh stderr] Expected '| here doc 12345\n| command 12345: wc -l\n; process 12345: status 0\n; process 12345: status 0\n' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 17 Control Flow [osh stdout] Expected '1\n2\na y\na z\nb y\nb z\n', got '' [osh stderr] Expected '. builtin echo 1\n. builtin echo 2\n+ break 1\n. builtin echo a y\n+ continue 1\n. builtin echo a z\n. builtin echo b y\n+ continue 1\n. builtin echo b z\n> proc zero\n + return 0\n< proc zero\n' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 18 use builtin and invokable module [osh stdout] Expected '[for-xtrace]\ncounter = 5\n\n[for-xtrace]\ncounter = 5\ncounter = 6\n' Got '' [osh stderr] Expected "> source for-xtrace.ysh\n . builtin echo '[for-xtrace]'\n > proc increment\n . builtin echo 'counter = 5'\n < proc increment\n< source for-xtrace.ysh\n. builtin echo\n> use for-xtrace.ysh\n . builtin echo '[for-xtrace]'\n > proc increment\n . builtin echo 'counter = 5'\n < proc increment\n< use for-xtrace.ysh\n> module-invoke for-xtrace increment foo bar\n . builtin echo 'counter = 6'\n< module-invoke for-xtrace\n" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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 | 19 Encoded argv uses shell encoding, not J8 [osh stdout] Expected 'one two\n \xce\xbc\n', got '' [osh stderr] Expected ". builtin echo $'one two\\n' '\xce\xbc'\n", got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [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_ |