Results for builtins2.test.sh

statusoshosh_.pyosh_.cc
pass 1285
FAIL 158
total131313
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL command -v
details
1pass pass FAIL command -v with multiple names
details
2pass FAIL FAIL command -v doesn't find non-executable file
detailsdetails
3pass FAIL FAIL command skips function lookup
detailsdetails
4pass pass FAIL command command seq 3
details
5pass pass pass command command -v seq
6pass FAIL FAIL history usage
detailsdetails
7FAIL FAIL FAIL history -d to delete history item
detailsdetailsdetails
8pass FAIL pass $(command type ls)
details
9pass pass FAIL builtin
details
10pass pass pass builtin ls not found
11pass pass pass builtin no args
12pass pass pass builtin command echo hi
25 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc0 command -v

[osh_.cc stdout] Expected 'echo\n0\nmyfunc\n0\n1\nfor\n0\n', got 'echo\n0\nmyfunc\n0\n'
[osh_.cc status] Expected 0, got -6

stdout:
echo
0
myfunc
0
stderr:
osh_eval.dbg: _build/cpp/consts.cc:621: bool consts::IsControlFlow(Str *): Assertion `0' failed.
osh_.cc1 command -v with multiple names

[osh_.cc stdout] Expected 'echo\nmyfunc\nfor\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_.py2 command -v doesn't find non-executable file

[osh_.py stdout] Expected 'status=1\n/executable\nstatus=0\n', got 'status=0\nstatus=0\n'

stdout:
status=0
status=0
stderr:
touch: cannot touch '/non-executable': Permission denied
touch: cannot touch '/executable': Permission denied
chmod: cannot access '/executable': No such file or directory
osh_.cc2 command -v doesn't find non-executable file

[osh_.cc stdout] Expected 'status=1\n/executable\nstatus=0\n', got "(cmd_value.Argv argv:[touch '/non-executable' '/executable'] arg_spids:[7 9 12])\n(cmd_value.Argv argv:[chmod '+x' '/executable'] arg_spids:[15 17 20])\nstatus=0\nstatus=0\n"

stdout:
(cmd_value.Argv argv:[touch '/non-executable' '/executable'] arg_spids:[7 9 12])
(cmd_value.Argv argv:[chmod '+x' '/executable'] arg_spids:[15 17 20])
status=0
status=0
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py3 command skips function lookup

[osh_.py stdout] Expected '3\n1\n2\n3\n1\n2\n3\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 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 354, in RunBuiltin
    status = builtin_func.Run(cmd_val)
  File "/home/andy/git/oilshell/oil/osh/builtin_meta.py", line 168, in Run
    return self.shell_ex.RunSimpleCommand(cmd_val, True, call_procs=False)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 366, in RunSimpleCommand
    arg0 = argv[0]
IndexError: list index out of range
osh_.cc3 command skips function lookup

[osh_.cc stdout] Expected '3\n1\n2\n3\n1\n2\n3\n', got '3\n3\n'

stdout:
3
3
stderr:
osh_.cc4 command command seq 3

[osh_.cc stdout] Expected '1\n2\n3\n', got '(cmd_value.Argv argv:[seq 3] arg_spids:[4 6])\n'

stdout:
(cmd_value.Argv argv:[seq 3] arg_spids:[4 6])
stderr:
Unhandled SimpleCommand
osh_.py6 history usage

[osh_.py stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\nstatus=2\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 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: 46
osh_.cc6 history usage

[osh_.cc stdout] Expected 'status=0\nstatus=0\nstatus=2\nstatus=2\nstatus=2\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.
osh7 history -d to delete history item

[osh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
  history -d 1
  ^~~~~~~
[ stdin ]:2: 'history' couldn't find item 1
  history -d -1
             ^~
[ stdin ]:4: 'history' got invalid integer for -d: -1
  history -d -2
             ^~
[ stdin ]:6: 'history' got invalid integer for -d: -2
osh_.py7 history -d to delete history item

[osh_.py stdout] Expected 'status=0\nstatus=1\nstatus=1\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 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: 46
osh_.cc7 history -d to delete history item

[osh_.cc stdout] Expected 'status=0\nstatus=1\nstatus=1\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_.py8 $(command type ls)

[osh_.py stdout] Expected 'FUNCTION\nstatus=0\n', got 'FUNCTION\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
FUNCTION
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_.cc9 builtin

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

stdout:
hi
stderr:
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.