Results for osh-only.test.sh

statusoshosh_.pyosh_.cc
pass 321
FAIL 123
total444
caseoshosh_.pyosh_.ccdescription
0pass pass pass --debug-file
1pass pass FAIL crash dump
details
2pass FAIL FAIL crash dump with source
detailsdetails
3FAIL FAIL FAIL help osh and oil
detailsdetailsdetails
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc1 crash dump

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

stdout:
status=1
status=1
stderr:
    echo $(( 1 / 0 ))
    ^~~~
[ -c flag ]:4: fatal: Divide by zero
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/json/tool.py", line 40, in <module>
    main()
  File "/usr/lib/python2.7/json/tool.py", line 21, in main
    infile = open(sys.argv[1], 'rb')
IOError: [Errno 2] No such file or directory: '/home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/*.json'
osh_.py2 crash dump with source

[osh_.py stderr] Found 'Traceback (most recent'

stdout:
status=1
OK
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/osh_eval.py", line 66, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/osh_eval.py", line 34, in main
    None)
  File "/home/uke/oil/core/shell_native.py", line 486, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1644, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 711, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/uke/oil/osh/cmd_eval.py", line 550, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/uke/oil/core/executor.py", line 242, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 129, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 31
+ set -o errexit
+ ok=0
+ test -s '/home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
+ python2 -m json.tool '/home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
+ echo 'OK /home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
OK /home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json
+ (( ++ok ))
+ test 1 -ge 1
+ echo OK
osh_.cc2 crash dump with source

[osh_.cc stdout] Expected 'status=1\nOK\n', got 'status=129\nOK\n'

stdout:
status=129
OK
stderr:
terminate called after throwing an instance of 'KeyError*'
+ set -o errexit
+ ok=0
+ test -s '/home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
+ python2 -m json.tool '/home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
+ echo 'OK /home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json'
OK /home/uke/oil/_tmp/spec-tmp/osh-only.test.sh/21186-osh-crash-dump.json
+ (( ++ok ))
+ test 1 -ge 1
+ echo OK
osh3 help osh and oil

[osh stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'osh 1\noil 1\nindex ZZZ 1\n'

stdout:
osh 1
oil 1
index ZZZ 1
stderr:
  help osh > $TMP/osh.txt
       ^~~
[ stdin ]:1: no help topics match 'osh'
  help oil > $TMP/oil.txt
       ^~~
[ stdin ]:3: no help topics match 'oil'
  help index ZZZ > $TMP/index.txt
       ^~~~~
[ stdin ]:6: no help topics match 'index'
osh_.py3 help osh and oil

[osh_.py stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'osh 1\noil 1\nindex ZZZ 1\n'

stdout:
osh 1
oil 1
index ZZZ 1
stderr:
  help osh > $TMP/osh.txt
       ^~~
[ stdin ]:1: no help topics match 'osh'
  help oil > $TMP/oil.txt
       ^~~
[ stdin ]:3: no help topics match 'oil'
  help index ZZZ > $TMP/index.txt
       ^~~~~
[ stdin ]:6: no help topics match 'index'
osh_.cc3 help osh and oil

[osh_.cc stdout] Expected 'osh 0\noil 0\nindex ZZZ 1\n', got 'osh 0\noil 0\nindex ZZZ 0\n'

stdout:
osh 0
oil 0
index ZZZ 0
stderr: