spec test index / oilshell.org
status | dash | bash | mksh | osh | |
pass | 24 | 26 | 24 | 27 | |
ok | 3 | 2 | 3 | 1 | |
BUG | 2 | 1 | 2 | 0 | |
FAIL | 0 | 0 | 0 | 1 | |
total | 29 | 29 | 29 | 29 | |
case | dash | bash | mksh | osh | description |
0 | pass | pass | pass | pass | exec builtin |
1 | pass | pass | pass | pass | exec builtin with redirects |
2 | pass | pass | pass | pass | exec builtin with here doc |
3 | pass | pass | pass | pass | cd and $PWD |
4 | pass | pass | BUG | pass | $OLDPWD |
details | |||||
5 | pass | pass | pass | pass | pwd |
6 | pass | pass | pass | pass | pwd after cd .. |
7 | pass | pass | pass | pass | pwd -P |
8 | pass | pass | pass | pass | set PWD to something different, invoke pwd |
9 | pass | pass | pass | pass | unset PWD; then pwd |
10 | pass | pass | ok | ok | remove pwd dir |
details | details | ||||
11 | pass | pass | pass | pass | Test the current directory after 'cd ..' involving symlinks |
12 | pass | pass | pass | pass | cd with no arguments |
13 | ok | pass | ok | pass | cd to nonexistent dir |
details | details | ||||
14 | pass | pass | pass | pass | cd away from dir that was deleted |
15 | pass | pass | pass | pass | cd permits double bare dash |
16 | pass | pass | pass | pass | cd to symlink with -L and -P |
17 | pass | pass | pass | pass | cd to relative path with -L and -P |
18 | pass | pass | pass | pass | Exit out of function |
19 | ok | ok | pass | pass | Exit builtin with invalid arg |
details | details | ||||
20 | BUG | BUG | ok | pass | Exit builtin with too many args |
details | details | details | |||
21 | BUG | pass | pass | pass | time block |
details | |||||
22 | pass | pass | pass | pass | time pipeline |
23 | pass | pass | pass | pass | shift |
24 | ok | pass | pass | pass | Shifting too far |
details | |||||
25 | pass | ok | BUG | pass | Invalid shift argument |
details | details | ||||
26 | pass | pass | pass | pass | get umask |
27 | pass | pass | pass | pass | set umask in octal |
28 | pass | pass | pass | FAIL | set umask symbolically |
details |
101 passed, 9 OK, 0 not implemented, 5 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
mksh | 4 $OLDPWD stdout: old: / /stderr: |
mksh | 10 remove pwd dir stdout: /tmp/oil-spec-test/pwd status=0 status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[7]: pwd: can't determine current directory: No such file or directory |
osh | 10 remove pwd dir stdout: /tmp/oil-spec-test/pwd status=0 status=1stderr: pwd ^~~ [ stdin ]:7: Can't determine working directory: No such file or directory |
dash | 13 cd to nonexistent dir stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: cd: can't cd to /nonexistent/dir |
mksh | 13 cd to nonexistent dir stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: cd: /nonexistent/dir: No such file or directory |
dash | 19 Exit builtin with invalid arg stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: exit: Illegal number: invalid |
bash | 19 Exit builtin with invalid arg stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: exit: invalid: numeric argument required |
dash | 20 Exit builtin with too many args stdout: stderr: |
bash | 20 Exit builtin with too many args stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: exit: too many arguments |
mksh | 20 Exit builtin with too many args stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: exit: too many arguments |
dash | 21 time block stdout: stderr: time: cannot run {: No such file or directory Command exited with non-zero status 127 0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1164maxresident)k 0inputs+0outputs (0major+27minor)pagefaults 0swaps /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 7: Syntax error: "}" unexpected |
dash | 24 Shifting too far stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shift: can't shift that many |
bash | 25 Invalid shift argument stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shift: ZZZ: numeric argument required |
mksh | 25 Invalid shift argument stdout: stderr: |
osh | 28 set umask symbolically [osh stdout] Expected '664\n644\n', got '664\n664\n' [osh stderr] Expected u'', got "osh warning: umask with symbolic input isn't implemented\n" stdout: 664 664stderr: osh warning: umask with symbolic input isn't implemented |