Results for builtin-bash.test.sh

statusoshosh_.pyosh_.cc
pass 19115
FAIL 0814
total191919
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL help
detailsdetails
1pass FAIL FAIL bad help topic
detailsdetails
2pass pass pass type -t -> function
3pass pass pass type -t -> alias
4pass pass pass type -t -> builtin
5pass pass FAIL type -t -> keyword
details
6pass pass FAIL type -t control flow
details
7pass FAIL FAIL type -t -> file
detailsdetails
8pass pass FAIL type -t doesn't find non-executable (like command -v)
details
9pass FAIL FAIL type -t -> not found
detailsdetails
10pass FAIL FAIL type -p builtin -> file
detailsdetails
11pass pass FAIL type -p builtin -> not found
details
12pass pass pass type -p builtin -> not a file
13pass FAIL FAIL type -P builtin -> file
detailsdetails
14pass pass FAIL type -P builtin -> not found
details
15pass pass pass type -P builtin -> not a file
16pass FAIL FAIL type -P builtin -> not a file but file found
detailsdetails
17pass pass FAIL type -f builtin -> not found
details
18pass FAIL FAIL type -f builtin -> function and file exists
detailsdetails
35 passed, 0 OK, 0 not implemented, 0 BUG, 22 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 help

[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 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 45
osh_.cc0 help

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py1 bad help topic

[osh_.py stdout] Expected 'help=1\ngrep=0\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 1333, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 45
osh_.cc1 bad help topic

[osh_.cc stdout] Expected 'help=1\ngrep=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.cc5 type -t -> keyword

[osh_.cc stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.cc6 type -t control flow

[osh_.cc stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py7 type -t -> file

[osh_.py stdout] Expected 'file\nfile\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
type: 'find' not found
type: 'xargs' not found
osh_.cc7 type -t -> file

[osh_.cc stdout] Expected 'file\nfile\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.cc8 type -t doesn't find non-executable (like command -v)

[osh_.cc stdout] Expected u'', got "(cmd_value.Argv argv:[touch '/non-executable'] arg_spids:[7 9])\n"
[osh_.cc status] Expected 1, got -6

stdout:
(cmd_value.Argv argv:[touch '/non-executable'] arg_spids:[7 9])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py9 type -t -> not found

[osh_.py stdout] Expected 'builtin\nfile\nstatus=1\n', got 'builtin\nstatus=1\n'

stdout:
builtin
status=1
stderr:
type: 'ZZZ' not found
type: 'find' not found
type: '=' not found
osh_.cc9 type -t -> not found

[osh_.cc stdout] Expected 'builtin\nfile\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py10 type -p builtin -> file

[osh_.py stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
type: 'mv' not found
type: 'tar' not found
type: 'grep' not found
osh_.cc10 type -p builtin -> file

[osh_.cc stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.cc11 type -p builtin -> not found

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py13 type -P builtin -> file

[osh_.py stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
type: 'mv' not found
type: 'tar' not found
type: 'grep' not found
osh_.cc13 type -P builtin -> file

[osh_.cc stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.cc14 type -P builtin -> not found

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py16 type -P builtin -> not a file but file found

[osh_.py stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''

stdout:
stderr: 
osh_.cc16 type -P builtin -> not a file but file found

[osh_.cc stdout] Expected '/bin/mv\n/bin/tar\n/bin/grep\n', got ''

stdout:
stderr: 
osh_.cc17 type -f builtin -> not found

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.py18 type -f builtin -> function and file exists

[osh_.py stdout] Expected '/bin/mv is a file\n/bin/tar is a file\n/bin/grep is a file\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
type: 'mv' not found
type: 'tar' not found
type: 'grep' not found
osh_.cc18 type -f builtin -> function and file exists

[osh_.cc stdout] Expected '/bin/mv is a file\n/bin/tar is a file\n/bin/grep is a file\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.