spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 14 | 14 | 6 | |
ok | 1 | 1 | 1 | |
FAIL | 0 | 0 | 8 | |
total | 15 | 15 | 15 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Command block |
1 | pass | pass | FAIL | Permission denied |
details | ||||
2 | pass | pass | pass | Not a dir |
3 | pass | pass | pass | Name too long |
4 | pass | pass | pass | External programs don't have _OVM in environment |
5 | pass | pass | FAIL | File with no shebang is executed |
details | ||||
6 | pass | pass | FAIL | File with relative path and no shebang is executed |
details | ||||
7 | pass | pass | FAIL | File in relative subdirectory and no shebang is executed |
details | ||||
8 | pass | pass | FAIL | $PATH lookup |
details | ||||
9 | pass | pass | FAIL | filling $PATH cache, then insert the same command earlier in cache |
details | ||||
10 | pass | pass | FAIL | filling $PATH cache, then deleting command |
details | ||||
11 | pass | pass | FAIL | Non-executable on $PATH |
details | ||||
12 | pass | pass | pass | hash without args prints the cache |
13 | pass | pass | pass | hash with args |
14 | ok | ok | ok | hash -r doesn't allow additional args |
details | details | details |
34 passed, 3 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 Permission denied [osh_.cc status] Expected 126, got 255 stdout: stderr: |
osh_.cc | 5 File with no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: $TMP/no-shebang ^~~~ [ -c flag ]:1: '/no-shebang' not found |
osh_.cc | 6 File with relative path and no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' stdout: stderr: |
osh_.cc | 7 File in relative subdirectory and no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' stdout: stderr: |
osh_.cc | 8 $PATH lookup [osh_.cc stdout] Expected 'one\n', got '' [osh_.cc status] Expected 0, got 255 stdout: stderr: |
osh_.cc | 9 filling $PATH cache, then insert the same command earlier in cache [osh_.cc stdout] Expected 'two\ntwo\none\n', got '' [osh_.cc status] Expected 0, got 255 stdout: stderr: |
osh_.cc | 10 filling $PATH cache, then deleting command [osh_.cc stdout] Expected 'two\nstatus=0\nstatus=127\n', got 'status=-1\nstatus=-1\nstatus=0\nstatus=0\nstatus=-1\nstatus=0\n' stdout: status=-1 status=-1 status=0 status=0 status=-1 status=0stderr: rm: cannot remove 'two/mycmd': No such file or directory |
osh_.cc | 11 Non-executable on $PATH [osh_.cc stdout] Expected 'two\nstatus=0\n', got 'status=-1\nstatus=0\n' stdout: status=-1 status=0stderr: |
osh | 14 hash -r doesn't allow additional args stdout: status=2stderr: hash -r whoami >/dev/null # avoid weird output with mksh ^~~~ [ stdin ]:1: 'hash' got extra arguments after -r |
osh_.py | 14 hash -r doesn't allow additional args stdout: status=2stderr: hash -r whoami >/dev/null # avoid weird output with mksh ^~~~ [ stdin ]:1: 'hash' got extra arguments after -r |
osh_.cc | 14 hash -r doesn't allow additional args stdout: status=2stderr: hash -r whoami >/dev/null # avoid weird output with mksh ^~~~ [ stdin ]:1: 'hash' got extra arguments after -r |