Results for osh-only.test.sh

statusoshosh_.pyosh_.cc
pass 400
FAIL 044
total444
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL --debug-file
detailsdetails
1pass FAIL FAIL crash dump
detailsdetails
2pass FAIL FAIL crash dump with source
detailsdetails
3pass FAIL FAIL help index
detailsdetails
4 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 --debug-file

[osh_.py stdout] Expected 'yes\n', got "(cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9])\n(cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19])\nyes\n"

stdout:
(cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9])
(cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19])
yes
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc0 --debug-file

[osh_.cc stdout] Expected 'yes\n', got "(cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9])\n(cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19])\nyes\n"

stdout:
(cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9])
(cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19])
yes
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py1 crash dump

[osh_.py stdout] Expected 'status=1\nstatus=0\n', got '(cmd_value.Argv argv:[rm -f \'/*.json\'] arg_spids:[0 2 4])\n(cmd_value.Argv\n argv: [\n -c\n\'\\ng() {\\n local glocal="glocal"\\n echo $(( 1 / 0 ))\\n}\\nf() {\\n local flocal="flocal"\\n shift\\n FOO=bar g\\n}\\nreadonly array=(A B C)\\nf "${array[@]}"\\n\'\n dummy\n a\n b\n c\n ]\n arg_spids: [14 16 31 33 35 37]\n)\nstatus=0\n(cmd_value.Argv argv:[python2 -m json.tool \'/*.json\'] arg_spids:[44 46 48 50])\nstatus=0\n'

stdout:
(cmd_value.Argv argv:[rm -f '/*.json'] arg_spids:[0 2 4])
(cmd_value.Argv
  argv: [
    -c
'\ng() {\n  local glocal="glocal"\n  echo $(( 1 / 0 ))\n}\nf() {\n  local flocal="flocal"\n  shift\n  FOO=bar g\n}\nreadonly array=(A B C)\nf "${array[@]}"\n'
    dummy
    a
    b
    c
  ]
  arg_spids: [14 16 31 33 35 37]
)
status=0
(cmd_value.Argv argv:[python2 -m json.tool '/*.json'] arg_spids:[44 46 48 50])
status=0
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc1 crash dump

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

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:37: List<Str *> *libc::glob(Str *): Assertion `0' failed.
osh_.py2 crash dump with source

[osh_.py stdout] Expected 'status=1\nOK\n', got "(cmd_value.Argv argv:[-c '\\nset -o errexit\\nsource spec/testdata/crash.sh\\n'] arg_spids:[5 7])\nstatus=0\n"
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
(cmd_value.Argv argv:[-c '\nset -o errexit\nsource spec/testdata/crash.sh\n'] arg_spids:[5 7])
status=0
stderr:
Unhandled SimpleCommand
+ set -o errexit
+ (lvalue.Named name:ok spids:[32]) = (value.Str s:0)
+ test -s '/*.json'
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1062, in _Dispatch
    status = self._Execute(node.body)  # last one wins
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1149, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1357, in _ExecuteList
    status = self._Execute(child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1211, in _Dispatch
    status = self._ExecuteList(if_arm.cond)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1357, in _ExecuteList
    status = self._Execute(child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 597, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 16
osh_.cc2 crash dump with source

[osh_.cc stdout] Expected 'status=1\nOK\n', got "(cmd_value.Argv argv:[-c '\\nset -o errexit\\nsource spec/testdata/crash.sh\\n'] arg_spids:[5 7])\nstatus=0\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[-c '\nset -o errexit\nsource spec/testdata/crash.sh\n'] arg_spids:[5 7])
status=0
stderr:
Unhandled SimpleCommand
osh_eval.dbg: mycpp/mylib.h:578: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.py3 help index

[osh_.py stdout] Expected 'index 0\nindex groups 0\nindex ZZZ 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 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1326, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 43
osh_.cc3 help index

[osh_.cc stdout] Expected 'index 0\nindex groups 0\nindex ZZZ 1\n', got ''
[osh_.cc status] Expected 0, got -6

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