Results for osh-only.test.sh

statusoshosh-cpp
pass 40
FAIL 04
total44
caseoshosh-cppdescription
0pass FAIL --debug-file
details
1pass FAIL crash dump
details
2pass FAIL crash dump with source
details
3pass FAIL help osh and oil
details
4 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 --debug-file

[osh-cpp stdout] Expected 'yes\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
Writing logs to '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/00-osh-cpp/debug.txt'
osh-cpp1 crash dump

[osh-cpp stdout] Expected 'status=1\nstatus=0\n', got 'status=1\nstatus=1\n'
[osh-cpp 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/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/01-osh-cpp/*.json'
osh-cpp2 crash dump with source

[osh-cpp stdout] Expected 'crash status=1\nfound crash dump\n', got 'crash status=1\n'

stdout:
crash status=1
stderr:
  echo $(( 42 / 0 ))
                ^
'/home/andy/git/oilshell/oil/test/../spec/testdata/crash.sh':3: fatal: Divide by zero
+ set -o errexit
+ ok=0
+ test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/02-osh-cpp/*.json'
+ test 0 -ge 1
osh-cpp3 help osh and oil

[osh-cpp 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: