spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 14 | 8 | 1 | |
ok | 1 | 1 | 0 | |
FAIL | 0 | 6 | 14 | |
total | 15 | 15 | 15 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Command block |
1 | pass | FAIL | FAIL | Permission denied |
details | details | |||
2 | pass | pass | FAIL | Not a dir |
details | ||||
3 | pass | pass | FAIL | Name too long |
details | ||||
4 | pass | pass | FAIL | External programs don't have _OVM in environment |
details | ||||
5 | pass | FAIL | FAIL | File with no shebang is executed |
details | details | |||
6 | pass | FAIL | FAIL | File with relative path and no shebang is executed |
details | details | |||
7 | pass | FAIL | FAIL | File in relative subdirectory and no shebang is executed |
details | 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 | FAIL | FAIL | hash without args prints the cache |
details | details | |||
13 | pass | FAIL | FAIL | hash with args |
details | details | |||
14 | ok | ok | FAIL | hash -r doesn't allow additional args |
details | details | details |
23 passed, 2 OK, 0 not implemented, 0 BUG, 20 failed, 0 timeouts, 0 cases skipped
osh_.py | 1 Permission denied [osh_.py status] Expected 126, got 127 stdout: stderr: touch: cannot touch '/text-file': Permission denied $TMP/text-file ^~~~ [ stdin ]:2: '/text-file' not found |
osh_.cc | 1 Permission denied [osh_.cc status] Expected 126, got -6 stdout: stderr: touch: cannot touch '/text-file': Permission denied osh_eval.dbg: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str *): Assertion `0' failed. |
osh_.cc | 2 Not a dir [osh_.cc status] Expected 127, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str *): Assertion `0' failed. |
osh_.cc | 3 Name too long [osh_.cc status] Expected 127, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str *): Assertion `0' failed. |
osh_.cc | 4 External programs don't have _OVM in environment [osh_.cc stdout] Expected 'status=1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 5 File with no shebang is executed [osh_.py stdout] Expected 'hi\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: echo 'echo hi' > $TMP/no-shebang ^ [ stdin ]:1: Can't open '/no-shebang': Permission denied chmod: cannot access '/no-shebang': No such file or directory $SH -c '$TMP/no-shebang' ^~ [ stdin ]:3: '-c' not found |
osh_.cc | 5 File with no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 6 File with relative path and no shebang is executed [osh_.py stdout] Expected 'hi\n', got '' [osh_.py status] Expected 0, got 126 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined "$SH" -c './no-shebang' ^ [ stdin ]:4: Can't execute '/bin/': Permission denied |
osh_.cc | 6 File with relative path and no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 7 File in relative subdirectory and no shebang is executed [osh_.py stdout] Expected 'hi\n', got '' [osh_.py status] Expected 0, got 126 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined "$SH" -c 'test-no-shebang/script' ^ [ stdin ]:5: Can't execute '/bin/': Permission denied |
osh_.cc | 7 File in relative subdirectory and no shebang is executed [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 8 $PATH lookup [osh_.cc stdout] Expected 'one\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
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 -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 10 filling $PATH cache, then deleting command [osh_.cc stdout] Expected 'two\nstatus=0\nstatus=127\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 11 Non-executable on $PATH [osh_.cc stdout] Expected 'two\nstatus=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $TMP ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 12 hash without args prints the cache [osh_.py stdout] Expected '/usr/bin/whoami\nstatus=0\n', got 'status=0\n' stdout: status=0stderr: whoami >/dev/null ^~~~~~ [ stdin ]:1: 'whoami' not found |
osh_.cc | 12 hash without args prints the cache [osh_.cc stdout] Expected '/usr/bin/whoami\nstatus=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 13 hash with args [osh_.py stdout] Expected 'status=0\n/whoami\nstatus=1\n', got 'status=1\nstatus=1\n' stdout: status=1 status=1stderr: hash: 'whoami' not found hash: '_nonexistent_' not found |
osh_.cc | 13 hash with args [osh_.cc stdout] Expected 'status=0\n/whoami\nstatus=1\n', got 'status=1\n' [osh_.cc status] Expected 0, got -6 stdout: status=1stderr: hash: 'whoami' not found osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
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 [osh_.cc stdout] Expected 'status=2\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |