spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 14 | 4 | 0 | |
FAIL | 0 | 10 | 14 | |
total | 14 | 14 | 14 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | FAIL | pushd/popd |
details | ||||
1 | pass | FAIL | FAIL | popd usage error |
details | details | |||
2 | pass | FAIL | FAIL | popd returns error on empty directory stack |
details | details | |||
3 | pass | pass | FAIL | dirs builtin |
details | ||||
4 | pass | FAIL | FAIL | dirs -c to clear the stack |
details | details | |||
5 | pass | FAIL | FAIL | dirs -v to print numbered stack, one entry per line |
details | details | |||
6 | pass | FAIL | FAIL | dirs -p to print one entry per line |
details | details | |||
7 | pass | FAIL | FAIL | dirs -l to print in long format, no tilde prefix |
details | details | |||
8 | pass | FAIL | FAIL | dirs to print using tilde-prefix format |
details | details | |||
9 | pass | FAIL | FAIL | dirs test converting true home directory to tilde |
details | details | |||
10 | pass | pass | FAIL | dirs don't convert to tilde when $HOME is substring |
details | ||||
11 | pass | pass | FAIL | dirs tilde test when $HOME is exactly $PWD |
details | ||||
12 | pass | FAIL | FAIL | dirs test of path alias `..` |
details | details | |||
13 | pass | FAIL | FAIL | dirs test of path alias `.` |
details | details |
18 passed, 0 OK, 0 not implemented, 0 BUG, 24 failed, 0 timeouts, 0 cases skipped
osh_.cc | 0 pushd/popd [osh_.cc stdout] Expected '/tmp /\npwd=/tmp\n/\npwd=/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 1 popd usage error [osh_.py stdout] Expected 'status=2\n', got '/ /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh\nstatus=2\n' stdout: / /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh status=2stderr: |
osh_.cc | 1 popd usage error [osh_.cc stdout] Expected 'status=2\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:14: Str *os_path::abspath(Str *): Assertion `0' failed. |
osh_.py | 2 popd returns error on empty directory stack [osh_.py stdout] Expected '1\ndirectory stack\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 2 popd returns error on empty directory stack [osh_.cc stdout] Expected '1\ndirectory stack\n', got '0\n' stdout: 0stderr: |
osh_.cc | 3 dirs builtin [osh_.cc stdout] Expected '/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 4 dirs -c to clear the stack [osh_.py stdout] Expected '--\n/tmp /\n--\n/tmp\n', got '/tmp /\n--\n/tmp /\n--\n/tmp\n' stdout: /tmp / -- /tmp / -- /tmpstderr: |
osh_.cc | 4 dirs -c to clear the stack [osh_.cc stdout] Expected '--\n/tmp /\n--\n/tmp\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 5 dirs -v to print numbered stack, one entry per line [osh_.py stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got '/tmp /\n--\n 0 /tmp\n 1 /\n/dev /tmp /\n--\n 0 /dev\n 1 /tmp\n 2 /\n' stdout: /tmp / -- 0 /tmp 1 / /dev /tmp / -- 0 /dev 1 /tmp 2 /stderr: |
osh_.cc | 5 dirs -v to print numbered stack, one entry per line [osh_.cc stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 6 dirs -p to print one entry per line [osh_.py stdout] Expected '--\n/tmp\n/\n--\n/dev\n/tmp\n/\n', got '/tmp /\n--\n/tmp\n/\n/dev /tmp /\n--\n/dev\n/tmp\n/\n' stdout: /tmp / -- /tmp / /dev /tmp / -- /dev /tmp /stderr: |
osh_.cc | 6 dirs -p to print one entry per line [osh_.cc stdout] Expected '--\n/tmp\n/\n--\n/dev\n/tmp\n/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 7 dirs -l to print in long format, no tilde prefix [osh_.py stdout] Expected '~/oil_test /\n/tmp/oil_test /\n', got '~/oil_test /\n~/oil_test /\n/tmp/oil_test /\n' stdout: ~/oil_test / ~/oil_test / /tmp/oil_test /stderr: |
osh_.cc | 7 dirs -l to print in long format, no tilde prefix [osh_.cc stdout] Expected '~/oil_test /\n/tmp/oil_test /\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 8 dirs to print using tilde-prefix format [osh_.py stdout] Expected '~/oil_test /\n', got '~/oil_test /\n~/oil_test /\n' stdout: ~/oil_test / ~/oil_test /stderr: |
osh_.cc | 8 dirs to print using tilde-prefix format [osh_.cc stdout] Expected '~/oil_test /\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 9 dirs test converting true home directory to tilde [osh_.py stdout] Expected '~/oil_test/tmp /\n', got '~/oil_test/tmp /\n~/oil_test/tmp /\n' stdout: ~/oil_test/tmp / ~/oil_test/tmp /stderr: |
osh_.cc | 9 dirs test converting true home directory to tilde [osh_.cc stdout] Expected '~/oil_test/tmp /\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 10 dirs don't convert to tilde when $HOME is substring [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 11 dirs tilde test when $HOME is exactly $PWD [osh_.cc stdout] Expected '~ /\n~ /\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 12 dirs test of path alias `..` [osh_.py stdout] Expected '/ /tmp\n', got '/ /tmp\n/ /tmp\n' stdout: / /tmp / /tmpstderr: |
osh_.cc | 12 dirs test of path alias `..` [osh_.cc stdout] Expected '/ /tmp\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 13 dirs test of path alias `.` [osh_.py stdout] Expected '/tmp /tmp\n', got '/tmp /tmp\n/tmp /tmp\n' stdout: /tmp /tmp /tmp /tmpstderr: |
osh_.cc | 13 dirs test of path alias `.` [osh_.cc stdout] Expected '/tmp /tmp\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |